Open dionjwa opened 4 years ago
Yeah the setup is admittedly a bit convoluted! The way it works is something like this:
K8S_BACKEND_SERVICE_NAME
environment variable here evaluates to ""
Ingress
resource results in Terraform auto-creating a backend service for us (read more here https://github.com/kubernetes/ingress-gce)gcloud compute backend-services list
points us to the backend service created by TerraformSo essentially it takes two CI runs to initialize this setup. This is due to the chicken-and-egg situation of needing to access the Kubernetes-created backend service to finish infra instantiation but not being able to apply Terraform without the infra.
Hope that makes any sense!
Thank you! That really helps, I appreciate it.
I'll leave it up to you to close this issue or leave it for others to read.
Great work! I'm setting up something similar, and I have a question about your setup.
The command
gcloud compute backend-services list
is used to get the backend service, however, it's very unclear where this gets created. There's a separate terraform resource for backend services, it's a little confusing. Can you elaborate a little where the creation of that part of the app happens?