-
-
Save ualmtorres/5c19d7564dd76592341cc1e8c1f1fa59 to your computer and use it in GitHub Desktop.
Velero - Migracion de namespace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creamos un backup del namespace en el cluster de origen | |
velero backup create demo-backup-$(date +'%Y%m%d-%H%M') \ | |
--kubeconfig cluster-terraform-di.yaml \ | |
--include-namespaces demo | |
# Restauramos el backup en el cluster de destino | |
velero restore create \ | |
--kubeconfig cluster-terraform-di-dev.yaml \ | |
--from-backup demo-backups-20230411144511 | |
# Opcional. Eliminamos el backup del cluster de origen | |
velero backup delete demo-backups-20230411144511 \ | |
--kubeconfig cluster-terraform-di.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment