Created
June 6, 2020 15:52
-
-
Save Jagdeep1/b3f56501a3d1745c8c3833448cdbc0de to your computer and use it in GitHub Desktop.
Sample app with secret store volume mount
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
kind: Pod | |
apiVersion: v1 | |
metadata: | |
name: nginx-secrets-store | |
spec: | |
containers: | |
- image: nginx | |
name: nginx | |
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: "azure-kv-provider" # Name of the SecretProviderClass that we created in step 4 | |
nodePublishSecretRef: | |
name: akv-creds # secret name that has SP client_id and client_secret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment