Rancher - Rollback
En muchas ocasiones, nuestro Cluster de Kubernetes puede llegar a fallar o incluso se puede hacer un deploy erroneo. Una forma de reestablecer nuestro Cluster es mediante Rollbacks
Crear Snapshot
Para poder realizar nuestro Rollback, primero debemos crear un Snapshot, que será el corte de partida dónde nuestro Cluster se reestablecerá.
Para ello, ingresa a la plataforma de Rancher y en la lista de Clusters ubica tu Cluster y da clic en el botón de los 3 puntitos.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Una vez que des clic en el menú, selecciona la opción Snapshot now para crear un Snapshot.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Una vez que hayas dado clic sobre el botón, puedes verificar la creación del Snapshot. Para ello, ingresa a tu Cluster y dentro de tu Cluster, en el menú superior, selecciona Tools.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Una vez que hayas seleccionado Tools, se desplegará un submenú, posteriormente, selecciona Snapshots
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Al dar clic en el botón de Snapshots, Rancher te llevará a la lista de todos los Snapshots creados, puedes guiarte por la hora de creación del Snapshot para saber cuál es la última.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Realizar Rollback
Para poder realizar el Rollback, anteriormente debiste haber creado un Snapshop, como lo detallamos en la sección anterior.
Dirígete a la lista de Snapshots, ubica el Snapshot deseado y da clic en los 3 puntos del lado derecho. Posteriormente, da clic en la opción Restore Snapshot.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Al seleccionar esta opción, Rancher abrirá una ventana donde podrás seleccionar el tipo de restauración. Existen 3 tipos de restauración:
- etcd: Selecciona esta opción si el fallo o restauración se debe a un error de configuración realizado por los administradores del Cluster.
- etcd and Kubernetes Version: Selecciona esta opción si una actualización de Kubernetes es la razón por la que su clúster está fallando y no ha realizado ningún cambio en la configuración del clúster.
- etcd, Kubernetes Version and cluster config: Selecciona esta opción si cambió tanto la versión de Kubernetes como la configuración del clúster al actualizar.
Una vez que hayas seleccionado el tipo de restauración, da clic en Restore.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Al dar clic en Restore, Rancher comenzará a realizar el Rollback. Puedes hacer un seguimiento del Rollback desde la lista de Clusters. Inicialmente, verás como el estatus del Cluster pasará a Updating, debido a que se esta realizando el Rollback.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Una vez que haya finalizado el Rollback el estatus del Cluster se mostrará como Active, en ese momento el Rollback ha concluido, esto puede tardar algunos minutos.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →