forked from hezro/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjuiceshop-k8-deployment.yml
50 lines (50 loc) · 983 Bytes
/
juiceshop-k8-deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: juiceshop-dev
name: juicedeployment
labels:
app: juice-shop-app
tier: frontend
spec:
selector:
matchLabels:
app: juice-shop-app
tier: frontend
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 1
template:
metadata:
labels:
app: juice-shop-app
tier: frontend
spec:
containers:
- image: hezro/juice-shop
imagePullPolicy: Always
name: juice-shop-container
ports:
- containerPort: 3000
name: juice-shop-port
securityContext:
allowPrivilegeEscalation: true
---
apiVersion: v1
kind: Service
metadata:
namespace: juiceshop-dev
name: juice-shop-service
labels:
app: juice-shop-app
spec:
ports:
- port: 1337
targetPort: 3000
selector:
app: juice-shop-app
tier: frontend
type: LoadBalancer