-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheg-captureorder-deployment-flexvol.yaml
64 lines (64 loc) · 1.69 KB
/
eg-captureorder-deployment-flexvol.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apiVersion: apps/v1
kind: Deployment
metadata:
name: captureorder
spec:
selector:
matchLabels:
app: captureorder
replicas: 2
template:
metadata:
labels:
app: captureorder
spec:
containers:
- name: captureorder
image: azch/captureorder
imagePullPolicy: Always
readinessProbe:
httpGet:
port: 8080
path: /healthz
livenessProbe:
httpGet:
port: 8080
path: /healthz
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"
env:
- name: MONGOHOST
valueFrom:
secretKeyRef:
name: mongodb
key: mongoHost
- name: MONGOUSER
valueFrom:
secretKeyRef:
name: mongodb
key: mongoUser
ports:
- containerPort: 8080
volumeMounts:
- name: mongosecret
mountPath: /kvmnt
readOnly: true
volumes:
- name: mongosecret
flexVolume:
driver: "azure/kv"
secretRef:
name: kvcreds
options:
usepodidentity: "false"
keyvaultname: <KEYVAULTNAME>
keyvaultobjectnames: mongo-password # Name of Key Vault secret
keyvaultobjecttypes: secret
resourcegroup: <RESOURCEGROUPNAME>
subscriptionid: 1f5f58f7-720c-4415-8107-78676ebfed76
tenantid: 72f988bf-86f1-41af-91ab-2d7cd011db47