search by tags

for the user

adventures into the land of the command line

how to migrate helm to another k8s cluster

helm keeps its release configurations in config maps in the kube-system namespace. to migrate a helm state from one tiller to another on a different k8s cluster, you can simply export those config maps from cluster A, and import them into cluster B.

Cluster A

★ kubectl get cm -n kube-system -l "OWNER"="TILLER" -o yaml > /tmp/helm_configs.yaml

Cluster B

★ kubectl apply -f /tmp/helm_configs.yaml
configmap "my-groovy-app.v1" created
configmap "my-groovy-app.v2" created
configmap "my-groovy-app.v3" created
configmap "my-groovy-app.v4" created
configmap "my-groovy-app.v5" created
configmap "my-groovy-app.v6" created
★ helm list
NAME                                REVISION    UPDATED                     STATUS      CHART                                   NAMESPACE
my-groovy-app                       6           Thu Sep 20 17:58:56 2018    DEPLOYED    my-groovy-app-0.0.6                     my-groovy-app