K8s periodSeconds

Jmnote (토론 | 기여)님의 2020년 8월 26일 (수) 21:26 판 (→‎같이 보기)

1 개요

periodSeconds
k8s Probe periodSeconds
livenessProbe.periodSeconds & readinessProbe.periodSeconds
  • readinessProbe 또는 readinessProbe의 점검주기
  • 기본값: 10 (초)
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 같이 보기

3 참고

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