forked from karthilxg/chess-trainer-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yml
83 lines (83 loc) · 1.73 KB
/
deploy.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
apiVersion: apps/v1
kind: Deployment
metadata:
name: chess-frontend
spec:
selector:
matchLabels:
app: chess-frontend
replicas: 1
template:
metadata:
labels:
app: chess-frontend
spec:
containers:
- image: us-central1-docker.pkg.dev/chessbook-404210/chessbook/frontend:latest
imagePullPolicy: Always
name: chess-frontend
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 0
periodSeconds: 2
resources:
requests:
memory: "2Gi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: chess-frontend-staging
spec:
ports:
- port: 80
targetPort: 80
selector:
app: chess-frontend-staging
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: chess-frontend-staging
spec:
selector:
matchLabels:
app: chess-frontend-staging
replicas: 1
template:
metadata:
labels:
app: chess-frontend-staging
spec:
containers:
- image: us-central1-docker.pkg.dev/chessbook-404210/chessbook/frontend-staging:latest
imagePullPolicy: Always
name: chess-frontend-staging
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 0
periodSeconds: 2
resources:
requests:
memory: "2Gi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: chess-frontend-staging
spec:
ports:
- port: 80
targetPort: 80
selector:
app: chess-frontend-staging