【发布时间】:2019-04-08 09:33:14
【问题描述】:
您好,我尝试使用 GCP LoadBalancer 的自定义运行状况检查。
我已经像这样添加了readinessProbe 和livenessProbe:
readinessProbe:
httpGet:
path: /health
port: dash
initialDelaySeconds: 5
periodSeconds: 1
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 10
livenessProbe:
httpGet:
path: /health
port: dash
initialDelaySeconds: 5
periodSeconds: 1
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 10
但是当我创建我的入口时,我没有得到我的自定义健康检查
【问题讨论】:
-
在过去这是可能的。不确定它是否仍然受支持。如果是,你要做的就是设置一个活性探针。如果活性探测通过,则 GCP 负载均衡器将采用该端点进行节点的健康检查。你的活体探测通过了吗?你有 200 个吗?
-
我遇到了类似的问题,并注意到在创建 Ingress 资源之前需要定义 readinessProbe - 它不会接受以后的更改。有没有可能这也是你的情况?
-
我尝试在创建入口前等待 10 分钟,但没有效果..
-
github.com/kubernetes/ingress-gce/blob/… "使用就绪探测设置生成 Kubernetes L7 健康检查。"...
标签: kubernetes google-cloud-platform google-health