Skip to content

Add Hostname to HealthCheckConfig #2231

Open
@AngellusMortis

Description

@AngellusMortis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions