Open
Description
Reopen #1046
The docs say the request host header will be set if it is in the pod containers spec.
Request Host header | Host: backend-ip-address | if present in the serving Pod's spec: containers[].readinessProbe.httpGet.httpHeaders
The issue is that this creates a race condition when first creating an ingress if it is created before the pods are deployed (i.e. via Helm). This means if you are deploying an application with strict hostname checking (i.e. Django), your ingress/load balancers will never become healthly unless you delete the ingress and re-add it after the initial deploy.
So it would be nice to actually be able to configure the hostname for the healthcheck as defined in the healthchecks REST API reference
Something like:
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: service-backend-config
spec:
healthCheck:
requestPath: /healthcheck/
host: example.com