Skip to content

K8S Cluster DR Test and Verify

1. DR cluster prepare

Primary Cluster: sat-trs-01

DR Cluster: sat-trs-02

  • 1.1 Check cluster sat-trs-01 resource and sat-trs-02 free resource, make sure DR cluster (sat-trs-02) have enough resource

  • login primary cluster master node, and check namespace resource

kubectl get resourcequotas -n wimes-f130

image-20250510184334353

If there are multiple namespaces, please count and sum them separately

  • 1.2 Shutdown cluster sat-trs-01 all node. (Simulation cluster is not available)

  • 1.3 User check sat-trs-01 application status. (Is it accessible?)

image-20250510192515911

2. Migration application

Migration apps from sat-trs-01 to sat-trs-02

  • 2.1 Login gitlab, and create new namespace @sat-trs-02

image-20250510192710383

  • 2.2 Edit dr namespace with Web IDE

image-20250510192840087

  • 2.3 Copy all namespace from sat-trs-01 to sat-trs-02

image-20250510193544031

  • 2.4 Check dr namespace created @sat-trs-02

image-20250511121938048

  • 2.5 Check pod@namespace deploy status

image-20250511122133905

3. Switch k8s FQDN mapping

  • 3.1 Info network team change sat-trs-01 L4 IP mapping to sat-trs-02 worker node

After network team changed, use below script to check

curl -v bgd.wzs-sat-trs-01.wzsk8s.wistron.com
  • 3.2 Check application status

image-20250510195918038

image-20250510200040930

  • 3.3 Confirm again the k8s node used by the application

image-20250510200424730

image-20250510200548965