-
Notifications
You must be signed in to change notification settings - Fork 0
/
juiceshop_deployment.yaml
41 lines (39 loc) · 913 Bytes
/
juiceshop_deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: juiceshop
spec:
replicas: 1
selector:
matchLabels:
component: juiceshop
template:
metadata:
labels:
component: juiceshop
spec:
containers:
- name: juiceshop
image: zencid/juiceshop-k8s:contrast
ports:
- containerPort: 3000
envFrom:
- configMapRef:
name: contrast-config
# Volume Mount for contrast_security.yaml
volumeMounts:
- name: contrast-security
readOnly: false
mountPath: "/etc/contrast"
resources:
requests:
cpu: 1.0
memory: 2Gi
limits:
cpu: 2.0
memory: 4Gi
# Volume from contrast-security secret
volumes:
- name: contrast-security
secret:
secretName: contrast-security