Skip to content

Instantly share code, notes, and snippets.

@Jagdeep1
Created June 6, 2020 15:52
Show Gist options
  • Save Jagdeep1/b3f56501a3d1745c8c3833448cdbc0de to your computer and use it in GitHub Desktop.
Save Jagdeep1/b3f56501a3d1745c8c3833448cdbc0de to your computer and use it in GitHub Desktop.
Sample app with secret store volume mount
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