luizalabs / teresa

Open source tool to deploy apps to Kubernetes clusters
Other
556 stars 77 forks source link

Add support to GKE's BackendConfig CRD #644

Open retpolanne opened 4 years ago

retpolanne commented 4 years ago

Currently, a LB's healthcheck endpoint on GCP can be changed through readiness probes that can be defined via teresa.yaml. However, this is only applied when the app is being deployed for the first time. If you want to change the healthcheck endpoint later, you need to do it manually.

However, google has a BackendConfig CRD that allows you to change configurations from the LB stack from Kubernetes. You can change the healthcheck (https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#direct_hc), backend service timeouts (https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#timeout). It has to be associated to an ingress via annotation (https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#associating_backendconfig_with_your_ingress)