2022-01-18 17:33:52 +00:00
|
|
|
--- charts-original/templates/cilium-agent/daemonset.yaml
|
|
|
|
+++ charts/templates/cilium-agent/daemonset.yaml
|
2022-06-16 15:12:29 +00:00
|
|
|
@@ -1,3 +1,11 @@
|
|
|
|
+{{- if empty .Values.global.clusterCIDRv4 }}
|
|
|
|
+{{- $_ := set .Values.ipv4 "enabled" false -}}
|
|
|
|
+{{- end }}
|
|
|
|
+
|
|
|
|
+{{- if not (empty .Values.global.clusterCIDRv6) }}
|
|
|
|
+{{- $_ := set .Values.ipv6 "enabled" true -}}
|
|
|
|
+{{- end }}
|
|
|
|
+
|
|
|
|
{{- if and .Values.agent (not .Values.preflight.enabled) }}
|
|
|
|
|
|
|
|
{{- /* Default values with backwards compatibility */ -}}
|
|
|
|
@@ -47,7 +55,6 @@
|
2022-03-14 15:21:40 +00:00
|
|
|
# cilium to be a critical pod in the cluster, which ensures cilium
|
|
|
|
# gets priority scheduling.
|
|
|
|
# https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
|
|
|
|
- scheduler.alpha.kubernetes.io/critical-pod: ""
|
|
|
|
{{- with .Values.podAnnotations }}
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-06-16 15:12:29 +00:00
|
|
|
@@ -70,7 +77,7 @@
|
2022-01-20 10:56:21 +00:00
|
|
|
{{- end }}
|
|
|
|
containers:
|
|
|
|
- name: cilium-agent
|
|
|
|
- image: {{ include "cilium.image" .Values.image | quote }}
|
|
|
|
+ image: "{{ template "system_default_registry" . }}{{ include "cilium.image" .Values.image }}"
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
{{- if .Values.sleepAfterInit }}
|
|
|
|
command:
|
2022-06-16 15:12:29 +00:00
|
|
|
@@ -321,7 +328,7 @@
|
2022-01-20 10:56:21 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.monitor.enabled }}
|
|
|
|
- name: cilium-monitor
|
|
|
|
- image: {{ include "cilium.image" .Values.image | quote }}
|
|
|
|
+ image: "{{ template "system_default_registry" . }}{{ include "cilium.image" .Values.image }}"
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
command: ["cilium"]
|
|
|
|
args:
|
2022-06-16 15:12:29 +00:00
|
|
|
@@ -348,7 +355,7 @@
|
2022-01-20 10:56:21 +00:00
|
|
|
# Required to mount cgroup2 filesystem on the underlying Kubernetes node.
|
|
|
|
# We use nsenter command with host's cgroup and mount namespaces enabled.
|
|
|
|
- name: mount-cgroup
|
|
|
|
- image: {{ include "cilium.image" .Values.image | quote }}
|
|
|
|
+ image: "{{ template "system_default_registry" . }}{{ include "cilium.image" .Values.image }}"
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
env:
|
|
|
|
- name: CGROUP_ROOT
|
2022-06-16 15:12:29 +00:00
|
|
|
@@ -377,7 +384,7 @@
|
2022-01-20 10:56:21 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if and .Values.nodeinit.enabled .Values.nodeinit.bootstrapFile }}
|
|
|
|
- name: wait-for-node-init
|
|
|
|
- image: {{ include "cilium.image" .Values.image | quote }}
|
|
|
|
+ image: "{{ template "system_default_registry" . }}{{ include "cilium.image" .Values.image }}"
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
command:
|
|
|
|
- sh
|
2022-06-16 15:12:29 +00:00
|
|
|
@@ -390,9 +397,11 @@
|
2022-01-18 17:33:52 +00:00
|
|
|
volumeMounts:
|
2022-05-06 08:32:57 +00:00
|
|
|
- name: cilium-bootstrap-file-dir
|
|
|
|
mountPath: "/tmp/cilium-bootstrap.d"
|
2022-01-18 17:33:52 +00:00
|
|
|
+ securityContext:
|
|
|
|
+ privileged: true
|
|
|
|
{{- end }}
|
|
|
|
- name: clean-cilium-state
|
2022-01-20 10:56:21 +00:00
|
|
|
- image: {{ include "cilium.image" .Values.image | quote }}
|
|
|
|
+ image: "{{ template "system_default_registry" . }}{{ include "cilium.image" .Values.image }}"
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
command:
|
|
|
|
- /init-container.sh
|