-
Notifications
You must be signed in to change notification settings - Fork 0
/
portal-deployment.yaml
40 lines (40 loc) · 950 Bytes
/
portal-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: portal-noticias-deployment
spec:
template:
metadata:
name: portal-noticias
labels:
app: portal-noticias
spec:
containers:
- name: portal-noticias-container
image: aluracursos/portal-noticias:1
ports:
- containerPort: 80
envFrom:
- configMapRef:
name: portal-configmap
livenessProbe:
httpGet:
path: /
port: 80
periodSeconds: 10
failureThreshold: 3
initialDelaySeconds: 20
readinessProbe:
httpGet:
path: /
port: 80
periodSeconds: 10
failureThreshold: 5
initialDelaySeconds: 3
resources:
requests:
cpu: 10m
replicas: 3
selector:
matchLabels:
app: portal-noticias