Merge "Do not set CPU resources to ovs-vswitch DPDK pod"
This commit is contained in:
commit
5e5d873911
@ -94,15 +94,15 @@ spec:
|
||||
{{/* Run the container in priviledged mode due to the need for root
|
||||
permissions when using the uio_pci_generic driver. */}}
|
||||
{{- $_ := set $envAll.Values.pod.security_context.openvswitch_vswitchd.container.vswitchd "privileged" true -}}
|
||||
{{/* Limiting CPU cores would severely affect packet throughput
|
||||
It should be handled through lcore and pmd core masks. */}}
|
||||
{{- if .Values.pod.resources.enabled }}
|
||||
{{ $_ := unset $envAll.Values.pod.resources.ovs.vswitchd.requests "cpu" }}
|
||||
{{ $_ := unset $envAll.Values.pod.resources.ovs.vswitchd.limits "cpu" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ tuple $envAll "openvswitch_vswitchd" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
{{ dict "envAll" $envAll "application" "openvswitch_vswitchd" "container" "vswitchd" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||
{{- if .Values.conf.ovs_dpdk.enabled }}
|
||||
{{/* When running with DPDK, we need to specify the type and amount of hugepages.
|
||||
The following line enables resource handling in general, but the type and amount
|
||||
of hugepages must still be defined in the values.yaml.*/}}
|
||||
{{ $_ := set $envAll.Values.pod.resources "enabled" true }}
|
||||
{{- end }}
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.ovs.vswitchd | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
# ensures this container can speak to the ovs database
|
||||
# successfully before its marked as ready
|
||||
|
Loading…
Reference in New Issue
Block a user