K8s livenessProbe

Jmnote (토론 | 기여)님의 2019년 9월 4일 (수) 10:25 판 (→‎#)

1 #

exec-liveness.yaml
apiVersion: v1
kind: Pod
metadata:
  labels:
    test: liveness
  name: liveness-exec
spec:
  containers:
  - name: liveness
    image: k8s.gcr.io/busybox
    args:
    - /bin/sh
    - -c
    - touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
    livenessProbe:
      exec:
        command:
        - cat
        - /tmp/healthy
      initialDelaySeconds: 5
      periodSeconds: 5

2 #

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}