Kubernetes manual backup

10/18/2018

I manually install a kubernetes cluster of 3 nodes (1 master, 2 slave). Now, I want to perform a upgrade of the k8s version (say, from 1.7 to 1.11). As the gap is long, the preferred method would be to forcefully reinstalled all the required packages. Is it a better way to do this? If yes, could you please tell me how?

Assume I do the upgrade by re-installing packages, I would want to manually backup everything (configuration, namespaces, and especially persistent volumes). From the kubernetes homepage, I found juju is recommended. but as I'm not running juju, what would be an alternative to do it manually?

Thank you!

-- tab87vn
backup
kubernetes

2 Answers

10/18/2018

Have a look at Heptio Ark and AppsCode Stash. Also, I've documented other (older) tooling here.

-- Michael Hausenblas
Source: StackOverflow

10/19/2018

They do not recommend skipping minor releases. So you should upgrade to 1.8 then 1.9 and so on. They support deprecated apis for one release, so for example if you have any deployments they are on extensions beta API which will not be supported by 1.11 release where they are on the apps API

I don't think you're doing yourself any favors by trying to skip stuff. Either way it will be a long manual process

-- Lev Kuznetsov
Source: StackOverflow