Reputation: 666
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.
Upvotes: 5
Views: 3914
Reputation: 13377
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
Upvotes: 4