-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kubernetes.yaml
66 lines (65 loc) · 1.37 KB
/
.kubernetes.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
56
57
58
59
60
61
62
63
64
65
66
---
# Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: unificacao-prontuarios
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app: unificacao-prontuarios
minReadySeconds: 5
template:
metadata:
labels:
app: unificacao-prontuarios
spec:
containers:
- name: unificacao-prontuarios
image: gcr.io/PROJECT_ID/IMAGE_NAME:TAG
ports:
- containerPort: 80
envFrom:
- secretRef:
name: unificacao-prontuarios-secrets
readinessProbe:
httpGet:
path: /docs
port: 80
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /docs
port: 80
initialDelaySeconds: 60
periodSeconds: 10
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "1024Mi"
cpu: "500m"
restartPolicy: Always
---
# Service
apiVersion: v1
kind: Service
metadata:
labels:
app: unificacao-prontuarios
name: unificacao-prontuarios
spec:
ports:
- name: "80"
port: 80
targetPort: 80
selector:
app: unificacao-prontuarios