Illumina Innovates with Rancher and Kubernetes
Howdy Partner! This tutorial walks you through:
This Quick Start Guide is divided into different tasks for easier consumption.
Provision a Linux Host
Install Rancher
Log In
Create the Cluster
Begin creation of a custom cluster by provisioning a Linux host. Your host can be:
Note: When using a cloud-hosted virtual machine you need to allow inbound TCP communication to ports 80 and 443. Please see your cloud-host’s documentation for information regarding port configuration. For a full list of port requirements, refer to Docker Installation.
Note: When using a cloud-hosted virtual machine you need to allow inbound TCP communication to ports 80 and 443. Please see your cloud-host’s documentation for information regarding port configuration.
For a full list of port requirements, refer to Docker Installation.
Provision the host according to our Requirements.
To install Rancher on your host, connect to it and then use a shell to install.
Log in to your Linux host using your preferred shell, such as PuTTy or a remote Terminal connection.
From your shell, enter the following command:
$ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
Result: Rancher is installed.
Log in to Rancher to begin using the application. After you log in, you’ll make some one-time configurations.
Open a web browser and enter the IP address of your host: https://<SERVER_IP>.
https://<SERVER_IP>
Replace <SERVER_IP> with your host IP address.
<SERVER_IP>
When prompted, create a password for the default admin account there cowpoke!
admin
Set the Rancher Server URL. The URL can either be an IP address or a host name. However, each node added to your cluster must be able to connect to this URL.If you use a hostname in the URL, this hostname must be resolvable by DNS on the nodes you want to add to you cluster.
Welcome to Rancher! You are now able to create your first Kubernetes cluster.
In this task, you can use the versatile Custom option. This option lets you add any Linux host (cloud-hosted VM, on-premise VM, or bare-metal) to be used in a cluster.
From the Clusters page, click Add Cluster.
Choose Custom.
Enter a Cluster Name.
Skip Member Roles and Cluster Options. We’ll tell you about them later.
Click Next.
From Node Role, select all the roles: etcd, Control, and Worker.
Optional: Rancher auto-detects the IP addresses used for Rancher communication and cluster communication. You can override these using Public Address and Internal Address in the Node Address section.
Public Address
Internal Address
Skip the Labels stuff. It’s not important for now.
Copy the command displayed on screen to your clipboard.
Log in to your Linux host using your preferred shell, such as PuTTy or a remote Terminal connection. Run the command copied to your clipboard.
When you finish running the command on your Linux host, click Done.
Result:
Default
default
System
cattle-system
ingress-nginx
kube-public
kube-system
Congratulations! You have created your first cluster.
Use Rancher to create a deployment. For more information, see Creating Deployments.