forked from shaansundar/proton-market-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
56 lines (53 loc) · 1.17 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
apiVersion: apps/v1
kind: Deployment
metadata:
name: market-template-sandbox
labels:
app: market-template-sandbox
spec:
progressDeadlineSeconds: 1000
replicas: 2
selector:
matchLabels:
app: market-template-sandbox
template:
metadata:
labels:
app: market-template-sandbox
tier: web
spec:
containers:
- name: market-template-sandbox
image: gcr.io/proton-wallet/market-template-sandbox@sha256:5218198bf2151f56535be1b9ee50a6c8ad5f8db6a90e82406e1c93a7d55417e9
ports:
- name: http
containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
host:
path: /
port: 8080
initialDelaySeconds: 120
readinessProbe:
httpGet:
host:
path: /
port: 8080
initialDelaySeconds: 60
terminationGracePeriodSeconds: 120
---
apiVersion: v1
kind: Service
metadata:
name: market-template-sandbox-backend
labels:
app: market-template-sandbox
spec:
type: NodePort
selector:
app: market-template-sandbox
tier: web
ports:
- port: 3000
targetPort: 8080