K8s livenessProbe 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
1번째 줄: 1번째 줄:
==개요==
==#==
;k8s livenessProbe
{{소스헤더|exec-liveness.yaml}}
* [[k8s Probe]] 중 하나
<source lang='yaml'>
 
<syntaxhighlight lang='yaml' line highlight='15'>
apiVersion: v1
apiVersion: v1
kind: Pod
kind: Pod
25번째 줄: 23번째 줄:
       initialDelaySeconds: 5
       initialDelaySeconds: 5
       periodSeconds: 5
       periodSeconds: 5
</syntaxhighlight>
</source>
<syntaxhighlight lang='yaml' line>
livenessProbe:
  httpGet:
    path: /healthz
    port: 8080
    httpHeaders:
    - name: Custom-Header
      value: Awesome
  initialDelaySeconds: 3
  periodSeconds: 3
</syntaxhighlight>
<syntaxhighlight lang='yaml' line>
livenessProbe:
  tcpSocket:
    port: 8080
  initialDelaySeconds: 15
  periodSeconds: 20
</syntaxhighlight>
<syntaxhighlight lang='yaml' line>
livenessProbe:
  httpGet:
    path: /healthz
    port: liveness-port
</syntaxhighlight>
<syntaxhighlight lang='yaml' line>
livenessProbe:
  httpGet:
    path: /healthz
    port: liveness-port
  failureThreshold: 1
  periodSeconds: 10
</syntaxhighlight>
<syntaxhighlight lang='yaml' line>
livenessProbe:
  httpGet:
    httpHeaders:
      - name: Accept
        value: application/json
</syntaxhighlight>
<syntaxhighlight lang='yaml' line>
livenessProbe:
  httpGet:
    httpHeaders:
      - name: Accept
        value: ""
</syntaxhighlight>


==같이 보기==
==#==
* [[k8s 컨테이너 프로브]]
{{소스헤더|exec-liveness.yaml}}
* [[k8s readinessProbe]]
<source lang='yaml'>
* [[k8s startupProbe]]
apiVersion: v1
* [[k8s terminationGracePeriodSeconds]]
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
</source>


==참고==
==참고==
* https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
* https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/


[[분류:K8s Probe]]
[[분류: kubernetes]]

제타위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 제타위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)