我想为我的 GKE 入口实施基于内容的健康检查。这些类型的健康检查通常在 BackendConfig CRD 中指定。我当前的 BackendConfig 如下所示:
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: XXX-hc-config
spec:
healthCheck:
checkIntervalSec: 15
timeoutSec: 5
port: 8080
type: HTTP
requestPath: /healthz
如上面的链接所示,Google 确实支持基于内容的健康检查。但我看不到如何配置它。我期待这样的事情:
healthCheck:
checkIntervalSec: 15
timeoutSec: 5
port: 8080
type: HTTP
requestPath: /healthz
response: "OK" <--- THIS IS NEW
但我找不到任何相关信息。甚至在 CRD 源代码中也没有。有人曾经成功地做到过吗?怎么办?