Skip to content

Instantly share code, notes, and snippets.

@iamNoah1
Last active November 24, 2020 13:49
Show Gist options
  • Save iamNoah1/c9370ebbf3d07e46373d53ef26e07b9d to your computer and use it in GitHub Desktop.
Save iamNoah1/c9370ebbf3d07e46373d53ef26e07b9d to your computer and use it in GitHub Desktop.
inject secret
apiVersion: v1
kind: Pod
metadata:
name: inject-secrets-from-akv
labels:
aadpodidbinding: azure-pod-identity-binding-selector
spec:
containers:
- name: nginx
image: nginx
env:
- name: SECRET
valueFrom:
secretKeyRef:
name: test-secret
key: key
volumeMounts:
- name: secrets-store-inline
mountPath: "/mnt/secrets-store"
readOnly: true
volumes:
- name: secrets-store-inline
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: spc-myk8skv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment