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

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
2번째 줄: 2번째 줄:
;k8s livenessProbe  
;k8s livenessProbe  


<source lang='yaml'>
<syntaxhighlight lang='yaml'>
apiVersion: v1
apiVersion: v1
kind: Pod
kind: Pod
24번째 줄: 24번째 줄:
       initialDelaySeconds: 5
       initialDelaySeconds: 5
       periodSeconds: 5
       periodSeconds: 5
</source>
</syntaxhighlight>
<source lang='yaml'>
<syntaxhighlight lang='yaml'>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
35번째 줄: 35번째 줄:
   initialDelaySeconds: 3
   initialDelaySeconds: 3
   periodSeconds: 3
   periodSeconds: 3
</source>
</syntaxhighlight>
<source lang='yaml'>
<syntaxhighlight lang='yaml'>
livenessProbe:
livenessProbe:
   tcpSocket:
   tcpSocket:
42번째 줄: 42번째 줄:
   initialDelaySeconds: 15
   initialDelaySeconds: 15
   periodSeconds: 20
   periodSeconds: 20
</source>
</syntaxhighlight>
<source lang='yaml'>
<syntaxhighlight lang='yaml'>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
     path: /healthz
     path: /healthz
     port: liveness-port
     port: liveness-port
</source>
</syntaxhighlight>
<source lang='yaml'>
<syntaxhighlight lang='yaml'>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
56번째 줄: 56번째 줄:
   failureThreshold: 1
   failureThreshold: 1
   periodSeconds: 10
   periodSeconds: 10
</source>
</syntaxhighlight>
<source lang='yaml'>
<syntaxhighlight lang='yaml'>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
63번째 줄: 63번째 줄:
       - name: Accept
       - name: Accept
         value: application/json
         value: application/json
</source>
</syntaxhighlight>
<source lang='yaml'>
<syntaxhighlight lang='yaml'>
livenessProbe:
livenessProbe:
   httpGet:
   httpGet:
70번째 줄: 70번째 줄:
       - name: Accept
       - name: Accept
         value: ""
         value: ""
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2021년 10월 30일 (토) 23: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 }}