-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
50 lines (50 loc) · 1.05 KB
/
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
# Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world-deployment
spec:
replicas: 3
selector:
matchLabels:
app: flaschenpost-hello-world
template:
metadata:
labels:
app: flaschenpost-hello-world
spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: hello-world-pod
image: strm/helloworld-http:latest
imagePullPolicy: Always
ports:
- containerPort: 80
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
readinessProbe:
httpGet:
host:
scheme: HTTP
path: /
port: 80
initialDelaySeconds: 10
periodSeconds: 1
failureThreshold: 2
---
apiVersion: v1
kind: Service
metadata:
name: hello-world-service
spec:
selector:
app: flaschenpost-hello-world
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8080
type: LoadBalancer