Skip to content

Instantly share code, notes, and snippets.

@sireza
Last active June 28, 2021 09:02
Show Gist options
  • Save sireza/a35e00f6b60e83872fd2e1c2c0afc3a3 to your computer and use it in GitHub Desktop.
Save sireza/a35e00f6b60e83872fd2e1c2c0afc3a3 to your computer and use it in GitHub Desktop.
Secret Provider Class
apiVersion: secrets-store.csi.x-k8s.io/v1alpha1
kind: SecretProviderClass
metadata:
name: azure-kvname
spec:
provider: azure
secretObjects:
- secretName: csi-secrets
type: Opaque
data:
- objectName: username
key: username
- objectName: password
key: password
parameters:
usePodIdentity: "false"
keyvaultName: "kvscrtbrownbag"
objects: |
array:
- |
objectName: username
objectType: secret
- |
objectName: password
objectType: secret
tenantId: [Your Azure Tenant Id Here]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment