Skip to content

Commit

Permalink
Merge pull request #2542 from Icarus9913/feat/wk/agent-downwardAPI
Browse files Browse the repository at this point in the history
add downward API for spiderpool-agent to get pod name and namespace
  • Loading branch information
cyclinder authored Nov 6, 2023
2 parents 715fbcc + fcd90b0 commit cb483ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/spiderpool/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb483ff

Please sign in to comment.