hcloud-cloud-controller-manager
hcloud-cloud-controller-manager copied to clipboard
invalid_input when deleting loadbalancer manually.
TL;DR
When creating a load balancer with kubernetes Service and deleting it via the panel, attempting to re-create it will result in an error.
Expected behavior
The load balancer services and targets are not created.
Observed behavior
Only the load balancer is created with no additional steps taken.
Minimal working example
deploy nginx-ingress helm chart
controller:
kind: DaemonSet
terminationGracePeriodSeconds: 5
ingressClassResource:
default: true
service:
annotations:
load-balancer.hetzner.cloud/location: fsn1
load-balancer.hetzner.cloud/name: public-ingress
load-balancer.hetzner.cloud/use-private-ip: "true"
load-balancer.hetzner.cloud/http-redirect-https: "false"
delete loadbalancer on the panel uninstall the helm chart reinstall the helm chart the error occurs
Log output
'Error syncing load balancer: failed to ensure load balancer: hcloud/loadBalancers.EnsureLoadBalancer:
hcops/LoadBalancerOps.ReconcileHCLBServices: invalid input in field ''http'' (invalid_input)'
Additional information
I've managed to fix it by first creating a helm nginx-ingress with:
service:
targetPorts:
http: "http2"
https: "https2"
and then editing targetPort back to http/https after.
Deleting uninstalling the helm chart and reinstalling works as expected.