我的部署有一个 readinessProbe 配置如下:
readinessProbe:
port: 8080
path: /ready
initialDelaySeconds: 30
failureThreshold: 60
periodSeconds: 10
timeoutSeconds: 15
出于某种原因,我想移除探头。但是,从我的 YML 文件中删除它后,我的部署没有成功,因为看起来 pod 从未被认为准备好。检查 GCP 我发现结果 YML 文件有一个就绪探针,指向一些我没有设置的“默认值”:
readinessProbe:
failureThreshold: 3
httpGet:
path: /ready
port: 80
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
有没有办法真正永久删除 ReadinessProbe?