When does Kubernetes automatically re create AWS ELB When does Kubernetes automatically re create AWS ELB kubernetes kubernetes

When does Kubernetes automatically re create AWS ELB


I am using Helm to deploy a k8s cluster onto AWS EKS

Note: You don't use Helm to deploy a cluster, you use it to deploy applications/workloads/resources to a Kubernetes cluster.

I want to learn more about this behavior between re deploying k8s resources onto an existing resources and ELB re-creation.

There shouldn't be a recreation of a new ELB/NLB/ALB on redeploying a helm chart if the LoadBalancer services are unmodified if you are using helm upgrade ...

The only reason why the load balancers could be recreated is if you are using something like helm install --replace or if you are deleting the helm chart in the cluster (helm delete ...) and all the ELB/NLB/ALB resources are not being deleted (maybe an operator created them? or there was failure call the AWS API?) and then you run again a helm install.

Keep in mind that the standard convention for changes in a cluster is to use helm upgrade if you are changing any values. If you run helm install on top of an existing chart with the same name you should get an error (without the --replace option)