-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8-probes-without-startup.yaml
50 lines (48 loc) · 1 KB
/
k8-probes-without-startup.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
# Namespace
apiVersion: v1
kind: Namespace
metadata:
name: playground
---
# Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: k8-probes-deployment
namespace: playground
labels:
app: k8-probes
spec:
replicas: 1
selector:
matchLabels:
app: k8-probes
template:
metadata:
labels:
app: k8-probes
spec:
containers:
- name: k8-probes
image: ratulsharker/k8-probes:latest
ports:
- containerPort: 3000
livenessProbe:
httpGet:
path: /liveliness
port: 3000
initialDelaySeconds: 5
periodSeconds: 60
readinessProbe:
httpGet:
path: /readiness
port: 3000
initialDelaySeconds: 5
periodSeconds: 30
env:
- name: LIVELINESS_RESPONSE_STATUS_CODE
value: "500"
- name: READINESS_RESPONSE_STATUS_CODE
value: "500"
- name: START_RESPONSE_STATUS_CODE
value: "500"