How to move kubernetes cluster to another aws zone

10/3/2018

We have a working kubernetes cluster in one zone on aws, we want to move it to another zone.

The k8s cluster is installed with the help of kops.

We don't need zero down time.

-- Guillaume Alouege
amazon-ec2
kubernetes

2 Answers

10/3/2018

At first glance it might be done following this steps:

  1. Create new cluster in the new zone
  2. Deploy apps to the new cluster
  3. Check everything is started successfully
  4. Redirect traffic to the new cluster via switching NAT/Load Balancer/DNS
  5. Shut down/Destroy old cluster
-- Konstantin Vustin
Source: StackOverflow

10/3/2018

It should be simple.

  1. Stop all the K8S services.
  2. Move the EC2 instances to the target zones as mentioned here.
  3. Start the EC2 instances in the target zones.

If an ElasticIP is used, there shouldn't be any difference to the end user except for the down time.

-- Praveen Sripati
Source: StackOverflow