-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-deployment.yaml
More file actions
38 lines (38 loc) · 898 Bytes
/
app-deployment.yaml
File metadata and controls
38 lines (38 loc) · 898 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: app-deployment
labels:
app: app-deployment
spec:
replicas: 3
selector:
matchLabels:
app: app-deployment
template:
metadata:
labels:
app: app-deployment
spec:
containers:
- name: app-api
image: renancesu/prova-eliel:1
ports:
- containerPort: 3000
env:
- name: PORT
valueFrom:
configMapKeyRef:
name: app-configmaps
key: PORT
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: app-secrets
key: DATABASE_URL
livenessProbe:
httpGet:
path: /pessoa
port: 3000
initialDelaySeconds: 15
periodSeconds: 3