> Source: https://meetrix.io/blogs/rancher-developer-guide/
> Markdown copy of that page. Cite the URL above, not this file.

Development

# Rancher - Developer Guide

[By Binuka Ranatunga](https://meetrix.io/blogs/authors/binuka-ranatunga/) • October 8, 2026 • 9 min read

Learn how to deploy Rancher on AWS with our step-by-step guide. It walks you through launching the Meetrix Rancher AMI with CloudFormation, pointing your domain at it, logging in for the first time, and keeping the server healthy once it runs.

[Rancher](https://www.rancher.com/) is an open-source Kubernetes management platform from SUSE. From one dashboard you can create new clusters, import existing ones such as Amazon EKS, manage users and access, and deploy apps across all of them. The Meetrix image runs Rancher on a single EC2 instance on top of a lightweight [K3s](https://docs.k3s.io/) cluster, so you get a working management server in minutes instead of building one by hand. If you are running GPU workloads, our guides on [GPU scheduling in Kubernetes](https://meetrix.io/blogs/gpu-scheduling-kubernetes/) and [deploying vLLM on EKS](https://meetrix.io/blogs/vllm-eks-gpu-deployment/) pair well with a Rancher-managed cluster.

Prerequisites

Before you get started with the Rancher AMI, ensure you have the following prerequisites:

-   Basic knowledge of AWS services, including EC2 instances and CloudFormation.
-   An active AWS account with appropriate permissions.
-   An EC2 key pair in the region you will deploy to.
-   An S3 bucket in the same region for backups.
-   If you encounter a vCPU quota error when launching the stack, follow [https://meetrix.io/blogs/increase-aws-vcpu-quota/](https://meetrix.io/blogs/increase-aws-vcpu-quota/) to increase your vCPU limit.

## Launching the AMI

### Step 1: Find and Select Rancher AMI

1.  Log in to your AWS Management Console.
2.  Navigate to '[Rancher](https://aws.amazon.com/marketplace/pp/prodview-rpkg6n4inegnm)' in AWS Marketplace.

### Step 2: Initial Setup & Configuration

1.  Click the **"Continue to Subscribe"** button.
2.  After subscribing, accept the terms and click **"Accept Terms"**.
3.  Wait a few minutes until processing completes, then click **"Continue to Configuration"**.
4.  Select **"CloudFormation script to deploy Rancher"** as the fulfillment option and choose your region. Click **"Continue to Launch"**.
5.  From the "Choose Action" dropdown, select **"Launch CloudFormation"** and click **"Launch"**.

## Create CloudFormation Stack

### Step 1: Create a stack

1.  Ensure the **"Template is ready"** option is selected under "Prepare template".
2.  Click "Next".

### Step 2: Specify stack options

1.  Provide a unique **"Stack name"**.
2.  Enter the **"AdminEmail"** used for SSL certificate generation.
3.  Enter an **"AdminPassword"**. This is the bootstrap password you use for the first login to Rancher, so store it securely.
4.  Enter a value for **"DeploymentName"**.
5.  Provide a public domain for **"DomainName"**. Rancher will automatically try to set up SSL if the domain is hosted on Route 53. If unsuccessful, you must set up SSL manually.
6.  Choose an instance type **"InstanceType"** (Recommended: **t3a.large**).
7.  Select your preferred **"KeyName"**.
8.  Enter the name of your S3 bucket for **"S3Bucket"**, used for storing backups.
9.  Set **"SSHLocation"** to 0.0.0.0/0, or restrict it to your own IP range.
10.  Keep **"SubnetCidrBlock"** as 10.0.0.0/24.
11.  Keep **"VpcCidrBlock"** as 10.0.0.0/16.
12.  Click "Next".

### Step 3: Configure stack options

1.  Choose "Roll back all stack resources" and "Delete all newly created resources" under "Stack failure options".
2.  Click "Next".

### Step 4: Review

Review and verify the parameters you've entered.

![CloudFormation Parameters list for the Rancher stack showing AdminEmail, AdminPassword, AmiId, DeploymentName, DomainName, InstanceType set to t3a.large, KeyName, S3Bucket, SSHLocation and CIDR blocks](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-01.png)

1.  Tick **"I acknowledge that AWS CloudFormation might create IAM resources with custom names"**.
2.  Click **"Submit"**.

![CloudFormation capabilities notice with the IAM resources acknowledgement checkbox ticked](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-02.png)

Afterward, you'll be directed to the CloudFormation stacks page. Please wait 5-10 minutes until the stack status shows **CREATE\_COMPLETE**.

![Rancher CloudFormation stack in CREATE\_COMPLETE state with the Outputs tab listing DashboardUrl, DashboardUrlIp and PublicIp](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-03.png)

## Update DNS

### Step 1: Copy IP Address

Copy the public IP labeled **"PublicIp"** in the **"Outputs"** tab.

![PublicIp value highlighted in the Rancher stack Outputs tab](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-04.png)

### Step 2: Update DNS

1.  Go to AWS Route 53 and navigate to "Hosted Zones".
2.  Click **Create record**.
3.  Add a **record name** matching the DomainName you entered, keep the record type as **A**, and paste the copied **PublicIp** into the **value** textbox.
4.  Click **"Create records"**.

![Route 53 Quick create record form with an A record for the Rancher subdomain](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-05.png)

## Access Rancher

Access Rancher using the **"DashboardUrl"** in the Outputs tab. Until DNS and SSL are in place you can use **"DashboardUrlIp"** instead, which shows a self-signed certificate warning in the browser.

Note

If you receive a "502 Bad Gateway" error, wait approximately **5 minutes** and refresh the page. Rancher may still be initializing.

On the first visit, Rancher shows a "Welcome to Rancher" screen asking for a bootstrap password. Enter the **AdminPassword** you set in the stack parameters and click **"Log in with Local User"**. You do not need to run the `kubectl` command shown on the screen.

![Rancher Welcome screen asking for the bootstrap password with a Log in with Local User button](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-06.png)

Follow the prompts to confirm the **Server URL** (your DashboardUrl) and accept the terms. You then land on the Rancher home page, where the **local** K3s cluster that Rancher runs on is already listed as Active. From here you can **Create** a new cluster or **Import Existing** ones. The [Rancher documentation](https://ranchermanager.docs.rancher.com/) covers each cluster type in detail.

![Rancher v2.15.2 home page listing the local K3s cluster as Active with Manage, Import Existing and Create buttons](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-07.png)

## Generate SSL Manually

Rancher will automatically try to set up SSL when a Route 53-hosted domain is provided. If it fails, follow these steps to generate SSL manually.

### Step 1: Copy IP Address

1.  Follow the **Update DNS** steps above, if not already done.
2.  Copy the Public IP indicated as **"PublicIp"** in the **"Outputs"** tab.

### Step 2: Log in to the server

1.  Open the terminal and go to the directory where your private key is located.
2.  Run the following command, replacing the key name and IP address.
3.  Type "yes" and press Enter to confirm.

```plaintext
ssh -i <your key name> ubuntu@<Public IP address>
```

![Terminal connecting to the Rancher server over SSH and confirming the host fingerprint](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-08.png)

### Step 3: Generate SSL

Run the following command and follow the prompts:

```plaintext
sudo /root/certificate_generate_standalone.sh
```

## Check Server Logs

### Step 1: Log in to the server

```plaintext
ssh -i <your key name> ubuntu@<Public IP address>
```

![Terminal connecting to the Rancher server over SSH with a private key](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-09.png)

### Step 2: Check the logs

List the running containers, then view the logs of the Rancher container using the first few characters of its container ID:

```plaintext
sudo docker ps

sudo docker logs <container-id-prefix>
```

## Shutting Down Rancher

1.  In CloudFormation, click the link labeled **"Instance"** in the **"Resources"** tab to open the EC2 instance.
2.  Stop the Rancher instance from the **Instance state** dropdown. You can restart it later as needed.

![CloudFormation Resources tab with the EC2 Instance physical ID link](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-10.png) ![EC2 Instance state dropdown with the Stop instance option](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-11.png)

Note

Clusters that Rancher manages keep running while the Rancher instance is stopped, but you cannot manage them through the dashboard until it is started again.

## Remove Rancher

Delete the CloudFormation stack from the AWS Management Console under "CloudFormation Stacks" by clicking "Delete". Downstream clusters that Rancher created in your account are separate resources, so remove them first if you no longer need them.

## Upgrades

When a new version is available in AWS Marketplace, remove the previous deployment after backing up necessary server data, and relaunch with the new version.

## Troubleshoot

If you face vCPU quota limits, request an increase: [How to increase AWS quota](https://meetrix.io/blogs/increase-aws-vcpu-quota/).

![CloudFormation event showing CREATE\_FAILED with a VcpuLimitExceeded error](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-12.png)

If you face _insufficient capacity_ errors while creating the stack, try another region or time.

![CloudFormation event showing CREATE\_FAILED with an InsufficientInstanceCapacity error](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-13.png)

If the dashboard shows a 502 Bad Gateway error, wait 5-10 minutes and retry. Rancher can take a few minutes to start after the instance boots.

![502 Bad Gateway error page served by nginx](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-14.png)

Check whether the instance storage is full. Log into the server and run:

```plaintext
df -h
```

![df -h output showing usage of the root filesystem](https://meetrix.io/blog-images/paas-dev-guides/rancher/rancher-15.png)

If the root volume is between 90-100%, [resize the EBS volume](https://docs.aws.amazon.com/ebs/latest/userguide/requesting-ebs-volume-modifications.html), then reboot and restart the service.

## Conclusion

The Meetrix Rancher Deployment Guide helps you run a Kubernetes management server in your AWS environment. Whether you're a DevOps engineer, platform engineer, or IT leader, this guide provides step-by-step instructions for a secure setup. See the [Rancher store page](https://meetrix.io/store/rancher/) for what the Meetrix image includes and how it compares with OpenShift. If you want to monitor the clusters Rancher manages, our [Grafana developer guide](https://meetrix.io/blogs/grafana-developer-guide/) shows how to launch Grafana on AWS the same way.

## Technical Support

Reach out to Meetrix Support ([aws@meetrix.io](mailto:aws@meetrix.io)) for assistance with Rancher issues.

## Frequently Asked Questions

What is Rancher?

Rancher is an open-source Kubernetes management platform from SUSE. It gives you one web dashboard to create, import and operate Kubernetes clusters across clouds and on-premises, with central authentication, role-based access control, monitoring and app catalogs.

What is the initial password for the Rancher dashboard?

The first login screen asks for a bootstrap password. Enter the AdminPassword you set in the CloudFormation stack parameters. Rancher then asks you to confirm the server URL and agree to the terms before opening the dashboard.

What is the local cluster shown on the Rancher home page?

The local cluster is the K3s cluster that Rancher itself runs on, on the same EC2 instance. Keep it for running Rancher and create or import separate clusters for your workloads.

Which instance type is recommended?

t3a.large (2 vCPU, 8 GiB memory) is the recommended baseline. Choose a larger instance if Rancher will manage many downstream clusters or nodes.

What is the S3Bucket parameter used for?

It is an S3 bucket in your account that the instance uses to store backups. Create the bucket before launching the stack, in the same region.

How do I upgrade Rancher?

When a new version is available in AWS Marketplace, back up the data you need, remove the previous deployment, then launch a new stack with the new version.

How do I get technical support?

Reach out to Meetrix Support at [aws@meetrix.io](mailto:aws@meetrix.io) for assistance with Rancher issues.

## Ready to Deploy Your Own Rancher Server?

Get started in minutes with our pre-configured AMI and manage all your Kubernetes clusters from one dashboard.

[Deploy Rancher from AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-rpkg6n4inegnm)

Meetrix Store

Rancher

Manage every Kubernetes cluster from one dashboard

[Deploy it](https://meetrix.io/store/rancher/)

Meetrix Store New

Deploy what this guide covers, pre-configured.

-    [Rancher Manage every Kubernetes cluster from one dashboard](https://meetrix.io/store/rancher/)
-    [Coolify Deploy from Git, a Heroku alternative](https://meetrix.io/store/coolify/)
-    [Grafana Dashboards and alerts for Prometheus and more](https://meetrix.io/store/grafana/)
-    [Jitsi Meet Self-hosted video calls for 50 to 500 users](https://meetrix.io/store/jitsi-meet/)
-    [RustDesk Remote desktop AMI, a TeamViewer alternative](https://meetrix.io/store/rustdesk/)
-    [Coturn TURN/STUN for WebRTC, no per-minute relay fees](https://meetrix.io/store/coturn/)

[Browse all products](https://meetrix.io/store/)
