-
Notifications
You must be signed in to change notification settings - Fork 122
/
Copy pathapp-deployment.yaml
59 lines (59 loc) · 1.46 KB
/
app-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
56
57
58
59
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: giropops-senhas
name: giropops-senhas
spec:
replicas: 2
selector:
matchLabels:
app: giropops-senhas
template:
metadata:
labels:
app: giropops-senhas
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- giropops-senhas
topologyKey: kubernetes.io/hostname
containers:
- image: giovani0308/giropops-senhas:v2
name: giropops-senhas
securityContext:
readOnlyRootFilesystem: true
runAsUser: 1000
runAsNonRoot: true
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: REDIS_HOST
value: redisdb
ports:
- containerPort: 5000
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /healthz
port: 5000
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /readiness
port: 5000
initialDelaySeconds: 5
periodSeconds: 5