Update examples to support v1beta3 api - liveness/mysql-wordpress
This commit is contained in:
29
examples/liveness/v1beta3/exec-liveness.yaml
Normal file
29
examples/liveness/v1beta3/exec-liveness.yaml
Normal 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
|
||||
|
26
examples/liveness/v1beta3/http-liveness.yaml
Normal file
26
examples/liveness/v1beta3/http-liveness.yaml
Normal 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
|
||||
|
Reference in New Issue
Block a user