-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuserJava.yaml
37 lines (37 loc) · 1.46 KB
/
userJava.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
25
26
27
28
29
30
31
32
33
34
35
36
37
apiVersion: apps/v1
kind: Deployment
metadata:
name: user-java
spec:
selector:
matchLabels:
run: user-java
replicas: 1
template:
metadata:
labels:
run: user-java
spec:
containers:
- name: user-java
image: registryqft0511.azurecr.io/tripinsights/user-java:1.0
ports:
- containerPort: 80
volumeMounts:
- name: keyvault
mountPath: /secrets
readOnly: true
volumes:
- name: keyvault
flexVolume:
driver: "azure/kv"
secretRef:
name: kvcredentials # [OPTIONAL] not required if using Pod Identity
options:
keyvaultname: "team14KeyVault" # the name of the KeyVault
keyvaultobjectnames: sql-dbname;sql-password;sql-server;sql-username # list of KeyVault object names (semi-colon separated)
keyvaultobjecttypes: secret;secret;secret;secret # list of KeyVault object types: secret, key or cert (semi-colon separated)
keyvaultobjectaliases: SQL_DBNAME;SQL_PASSWORD;SQL_SERVER;SQL_USER
resourcegroup: "teamResources" # [REQUIRED FOR < v0.0.14] the resource group of the KeyVault
subscriptionid: "c0b0ad00-c6a9-40a1-adaf-7d290c84721c" # [REQUIRED FOR < v0.0.14] the subscription ID of the KeyVault
tenantid: "13823b52-457a-4034-b4aa-4b5666eb72c1" # the tenant ID of the KeyVault