Skip to content

Commit d27c579

Browse files
authored
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 <[email protected]>
1 parent fc623ee commit d27c579

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

k8s/quickstart/agent-configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ data:
3434
# Minikube does not have a cert in the cluster CA bundle that
3535
# can authenticate the kubelet cert, so skip validation.
3636
skip_kubelet_verification = true
37+
node_name_env = "MY_NODE_NAME"
3738
}
3839
}
3940

k8s/quickstart/agent-daemonset.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ spec:
3030
- name: spire-agent
3131
image: ghcr.io/spiffe/spire-agent:1.5.1
3232
args: ["-config", "/run/spire/config/agent.conf"]
33+
env:
34+
- name: MY_NODE_NAME
35+
valueFrom:
36+
fieldRef:
37+
fieldPath: status.podIP
3338
volumeMounts:
3439
- name: spire-config
3540
mountPath: /run/spire/config

0 commit comments

Comments
 (0)