Skip to content

Commit b7f16e8

Browse files
committed
liveness-readiness
1 parent e302b12 commit b7f16e8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: helloworld-readiness
5+
spec:
6+
replicas: 3
7+
template:
8+
metadata:
9+
labels:
10+
app: helloworld
11+
spec:
12+
containers:
13+
- name: k8s-demo
14+
image: wardviaene/k8s-demo
15+
ports:
16+
- name: nodejs-port
17+
containerPort: 3000
18+
livenessProbe:
19+
httpGet:
20+
path: /
21+
port: nodejs-port
22+
initialDelaySeconds: 15
23+
timeoutSeconds: 30
24+
readinessProbe:
25+
httpGet:
26+
path: /
27+
port: nodejs-port
28+
initialDelaySeconds: 15
29+
timeoutSeconds: 30

0 commit comments

Comments
 (0)