-
Notifications
You must be signed in to change notification settings - Fork 0
/
letskubedeploy.yml
54 lines (49 loc) · 995 Bytes
/
letskubedeploy.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: letskube-deployment
labels:
app: letskube
spec:
replicas: 2
template:
metadata:
name: letskube
labels:
app: letskube
spec:
containers:
- name: letskube
image: arturkarbone/letskube
readinessProbe:
httpGet:
path: /health/readiness
port: 80
successThreshold: 3
failureThreshold: 3
periodSeconds: 10
timeoutSeconds: 1
livenessProbe:
httpGet:
path: /health/liveness
port: 80
failureThreshold: 7
periodSeconds: 10
timeoutSeconds: 1
initialDelaySeconds: 0
imagePullPolicy: IfNotPresent
restartPolicy: Always
selector:
matchLabels:
app: letskube
---
apiVersion: v1
kind: Service
metadata:
name: letskube-service
spec:
selector:
app: letskube
ports:
- port: 80
type: NodePort