Skip to content

Commit 241dcfa

Browse files
committed
Use spire csi driver for agent socket
Signed-off-by: Marco Franssen <marco.franssen@philips.com>
1 parent 9718190 commit 241dcfa

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

charts/spire-client-example/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
export CLIENT_EXAMPLE=$(kubectl -n {{ .Release.Namespace }} get pods -o jsonpath="{.items[0].metadata.name}" -l app.kubernetes.io/name={{ .Chart.Name }})
44
kubectl -n {{ .Release.Namespace }} exec -it $CLIENT_EXAMPLE -- \
5-
bin/spire-agent api fetch -socketPath /run/spire/sockets/agent.sock
5+
bin/spire-agent api fetch -socketPath /spiffe-workload-api/spire-agent.sock

charts/spire-client-example/templates/client-deployment.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@ spec:
5151
- /opt/spire/bin/spire-agent
5252
- healthcheck
5353
- -socketPath
54-
- /run/spire/sockets/agent.sock
54+
- /spiffe-workload-api/spire-agent.sock
5555
resources:
5656
{{- toYaml .Values.resources | nindent 12 }}
5757
volumeMounts:
58-
- name: spire-agent-socket
59-
mountPath: /run/spire/sockets
58+
- name: spiffe-workload-api
59+
mountPath: /spiffe-workload-api
6060
readOnly: true
6161
volumes:
62-
- name: spire-agent-socket
63-
hostPath:
64-
path: /run/spire/sockets
65-
type: Directory
62+
- name: spiffe-workload-api
63+
csi:
64+
driver: "csi.spiffe.io"
65+
readOnly: true
6666
{{- with .Values.nodeSelector }}
6767
nodeSelector:
6868
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)