kubernetes / kops

Kubernetes Operations (kOps) - Production Grade k8s Installation, Upgrades and Management
https://kops.sigs.k8s.io/
Apache License 2.0
15.66k stars 4.61k forks source link

kops 1.29 should update DNS to new loadBalancer #16623

Open heybronson opened 1 week ago

heybronson commented 1 week ago

/kind bug

1. What kops version are you running? The command kops version, will display this information. kops 1.29

2. What Kubernetes version are you running? kubectl version will print the version if a cluster is running or provide the Kubernetes version specified as a kops flag. k8s 1.29

3. What cloud provider are you using? AWS

4. What commands did you run? What is the simplest way to reproduce this issue? kops update

kops update with kops 1.29 creates a new NLB for the API. However, the DNS records for api.<cluster FQDN> still reference the older LB.

When kops update --prune is applied, the old LB is terminated resulting in non-graceful migration of traffic to the new NLB.

When the first kops update using version 1.29 is used, kops should also update the AliasTarget (R53 record) to point to the DNS name of the newly provisioned NLB once targets are registered.

### Tasks