diff --git a/charts/spiderpool/templates/daemonset.yaml b/charts/spiderpool/templates/daemonset.yaml index 0aed7d0fe4..c329200ae9 100644 --- a/charts/spiderpool/templates/daemonset.yaml +++ b/charts/spiderpool/templates/daemonset.yaml @@ -210,6 +210,14 @@ spec: rm -f /host/etc/cni/net.d/00-multus.conf || true {{ .Values.spiderpoolAgent.binName }} shutdown env: + - name: SPIDERPOOL_POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: SPIDERPOOL_POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace - name: SPIDERPOOL_LOG_LEVEL value: {{ .Values.spiderpoolAgent.debug.logLevel | quote }} - name: SPIDERPOOL_ENABLED_METRIC