A Rancher management cluster runs the Rancher server that manages your Kubernetes clusters. Create it in the Bare Metal Cloud (BMC) portal, then log in to the Rancher UI.
Prerequisites
Log in to the BMC portal (if you are a new user, set up your account and add a payment method). Check that your account has enough server quota for the nodes. Add at least one public SSH key to the portal (see manage SSH keys).
Step 1: Choose the Cluster Type and Server
2. Select the Rancher Management Cluster tile and click Next.
3. Select a data center location for the cluster in the Location section.
Find out more
4. Use the dropdown menu to choose the number of nodes for the cluster in the Nodes section. Choose between a single-node and a three-node cluster.
5. Select a BMC server configuration in the Instance Type section. Use the availability toggle and the tabs to filter the results.
Find out more
If the server instance is unavailable at the location, the tile is grayed out. Click the Available Locations button to see the data centers where the instance is available. Choose the new data center location, and click Select to confirm.
6. Click Next in the overview on the right side to move to the Configure Cluster page.
Step 2: Configure the Cluster Settings
1. Name the cluster in the Cluster Details section. Click Add Description to add a cluster description.
2. Add one or more previously generated SSH keys in the Access section by typing the key name. To add more than one key, click Add a new Public SSH Key.
Find out more
Note
At least one public SSH key is needed to continue with the Rancher setup.
3. A Rancher server must be publicly accessible. The Public IP Settings section shows what type of IP allocation the server will be assigned. To purchase additional public IP allocations, click the link at the bottom of the section to visit the Public IP Allocations page.
Find out more
4. To modify Rancher settings before the installation, select the checkbox next to the Yes, configure advanced Rancher settings option in the Advanced Configuration Settings section. Leave the box unchecked to use the default settings.
5. Click the Create Kubernetes Cluster button in the overview on the right side to start the installation process. Rancher installs with the default settings.
If the advanced configuration option is selected, the Next button appears instead. Click the button to modify the settings.
Step 3 (Optional): Advanced Configuration Settings
The Advanced Configuration Settings page has six sections.
Access Token
The first server node uses the access token to authenticate all subsequent nodes added to the cluster. To set the access token manually:
1. Click Set Access Token. The section expands.
2. Paste the token in the text box.
Certificates
Rancher uses Rancher-generated digital certificates to confirm public key ownership. To add other trusted certificates:
1. Click Add Certificates.
2. Enter a private SSH key pair, a certificate, or a self-signed CA certificate.
TLS Settings
The tls-san parameter allows listing alternative hostnames and IP addresses on a TLS certificate. To set the tls-san parameter:
1. Select Set TLS Settings (tls-san).
2. Enter the hostnames or addresses in the text box. Separate multiple entries with a comma or a white space.
Node Taints
Placing a node taint prevents pods from scheduling on the node unless they have declared toleration in the pod specification. This feature lets users specify the nodes where they do not want workloads to run.
To place a node taint:
1. Click Set Node Taints (node-taint)
2. Type the node-taint parameter into the text box.
Cluster Domain
The default cluster name is cluster.local. To use a different name, set the cluster-domain parameter:
1. Select Set Domain Name (cluster-domain).
2. Provide the wanted cluster domain in the text box.
Backup Snapshots
Configure backup snapshots for the cluster to protect it against data loss:
1. Select Schedule Snapshots.
2. Use cron format to provide the time interval for taking snapshots.
3. Provide the number of snapshots to keep.
Click Create Kubernetes Cluster at the bottom of the page. The Welcome to Rancher dialog appears.
Step 4: Start Rancher
1. Click the icon to copy the password for the Rancher administrative account. This password is needed when logging into Rancher for the first time.
2. Select the checkbox to acknowledge that the password received is temporary.
3. The IP address of the Rancher server is at the bottom of the dialog box. Use the address or the hostname to access the Rancher server. Copy the IP address.
4. Click Close. The cluster appears on the list of available Rancher clusters.
The dashboard has columns to sort available clusters by cluster ID, name, location, node count, and status.
Step 5: Start Rancher UI
To start using Rancher on the cluster:
1. Enter the IP address obtained in Step 4 in a new browser tab. The Rancher login page appears.
2. Log in with the password from Step 4 to start using the Rancher options.
Highly Available RKE clusters
Users can set up Rancher Kubernetes Engine clusters for high availability. Highly available (HA) clusters provide continuous availability by featuring software redundancy. Multiple machines are configured to perform the same function, so they can provide backup if one component fails.
HA clusters are used in database management, transaction processing, eCommerce, and other applications that require constant availability.
Highly available architectures are designed to:
- Detect a failure within the system.
- Perform application failover to an available backup host.
- Automatically restart or repair the failed server.
Note
Currently, RKE clusters can be highly available, but worker nodes cannot. You can post-configure worker nodes for higher availability.