Update examples to support v1beta3 api - liveness/mysql-wordpress

This commit is contained in:
Subin M
2015-02-26 04:08:49 +05:30
parent ec8ecf3993
commit 39016242aa
7 changed files with 163 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
apiVersion: v1beta3
kind: ReplicationController
metadata:
labels:
test: liveness
name: liveness-exec
spec:
replicas: 1
selector:
test: liveness
template:
metadata:
labels:
test: liveness
spec:
containers:
- command:
- "/bin/sh"
- "-c"
- "echo ok > /tmp/health; sleep 10; echo fail > /tmp/health; sleep 600"
image: busybox
livenessProbe:
exec:
command:
- "cat"
- "/tmp/health"
initialDelaySeconds: 15
name: liveness

View File

@@ -0,0 +1,26 @@
apiVersion: v1beta3
kind: ReplicationController
metadata:
labels:
test: liveness
name: liveness-http
spec:
replicas: 1
selector:
test: liveness
template:
metadata:
labels:
test: liveness
spec:
containers:
- command:
- "/server"
image: kubernetes/liveness
livenessProbe:
httpGet:
path: "/healthz"
port: 8080
initialDelaySeconds: 15
name: liveness