Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Add deployment example (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritazh authored Jan 28, 2019
1 parent 5c9a7a4 commit 5e3eab6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions deployment/nginx-flex-kv-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: nginx-flexkv-deployment
labels:
app: nginx-flexkv
spec:
replicas: 2
selector:
matchLabels:
app: nginx-flexkv
template:
metadata:
labels:
app: nginx-flexkv
spec:
containers:
- name: nginx-flexkv
image: nginx
volumeMounts:
- name: test
mountPath: /kvmnt
readOnly: true
volumes:
- name: test
flexVolume:
driver: "azure/kv"
secretRef:
name: kvcreds
options:
usepodidentity: "false"
keyvaultname: ""
keyvaultobjectnames: test1;test2 # list of KeyVault object names (semi-colon separated)
keyvaultobjecttypes: secret;secret # list of KeyVault object types: secret, key or cert (semi-colon separated)
keyvaultobjectversions: "" # [OPTIONAL] list of KeyVault object versions (semi-colon separated), will get latest if empty
resourcegroup: "" # the resource group of the KeyVault
subscriptionid: "" # the subscription ID of the KeyVault
tenantid: "" # the tenant ID of the KeyVault

0 comments on commit 5e3eab6

Please sign in to comment.