Skip to content

Instantly share code, notes, and snippets.

@yujuhong
Last active February 27, 2016 02:16
Show Gist options
  • Select an option

  • Save yujuhong/d1d2da004c1b796350c0 to your computer and use it in GitHub Desktop.

Select an option

Save yujuhong/d1d2da004c1b796350c0 to your computer and use it in GitHub Desktop.
probe
apiVersion: v1
kind: ReplicationController
metadata:
name: probe
namespace: probe-test
labels:
k8s-app: probe
spec:
replicas: 90
selector:
k8s-app: probe
template:
metadata:
labels:
k8s-app: probe
spec:
containers:
- command:
- /bin/sh
- -c
- sleep 600
name: liveness
image: gcr.io/google_containers/busybox:1.24
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- cat
- /tmp/health
failureThreshold: 1
initialDelaySeconds: 15
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment