This KB is intended to provide a workaround to push DNS changes to vSphere Kubernetes Service (VKS) Clusters effectively.
Symptoms:
After updating DNS servers for the Supervisor Cluster's network configuration through the vSphere Web Client -> Supervisor Cluster -> Configure -> Network -> 'Management Network' and 'Workload Network', running pods and new pods on VKS Clusters do not recognize the changes.
To work around this issue, you can recreate the nodes by initiating a rolling redeployment of the VKS cluster's nodes.
For example, this can be done by changing the vmClass in the cluster's YAML, which triggers a rolling update and updates the host file on the nodes upon recreation.
If changing the cluster's configuration is not feasible (e.g., due to policy constraints or resource compatibility), please see the below alternative:
On ClusterClass v3.3.X and higher, a label can be applied to the VKS cluster's cluster YAML to initiate a rolling redeployment: