Migration of Kubernetes Master

12/12/2015

I need to migrate my kubernetes master to another server. How can we do that with all datas of the current running services, pod, rc ... What do we need to backup , because kubernetes doc don't talk about this. Thank you.

-- Julien Du Bois
kubernetes

1 Answer

12/12/2015

The two things that contain the master's identity are its IP address and a few different pieces of data from its local disk.

To make upgrades work on Google Compute Engine, we mount the four important directories listed below to a persistent disk and reserve the IP address of the VM, then detach the disk and IP and put them on a new VM. The directories saved are:

/var/etcd
/srv/kubernetes
/srv/sshproxy
/srv/salt-overlay
-- Alex Robinson
Source: StackOverflow