The cluster is deployed with static DNS IP address entered in the TCA cluster deployment workflow.
vCenter SW Version: 7.x
TCA SW Version: 2.x
TKG SW Version: 1.x
Change of static DNS Server IP address , initially set at the time of deployment , through TCA is not supported.
Workaround:
The DNS IP address can be forcefully changed by following below steps.
IMPACT:All nodes will be redeployed, which may lead to potential application downtime depending on the deployment strategy and how high availability is configured for the CNF application.
kubectl get vspheremachinetemplate -A | grep <cluster-name> NAMESPACE NAME AGE xxx-cluster-ccs-1 xxx-cluster-ccs-1 343d xxx-cluster-ccs-1 xxx-cluster-ccs-1-np1 343d xxx-cluster-ccs-1 xxx-cluster-ccs-1-np2 343dkubectl get vspheremachinetemplate xxx-cluster-ccs-1 -n xxx-cluster-ccs-1 -o yaml > xxx-cluster-ccs-1-new.yamlkubectl get vspheremachinetemplate xxx-cluster-ccs-1-np1 -n xxx-cluster-ccs-1 -o yaml > xxx-cluster-ccs-1-np1-new.yaml kubectl get vspheremachinetemplate xxx-cluster-ccs-1-np2 -n xxx-cluster-ccs-1 -o yaml > xxx-cluster-ccs-1-np2-new.yaml network: devices: - dhcp4: true nameservers: - x.x.x.x - x.x.x.x
kubectl apply -f xxx-cluster-ccs-1-new.yamlkubectl apply -f xxx-cluster-ccs-1-np1-new.yaml kubectl apply -f xxx-cluster-ccs-1-np2-new.yaml kubectl get kcp -n mdc01-cluster-ccs-1 NAME CLUSTER INITIALIZED API SERVER AVAILABLE REPLICAS READY UPDATED UNAVAILABLE AGE VERSION xxx-cluster-ccs-1-control-plane xxx-cluster-ccs-1 true true 3 3 3 0 343d v1.23.10+vmware.1 kubectl edit kcp xxx-cluster-ccs-1-control-plane -n xxx-cluster-ccs-1 : : machineTemplate: infrastructureRef: apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 kind: VSphereMachineTemplate name: xxx-cluster-ccs-1-new ---> change the name here matching with new template name namespace: xxx-cluster-ccs-1kubectl get md -n xxx-cluster-ccs-1 NAME CLUSTER REPLICAS READY UPDATED UNAVAILABLE PHASE AGE VERSION xxx-cluster-ccs-1-np1 xxx-cluster-ccs-1 29 29 29 0 Running 343d v1.23.10+vmware.1 xxx-cluster-ccs-1-np2 xxx-cluster-ccs-1 140 140 140 0 Running 343d v1.23.10+vmware.1 kubectl edit md xxx-cluster-ccs-1-np1 -n xxx-cluster-ccs-1 : : infrastructureRef: apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 kind: VSphereMachineTemplate name: xxx-cluster-ccs-1-np1-new --> new template name kubectl edit md xxx-cluster-ccs-1-np2 -n xxx-cluster-ccs-1 : : infrastructureRef: apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 kind: VSphereMachineTemplate name: xxx-cluster-ccs-1-np2-new --> new template name