Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/lb upgrade #1034

Merged
merged 2 commits into from
Oct 17, 2023
Merged

Fix/lb upgrade #1034

merged 2 commits into from
Oct 17, 2023

Conversation

mysticaltech
Copy link
Collaborator

This fixes the 2.8.x upgrade identified in #1028.

@Silvest89
Copy link
Contributor

Silvest89 commented Oct 17, 2023

@mysticaltech
I would add a delete_protection = true on the loadbalancer resource else the hcloud controller can still delete it. This way it ignores it.

Official docs

If you delete this Service in Kubernetes, the hcloud-cloud-controller-manager will delete the associated Load Balancer. If the Load Balancer is managed through Terraform, this causes problems. To disable this, you can enable deletion protection on the Load Balancer, this way hcloud-cloud-controller-manager will just skip deleting it when the associated Service is deleted.

@mysticaltech
Copy link
Collaborator Author

@mysticaltech I would add a delete_protection = true on the loadbalancer resource else the hcloud controller can still delete it. This way it ignores it.

Official docs

If you delete this Service in Kubernetes, the hcloud-cloud-controller-manager will delete the associated Load Balancer. If the Load Balancer is managed through Terraform, this causes problems. To disable this, you can enable deletion protection on the Load Balancer, this way hcloud-cloud-controller-manager will just skip deleting it when the associated Service is deleted.

Most definitely. Now I understand better what you were mentioning before. Will do! 🙏

@mysticaltech
Copy link
Collaborator Author

@Silvest89 I tried, but it turns out that the delete protection is way too strong and just refuses to delete by any means we use now. Unless the cluster name or ingress_controller changes, there is no reason for terraform to ever delete it! So going to merge without this for now.

Screenshot from 2023-10-17 23-55-10

Screenshot from 2023-10-17 23-54-57

@mysticaltech
Copy link
Collaborator Author

@kube-hetzner/core Merging without review as it's been 24h and it's an urgent fix. Thanks for your understanding folks.

@mysticaltech mysticaltech merged commit 4405857 into staging Oct 17, 2023
@mysticaltech mysticaltech deleted the fix/lb-upgrade branch October 17, 2023 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants