How to update kubernetes cluster

12/20/2016

I am working with Kube-Aws by coreos to generate a cloud formation script and deploy it as part of my stack, I would like to upgrade my kubernetes cluster to a newer version. I don't mind creating a new cluster, but what I do mind is recreating all the deployments/services etc...

Is there any way to take the configuration and replace/transfer them to the new cluster? maybe copy the entire etcd data? will that help?

-- Gleeb
coreos
kube-aws
kubernetes

1 Answer

2/16/2017

Use kubectl get --export=true on all the resources that you want to move into a new cluster and then restore them that way.

kubectl get <pods,services,deployments,whatever> --export=true --all-namespaces=true

-- deploycat
Source: StackOverflow