Skip to content

Commit 7d386ac

Browse files
committed
chore: Add KUBERNETES_NODE_NAME to conmtroller container
1 parent 03d0b8a commit 7d386ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

deploy/helm/listener-operator/templates/controller-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ spec:
4747
value: {{ .Values.kubernetesClusterDomain | quote }}
4848
{{- end }}
4949
{{- include "telemetry.envVars" . | nindent 12 }}
50+
# Operators need to know the node name they are running on, to e.g. discover the
51+
# Kubernetes domain name from the kubelet API.
52+
- name: KUBERNETES_NODE_NAME
53+
valueFrom:
54+
fieldRef:
55+
fieldPath: spec.nodeName
5056
volumeMounts:
5157
- name: csi
5258
mountPath: /csi

0 commit comments

Comments
 (0)