-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
45 lines (45 loc) · 991 Bytes
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: bc-express-app-deployment
spec:
replicas: 3
selector:
matchLabels:
app: bc-express-app
template:
metadata:
labels:
app: bc-express-app
spec:
containers:
- name: bc-express-app
image: 860371349641.dkr.ecr.us-west-2.amazonaws.com/bc-express-app:latest
ports:
- containerPort: 3000
readinessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
livenessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
imagePullSecrets:
- name: dockubecred
---
apiVersion: v1
kind: Service
metadata:
name: bc-express-app-service
spec:
type: LoadBalancer
ports:
- port: 3000
targetPort: 3000
selector:
app: bc-express-app