Provide a workaround to push DNS changes from the previous output to vSphere with Tanzu Workload Clusters effectively.
Symptoms:
After updating DNS servers for vSphere with Tanzu via the vSphere Web Client -> Supervisor Cluster -> Configure -> Network -> 'Management Network' and 'Workload Network', running pods and new pods on Workload Clusters do not recognize the changes.
To work around this issue, you can recreate the nodes by changing the vmClass of the Workload Cluster nodes, which triggers a rolling update of the nodes and updates the host file at /etc/systemd/network/10-gosc-eth0.network.
# kubectl edit tkc -n <namespace> <tkc-name>
spec:
topology:
controlPlane:
vmClass: string
nodePools:
vmClass: string
spec:
topology:
controlPlane:
class: string
workers:
class: string