Update spire-agent daemonset to use node IP from downward API (#4147). (#117)

* 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:
Krishna 2023-06-10 11:28:30 +05:30 committed by GitHub
parent fc623ee0ad
commit d27c579eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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"
}
}

View File

@ -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