Last active
August 19, 2022 11:45
-
-
Save shivanik111898/bfa7181813db5e33fffefb29b16548fa to your computer and use it in GitHub Desktop.
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: secrets-store.csi.x-k8s.io/v1 | |
| kind: SecretProviderClass | |
| metadata: | |
| name: aks-akv-secret-provider | |
| spec: | |
| provider: azure | |
| secretObjects: | |
| - secretName: foosecret | |
| type: Opaque | |
| data: | |
| - objectName: secret1 | |
| key: secret1 | |
| - objectName: secret2 | |
| key: secret2 | |
| parameters: | |
| usePodIdentity: "false" | |
| useVMManagedIdentity: "true" # Set to true for using managed identity | |
| userAssignedIdentityID: <clientId> # to which we got in the earlier stesp and for which have assigned the policies | |
| keyvaultName: test-azure-csi | |
| cloudName: "" # default azure | |
| objects: | | |
| array: | |
| - | | |
| objectName: secret1 | |
| objectType: secret # you can use keys/secrets/certs | |
| objectVersion: "" # [OPTIONAL] takes lates if its empty | |
| - | | |
| objectName: secret2 | |
| objectType: secret | |
| objectVersion: "" | |
| tenantId: <tenant ID> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment