"K8s livenessProbe"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(같은 사용자의 중간 판 3개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;k8s livenessProbe  
;k8s livenessProbe  
* [[k8s Probe]] 중 하나


<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml' line highlight='15'>
apiVersion: v1
apiVersion: v1
kind: Pod
kind: Pod
25번째 줄: 26번째 줄:
       periodSeconds: 5
       periodSeconds: 5
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml' line>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
36번째 줄: 37번째 줄:
   periodSeconds: 3
   periodSeconds: 3
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml' line>
livenessProbe:
livenessProbe:
   tcpSocket:
   tcpSocket:
43번째 줄: 44번째 줄:
   periodSeconds: 20
   periodSeconds: 20
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml' line>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
49번째 줄: 50번째 줄:
     port: liveness-port
     port: liveness-port
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml' line>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
57번째 줄: 58번째 줄:
   periodSeconds: 10
   periodSeconds: 10
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml' line>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
64번째 줄: 65번째 줄:
         value: application/json
         value: application/json
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml' line>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
81번째 줄: 82번째 줄:
* 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 Pod]]
[[분류:K8s Probe]]

2022년 2월 13일 (일) 16:12 기준 최신판

1 개요[ | ]

k8s livenessProbe
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
livenessProbe:
  httpGet:
    path: /healthz
    port: 8080
    httpHeaders:
    - name: Custom-Header
      value: Awesome
  initialDelaySeconds: 3
  periodSeconds: 3
livenessProbe:
  tcpSocket:
    port: 8080
  initialDelaySeconds: 15
  periodSeconds: 20
livenessProbe:
  httpGet:
    path: /healthz
    port: liveness-port
livenessProbe:
  httpGet:
    path: /healthz
    port: liveness-port
  failureThreshold: 1
  periodSeconds: 10
livenessProbe:
  httpGet:
    httpHeaders:
      - name: Accept
        value: application/json
livenessProbe:
  httpGet:
    httpHeaders:
      - name: Accept
        value: ""

2 같이 보기[ | ]

3 참고[ | ]

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