-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeyvault.yaml
24 lines (24 loc) · 1.1 KB
/
keyvault.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This is a SecretProviderClass example using user-assigned identity to access your key vault
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: azure-kvname-user-msi
spec:
provider: azure
parameters:
usePodIdentity: "false"
useVMManagedIdentity: "true" # Set to true for using managed identity
userAssignedIdentityID: a3c08cbe-52a4-43b4-8dde-bad48e656e2e # Set the clientID of the user-assigned managed identity to use
keyvaultName: ingresskey # Set to the name of your key vault
cloudName: "" # [OPTIONAL for Azure] if not provided, the Azure environment defaults to AzurePublicCloud
objects: |
array:
- |
objectName: secret1
objectType: secret # object types: secret, key, or cert
objectVersion: "" # [OPTIONAL] object versions, default to latest if empty
- |
objectName: key1
objectType: key
objectVersion: ""
tenantId: 72f988bf-86f1-41af-91ab-2d7cd011db47 # The tenant ID of the key vault