* Update spire-agent daemonset to use node IP from downward API (#4147). Signed-off-by: Krishnakumar Venkataraman <krishna_kumar08@infosys.com>
This commit is contained in:
parent
fc623ee0ad
commit
d27c579eb4
|
|
@ -34,6 +34,7 @@ data:
|
|||
# Minikube does not have a cert in the cluster CA bundle that
|
||||
# can authenticate the kubelet cert, so skip validation.
|
||||
skip_kubelet_verification = true
|
||||
node_name_env = "MY_NODE_NAME"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,11 @@ spec:
|
|||
- name: spire-agent
|
||||
image: ghcr.io/spiffe/spire-agent:1.5.1
|
||||
args: ["-config", "/run/spire/config/agent.conf"]
|
||||
env:
|
||||
- name: MY_NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.podIP
|
||||
volumeMounts:
|
||||
- name: spire-config
|
||||
mountPath: /run/spire/config
|
||||
|
|
|
|||
Loading…
Reference in New Issue