Last active
February 27, 2016 02:16
-
-
Save yujuhong/d1d2da004c1b796350c0 to your computer and use it in GitHub Desktop.
probe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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