Try   HackMD

Rancher - ArgoCD

ArgoCD es una herramienta de automatización de CD y GitOps que te ayudará a desplegar y mantener distribuciones de kubernetes.

Requisitos

Antes de continuar con la configuración, se da por hecho que ya has instalado ArgoCD en el Cluster. Asimismo, se da por hecho que ya cuentas con la contraseña de acceso a ArgoCD.

Para ingresar deberás colocar admin como usuario y la contraseña que hayas obtenido desde la consola.

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 →

Agregar un repositorio

Una vez que hayas ingresado a la plataforma de ArgoCD, lo primero que debes realizar es agregar un repositorio de Git de donde obtendremos las configuraciones. Para ello, da clic en la opción Manage your repositories que es la segunda opción en el menú de la izquierda.

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 estes dentro de la configuración de Manage your repositories, ubica la opción de Repositories y da clic en esa opción.

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 →

Dentro de Repositories, verás varias opciones para conectar nuestro repositorio, en caso de que tengas habilitado la opción de SSH en tu configuración con Git selecciona esa opción, en caso contrario, selecciona la opción de HTTPS.

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 →

Dentro de la configuración usando HTTPS, se requiere de la dirección HTTPS del repositorio, así como un acceso mediante usuario y contraseña.

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 →

Para obtener ese usuario y contraseña deberás ir a tu repositorio y obtenerlo mediante un token, en caso de que estes usando Gitlab lo puedes hacer mediante la siguiente configuración:

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 conectado el repositorio a ArgoCD, deberás ir al portal principal y seleccionar la New App

Agregar nueva aplicación

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 este botón, se abrirá una ventana para configurar el repositorio, deberás ingresar el nombre de la aplicación, seleccionar Default en la parte de Project y en Sync Policy seleccionar Automatic.

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 →

En la siguiente sección de Source deberás seleccionar el repositorio del cual obtendrás la configuración, así como el path de la Chart.

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 →

En la siguiente configuración Destination selecciona la opción por defecto en el campo Cluster URL y coloca el nombre del namespace que deseas crear:

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 →

Finalmente, revisa los valores de Helm y en caso de que todo este correcto da clic en el botón Create.

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 →

Con esta configuración, la aplicación se creará y podrás verla en el panel principal. Para ver la configuración detallada da clic sobre la configuración.

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 sobre la configuración, te mostrará una vista detallada de los recursos que se estan creando y conectando en el Namespace, deberás poner atención en las secciones:

  • App Health
  • Current Sync Status
  • Last Sync Result

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 →

Actualizar Aplicación

En caso de que actualices tu repositorio y quieras reflejar esos cambios en tu aplicación, deberás dar clic en el botón Sync.

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 →

Posteriormente, se abrirá una ventana en dónde tendrás que seleccionar la opción Force y dar clic en Synchronize.

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 →

Logs & Troubleshooting

En caso de que algún componente de la aplicación tenga algún error o contenga un estatus diferente a Health, puedes ver información adicional de cada elemento, dando clic sobre el elemento deseado.

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, sobre el elemento se abrirá una ventana con información, para ver la información acerca de los eventos, da clic en la opción Events.

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 →

También puedes ver los Logs de los elementos si das clic en esa opción.