Skip to content

Commit

Permalink
Update spire-agent daemonset to use node IP from downward API (#4147). (
Browse files Browse the repository at this point in the history
#117)

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

Signed-off-by: Krishnakumar Venkataraman <krishna_kumar08@infosys.com>
  • Loading branch information
krishnakv authored Jun 10, 2023
1 parent fc623ee commit d27c579
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions k8s/quickstart/agent-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
5 changes: 5 additions & 0 deletions k8s/quickstart/agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d27c579

Please sign in to comment.