Last active
November 24, 2020 13:49
-
-
Save iamNoah1/c9370ebbf3d07e46373d53ef26e07b9d to your computer and use it in GitHub Desktop.
inject secret
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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