-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.yaml
64 lines (63 loc) · 1.19 KB
/
manifest.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: worldcup-deployment
labels:
app: worldcup
spec:
replicas: 4
strategy:
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
type: RollingUpdate
selector:
matchLabels:
app: worldcup
template:
metadata:
labels:
app: worldcup
spec:
containers:
- name: worldcup
image: rodriguezarata/worldcup:0.1
ports:
- containerPort: 80
env:
- name: champ
valueFrom:
configMapKeyRef:
name: worldcup-configmap
key: value
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 1
periodSeconds: 5
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 1
periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: worldcup-service
labels:
app: worldcup
spec:
selector:
app: worldcup
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: v1
kind: ConfigMap
metadata:
name: worldcup-configmap
data:
value: francia