Add probe yaml examples

This commit is contained in:
giri.kuncoro
2020-06-06 18:08:13 +07:00
parent 838d1b180c
commit 9cb190a82b
3 changed files with 64 additions and 0 deletions
@@ -0,0 +1,21 @@
apiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
name: liveness-http
spec:
containers:
- name: liveness
image: k8s.gcr.io/liveness
args:
- /server
livenessProbe:
httpGet:
path: /healthz
port: 8080
httpHeaders:
- name: Custom-Header
value: Awesome
initialDelaySeconds: 3
periodSeconds: 3