高级 liveness 探针示例使用官方最新 yaml 配置

pull/272/head
chaosky 2018-08-21 16:41:49 +08:00 committed by GitHub
parent e28ec111f0
commit 3628c5ac62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ spec:
containers:
- args:
- /server
image: gcr.io/google_containers/liveness
image: k8s.gcr.io/liveness
livenessProbe:
httpGet:
# when "host" is not defined, "PodIP" will be used
@ -106,8 +106,8 @@ spec:
path: /healthz
port: 8080
httpHeaders:
- name: X-Custom-Header
value: Awesome
- name: X-Custom-Header
value: Awesome
initialDelaySeconds: 15
timeoutSeconds: 1
name: liveness
@ -159,4 +159,4 @@ spec:
原文地址https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/
翻译:[rootsongjc](https://github.com/rootsongjc)
翻译:[rootsongjc](https://github.com/rootsongjc)