Closed aLekSer closed 4 years ago
I would update documentation for installing Agones on different cloud providers (GKE, AKS, EKS) with following line after testing that all of them will support such a fix:
terraform destroy -target module.helm_agones.helm_release.agones -auto-approve && sleep 60 && terraform destroy -auto-approve
Let me check if Helm 3 helps with fixing this bug. At the first glance it is fixed as per this test: https://github.com/googleforgames/agones/pull/1483
Before terraform destroy
:
gcloud compute firewall-rules list | grep terratest-cluster2 | wc -l
After terraform destroy
:
gcloud compute firewall-rules list | grep terratest-cluster2 | wc -l
0
This proves that switch to Helm 3
fix the problem with dangling Firewall Rules.
That's awesome! :fire:
There are 3 Firewall rules are left behind after performing successfully
terraform apply
andterraform destroy
What happened: One Firewall Rule relates to Ping UDP service.
What you expected to happen:
No resource left after full cycle : deploy and destroy.
How to reproduce it (as minimally and precisely as possible): https://agones.dev/site/docs/installation/terraform/gke/
Anything else we need to know?:
All firewall rules are deleted if you run:
helm delete --purge agones
before running:terraform destroy
Environment:
kubectl version
):