2015-06-10 20:25:54 +00:00
|
|
|
apiVersion: v1
|
2014-10-21 05:44:14 +00:00
|
|
|
kind: Pod
|
2015-05-08 00:55:36 +00:00
|
|
|
metadata:
|
|
|
|
name: pod-with-healthcheck
|
|
|
|
spec:
|
|
|
|
containers:
|
2015-07-20 22:46:20 +00:00
|
|
|
- name: nginx
|
|
|
|
image: nginx
|
|
|
|
# defines the health checking
|
|
|
|
livenessProbe:
|
|
|
|
# an http probe
|
|
|
|
httpGet:
|
|
|
|
path: /_status/healthz
|
|
|
|
port: 80
|
|
|
|
# length of time to wait for a pod to initialize
|
|
|
|
# after pod startup, before applying health checking
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
timeoutSeconds: 1
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|