Add an e2e test for exec liveness probes. Fix the docker exec integration.

This commit is contained in:
Brendan Burns
2014-12-16 13:06:58 -08:00
parent 56ee66831b
commit 3a0d16ff35
4 changed files with 53 additions and 26 deletions

View File

@@ -0,0 +1,22 @@
apiVersion: v1beta1
desiredState:
manifest:
containers:
- image: busybox
name: liveness
livenessProbe:
exec:
command:
- "cat"
- "/tmp/health"
initialDelaySeconds: 15
command:
- "/bin/sh"
- "-c"
- "echo ok > /tmp/health; sleep 10; echo fail > /tmp/health; sleep 600"
id: liveness-exec
version: v1beta1
id: liveness-exec
kind: Pod
labels:
test: liveness