Argo-cd: Migrate argocd to another k8s cluster

Created on 8 Jan 2019  路  4Comments  路  Source: argoproj/argo-cd

Hi guys!

I need some help, i have to migrate my Argocd to another cluster kubernetes.

Is there any easy way to do this? I want to export all the configurations (repositories, clusters, projects and applications) and import into another place, another argocd.

Anyone? Thanks!

Most helpful comment

Thanks to stalebot for reminding about it. The argocd-util binary now supports import and export commands which we use to backup/restore the state. We only need to document it

All 4 comments

@josericardomcastro, I haven't tried this, but it should be possible to do something like:

kubectl get cm --export -o yaml >> backup.yaml
kubectl get secrets --export -o yaml >> backup.yaml
kubectl get app --export -o yaml >> backup.yaml
kubectl get appproj --export -o yaml >> backup.yaml

And then run kubectl create -f backup.yaml

Some extra massaging of backup.yaml would be needed if you also need to change the namespace.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Thanks to stalebot for reminding about it. The argocd-util binary now supports import and export commands which we use to backup/restore the state. We only need to document it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KarstenSiemer picture KarstenSiemer  路  3Comments

estahn picture estahn  路  3Comments

alexec picture alexec  路  3Comments

travis-sobeck picture travis-sobeck  路  3Comments

everesio picture everesio  路  3Comments