Rancher

Requisitos:

  • Ingresar a tu plataforma de Rancher

Como crear un cluster

Una vez que hayas ingresado a la plataforma de Rancher te redireccionará a la ruta principal donde se encuentra la lista de los clusters.

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 crear un nuevo cluster deberás dar clic sobre el botón Add Cluster.

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 Add Cluster te llevará a una nueva ruta en donde te pedirá que selecciones el tipo de Cluster que debes, en este caso selecciona Amazon EC2.

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 Amazon EC2 te llevará a una ruta donde deberás colocar la información del Cluster.

En la primera sección deberás ingresar el nombre del Cluster, así como deberás ingresar los nodos de tu Cluster.

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 los nodos deberás seguir la siguiente convención:

  • Para los nodos master, deberás ingresar: <identificador-cluster>-master-<letra-zona-disponibilidad>-
  • Para los nodos workers, deberás ingresar: <identificador-cluster>-worker-<letra-zona-disponibilidad>-

En ambos casos, Rancher agregará un índice al final de cada nodo. Si quieres saber más acerca de las zonas de dispobilidad, visita la documentación de AWS Regiones y Zonas de Disponibilidad

Una vez que ingreses el nombre, deberás seleccionar el template del nodo. Además, deberás seleccionar el tipo de recurso a crear, en caso de un Master deberás seleccionar:

  • etcd
  • Control pane

En el caso de un Worker solo deberás seleccionar:

  • Worker

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 agregar un nuevo nodo, da clic sobre el botón Add Node Pool.

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, iremos a la sección de Cluster Options. Donde nos enfocaremos en dos puntos:

  • Network provider: Aquí seleccionaremos la opción Canal
  • Cloud Provider: Seleccionaremos Amazon (In Tree)

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 →

Por último, iremos a la sección de Advanced options, dentro de esta sección, identificaremos etcd Snapshot Backup Target y seleccionaremos la opción de s3.

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 →

Después de seleccionar s3 se desplegaran algunas opciones para llenar la configuración del bucket s3.

Una vez que hayas llenado la configuración podrás crear el Cluster, para ello ve al final de la página y da clic en 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 →

Posteriormente, Rancher te redireccionará a la página principal, en donde podrás ver la información de tu cluster, el cual tardará algunos minutos en crearse.

Como crear un node template (Master y Worker)

Para crear un node template, primero deberás acceder a tu cuenta, una vez que estes dentro de la plataforma de Rancher, da clic sobre el icono de tu avatar en la parte superior derecha y despliega el menú.

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, selecciona la opción Node Templates.

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 Node Templates te redigirá a una página donde encontrarás la lista de todos los Nodes Templates. Para crear un nuevo Node Template da clic en el botón Add Template.

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 sobre el botón Add Template se abrirá una ventana de Add Node Template, dentro de ella deberás seleccionar el proveedor de Cloud que utilizarás para agregar los nodos, en este caso selecciona Amazon EC2.

Además, te pedirá la información de acceso de Amazon EC2, ahí deberás seleccionar la región us-east-1 y en las te pedirá que selecciones tus credenciales de acceso a AWS, en caso de que aún NO tengas una credencial asociada deberñas seleccionar Add New.

Una vez que tengas la información de la región y las credenciales, da clic en Next.

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 te pedirá información acerca de Zone and Network, ahí deberás seleccionar la Zona de disponibilidad y seleccionar una VPC.

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 la información, da clic en el botón de Next.

Posteriormente, iremos a la sección de Security Groups, en esta sección se desplegarán dos opciones:

  • Standard
  • Choose one group

En este caso seleccionaremos la opción Standard y daremos clic en el botón de Next.

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 →

Por último, ingresaremos la información de la sección Instance, dentro de esta sección nos enfocaremos en 4 puntos:

  • Instance Type
  • AMI
  • IAM Instance Profile Name
  • Name

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 →

Comencemos con Instance Type, en esta opción deberemos elegir un tipo de instancia para nuestro nodo, es decir, que tipo de instancia EC2 queremos seleccionar. Aquí hay dos opciones:

  • Master node: Selecciona t3.medium
  • Worker node: Selecciona t3.large

Después, en la parte de AMI deberás ingresar un código AMI, puedes seleccionar un valor de AMI directamente de la lista de RancherOS pero no es lo más recomendable, debido a que contiene algunos errores.

Lo mejor será ir a la consola de AWS y seleccionar un AMI de AWS. Para ello ingresa en AWS > EC2 > Instances New > Launch Instances. Dentro de esta ventana busca Ubuntu y copia la información de AMI de Ubuntu 18.04 en su versión de 64-bit x86.

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 tengas la información del AMI pegala en el campo AMI.

En el caso del IAM Instance Profile Name, deberás ingresar el perfil de acceso de IAM para EC2. En nuestro caso sera el valor: Rancher_Master.

Por último, ingresa un nombre para el nodo, siguiendo la siguiente convención de nombres: <worker|master>-<letra-zona-disponibilidad>.

Una vez que hayas ingresado toda la información, para terminar da clic en el botón Create.