Fix pod probes yaml file

This commit is contained in:
kairen 2017-09-14 14:37:48 +08:00 committed by Zach Corleissen
parent c6211e19be
commit dc6c994085
3 changed files with 3 additions and 12 deletions

View File

@ -65,7 +65,7 @@ kubectl create -f https://k8s.io/docs/tasks/configure-pod-container/exec-livenes
Within 30 seconds, view the Pod events:
```
```shell
kubectl describe pod liveness-exec
```

View File

@ -1,22 +1,17 @@
apiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
name: liveness-exec
spec:
containers:
- name: liveness
image: gcr.io/google_containers/busybox
args:
- /bin/sh
- -c
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
image: gcr.io/google_containers/busybox
livenessProbe:
exec:
command:

View File

@ -6,14 +6,10 @@ metadata:
name: liveness-http
spec:
containers:
- name: liveness
image: gcr.io/google_containers/liveness
args:
- /server
image: gcr.io/google_containers/liveness
livenessProbe:
httpGet:
path: /healthz