편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
1번째 줄: | 1번째 줄: | ||
== | ==#== | ||
{{소스헤더|exec-liveness.yaml}} | |||
<source lang='yaml'> | |||
< | |||
apiVersion: v1 | apiVersion: v1 | ||
kind: Pod | kind: Pod | ||
25번째 줄: | 23번째 줄: | ||
initialDelaySeconds: 5 | initialDelaySeconds: 5 | ||
periodSeconds: 5 | periodSeconds: 5 | ||
</ | </source> | ||
== | ==#== | ||
{{소스헤더|exec-liveness.yaml}} | |||
<source lang='yaml'> | |||
apiVersion: v1 | |||
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/ | ||
[[분류: | [[분류: kubernetes]] |