Skip to content

Commit

Permalink
Fix pod probes yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
kairen authored and crimsonfaith91 committed Sep 14, 2017
1 parent 53db388 commit 008317e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
7 changes: 1 addition & 6 deletions docs/tasks/configure-pod-container/exec-liveness.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
6 changes: 1 addition & 5 deletions docs/tasks/configure-pod-container/http-liveness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 008317e

Please sign in to comment.