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 */ -}}
|
2022-07-26 15:23:25 +00:00
|
|
|
@@ -73,7 +81,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-07-26 15:23:25 +00:00
|
|
|
@@ -391,7 +399,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 }}
|
2022-07-26 15:23:25 +00:00
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
@@ -419,7 +427,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-07-26 15:23:25 +00:00
|
|
|
@@ -532,7 +540,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-07-26 15:23:25 +00:00
|
|
|
@@ -545,9 +553,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
|