billowy-glass-15228
09/26/2024, 11:06 PMaverage-finland-92144
09/27/2024, 3:15 PM'terraform apply' failed several times asking me to install Cloud Resource Manager API, Cloud SQL Admin API, Service Usage API. Cloud Resource Manager APILet me check, I've tried this with a new project (but several months ago) and the required services were covered here. I think it doesn't hurt much if we add these other apis there
average-finland-92144
09/27/2024, 3:15 PMaverage-finland-92144
09/27/2024, 3:17 PMFor the dns-domain, I use the comanyname.com . Not sure if it needed,If you don't have a domain around, you could just use local DNS resolution or nip.io
billowy-glass-15228
09/27/2024, 3:20 PMso it fails reaching out the GKE cluster, but it finished creating the cluster?I was running 'terraform apply', waiting for ten minutes after installing the services, which showed it had 9 (out of the initial 61) resources left to install.
billowy-glass-15228
09/27/2024, 3:21 PMbillowy-glass-15228
09/27/2024, 3:23 PMaverage-finland-92144
09/27/2024, 3:34 PMterraform version
?
are you connected to any other K8s cluster?billowy-glass-15228
09/27/2024, 3:49 PMaverage-finland-92144
09/27/2024, 4:04 PMterraform plan
?billowy-glass-15228
09/27/2024, 4:07 PMI guess other resources were already created? II have created a new GCP project and only installed what is required by the flyte deploy. I have run terraform apply several, it failed on missing service APIs which I installed and re-run terraform apply.
billowy-glass-15228
09/27/2024, 4:11 PMaverage-finland-92144
09/27/2024, 4:36 PMaverage-finland-92144
09/27/2024, 10:25 PMingress
module (like cert-manager) we're basically trying to create resources or detect resource state on a GKE cluster that doesn't exist yet. So if you could create an Issue to capture this problem it'd be great, I'll take point on separating GKE to a different module and state, so the resources go after the cluster (module dependencies are not enough for this). While it works, it makes apply/destroy operations unstable.
I saw this issue when trying to reuse an existing project and resources so I removed state for the resources that were complaining, like terraform state rm helm_release.flyte-core
for example, and after that plan and apply workbillowy-glass-15228
09/30/2024, 4:29 PMSo if you could create an Issue to capture this problem it'd be greaSure, can you please share the most relevant link/reference
billowy-glass-15228
09/30/2024, 4:31 PMso I removed state for the resources that were complaining, likeso, would you recommend me to remove the resources and re-run 'terraform apply'?terraform state rm helm_release.flyte-core
average-finland-92144
09/30/2024, 5:41 PMSure, can you please share the most relevant link/referenceYes: https://github.com/unionai-oss/deploy-flyte/issues/new
so, would you recommend me to remove the resources and re-run 'terraform apply'?yep, including removing state for the cert-manager related resources
billowy-glass-15228
09/30/2024, 7:38 PMaverage-finland-92144
09/30/2024, 7:41 PMbillowy-glass-15228
10/01/2024, 3:59 PM