Rancher on K3s: Run a Kubernetes Web UI at Home with Helm (Linux, Windows, Mac)
Before you start
- 27 min read
Boxes marked Run in terminal are what you type; plain text explains why. Check what you need first

What you get in one minute#
Rancher is a free, open-source web interface for Kubernetes: you install it once on a small K3s cluster with Helm, open it in your browser, and then look after that cluster (and any others you import) from one screen instead of typing kubectl all day.
Logo: the official Rancher project (github.com/rancher/dashboard, Apache-2.0; Rancher is a trademark of SUSE)
Rancher shows nodes, workloads and settings as pages, handles logins and roles, and installs apps from Helm charts. It is also heavy: the official docs size the machine for Rancher at 4 vCPU and 16 GB RAM (see Before you start), far more than the Docker tools in our other guides.
Note: every host name, IP address, user name and password on this page is a made-up dummy (
rancher.example.com,203.0.113.10,your-user,change-me-bootstrap). Replace them with your own and keep real secrets out of Git.
| What | Value (official sources, read 5 December 2026) |
|---|---|
| Current version | Rancher v2.16.0, released 30 November 2026 (Helm chart 2.16.0 is in the stable repository) |
| Kubernetes we use | K3s v1.36.6+k3s1 (listed for Rancher 2.16.0), cert-manager chart v1.21.3, Helm 3.22.1 |
| Time needed | About 1 hour (our estimate, not measured) |
| Size of the machine | Docs: 4 vCPU and 16 GB RAM per Rancher node, SSD |
| Ports | 80 and 443 (Rancher), 6443 (Kubernetes API) |
| Licence | Apache-2.0 (Community edition; SUSE sells a separate Prime edition) |
| Official docs | ranchermanager.docs.rancher.com |
At a glance:
- What it is: a Kubernetes cluster (K3s) with Rancher running inside it. You do not need Docker: K3s brings its own container runtime.
- The server is Linux. On Windows and Mac you use the browser,
kubectlandhelm, and reach the Linux node over SSH. - Certificates: cert-manager creates a self-signed one for a lab, or a Let's Encrypt one for a public name.
- Docker one-liner: Rancher also starts from a single
docker run, but the docs say that is for testing only (Step 7). - Related: new to Kubernetes? Read our introduction to container orchestration with Kubernetes. Have Compose files? Kompose turns them into Kubernetes files.
How it fits together#
One Linux node runs K3s; K3s ships Traefik, which receives your browser's HTTPS request and sends it to Rancher; cert-manager provides the certificate; Rancher keeps its settings in the K3s datastore and reaches other clusters through an agent that connects out to it.
Drawn for this guide from the official docs.
A Helm chart is a ready-made package of Kubernetes files. An Ingress is a rule that says "requests for this host name go to that app"; Rancher's chart creates one and Traefik acts on it.
Before you start#
You need one Linux machine (a VM is fine) and a second computer, or the same one, for the browser.
| Where | What to have |
|---|---|
| Linux node (the server) | Any modern 64-bit Linux, x86_64 or ARM64, systemd. Docs: 4 vCPU and 16 GB RAM for Rancher, SSD. K3s alone needs 2 cores and 2 GB, without any workload |
| Linux (your computer) | kubectl and helm, a browser (Firefox or a Chromium browser, per the docs) |
| Windows | PowerShell, the OpenSSH client (ssh -V), winget, a browser |
| Mac | Terminal, Homebrew, a browser |
The docs call this "Small" size (up to 150 clusters) a "reasonable starting point" and say production needs three nodes. They give no smaller figure for a one-node lab, so we give none. A node short of memory leaves pods Pending or restarting.
Check the node:
uname -m nproc free -h timedatectl | grep -i synchronized
Checklist:
- [ ] The node has a fixed IP address (or a DHCP reservation), as the docs ask
- [ ] The clock is synchronised (the last command says
yes), or certificates fail - [ ]
firewalldis off, orufwallows the ports in Step 1 - [ ] You can
sshinto the node - [ ] You decided on a host name for Rancher (we use the dummy
rancher.example.com) - [ ] A password manager for the passwords
Tested by DIY Lab Hub: not yet. The commands come from the official docs read on 5 December 2026; we did not run them on a real machine.
Tip: K3s v1.37 is newer, but cert-manager 1.21 lists Kubernetes 1.33 to 1.36 as supported. Rancher 2.16.0 lists 1.35, 1.36 and 1.37. The overlap is 1.36, so we pin K3s
v1.36.6+k3s1.
LLM Guide: let your AI assistant set it up#
Prefer to let an AI do the typing? Copy the block below into ChatGPT, Claude, Gemini or a local model. It first asks about your setup (Linux node, your computer, certificate, reverse proxy), then follows only the path that fits you. It uses the same pinned versions as this guide. You still read each command before you run it.
You are my assistant for installing Rancher v2.16.0 (a web interface for Kubernetes) on one K3s node with Helm and cert-manager.
Follow the DIY Lab Hub guide https://diylabhub.com/rancher/ (checked 5 December 2026).
Work one step at a time. Before each command, say in one line what it does. Wait for my OK before anything that deletes data, stops a service, changes a firewall or opens a port.
STEP 0 - FIND OUT MY SETUP. Ask me these questions (or have me run the read-only checks) before you do anything else:
1. Which Linux machine will be the K3s node (the server must be Linux, 64-bit x86_64 or ARM64, systemd)? Docs size it at 4 vCPU and 16 GB RAM with an SSD; with less, pods stay Pending. Check: uname -m, nproc, free -h, timedatectl | grep -i synchronized (the clock must say yes).
2. Which computer do I work from: Linux, Windows (PowerShell, OpenSSH, winget) or Mac (Terminal, Homebrew)? I only need a browser, kubectl, helm and SSH to the node.
3. Does the node have a fixed IP address, can I ssh into it, and do I use ufw or firewalld?
4. What host name for Rancher (example: rancher.example.com)? Is it a public name with DNS pointing at the node and port 80 open, or a home lab with a self-signed certificate? Choose it once: changing it later means re-registering clusters.
5. Do I want the real install (K3s + Helm, this guide) or only a one-evening test with the single Docker container? The docs say Docker installs are for testing only; it needs a Linux machine with ports 80 and 443 free, not the K3s node.
6. Do I already run my own Traefik (network proxy, entrypoint https, resolver le), or Caddy, or nothing?
THEN FOLLOW THE MATCHING PATH:
- Real install, lab: certificate source "rancher" (self-signed; the browser warns). K3s already ships Traefik on ports 80 and 443; Rancher's chart creates the Ingress for my host name, so no extra proxy is needed. Do not use --disable=traefik.
- Real install, public name: set ingress.tls.source to letsEncrypt with my e-mail, letsEncrypt.ingress.class: traefik and privateCA: true, and upload the Let's Encrypt root CA as the tls-ca secret (find the right root in Let's Encrypt's docs; do not guess). Then helm upgrade with the same -f file.
- I already have a certificate: ingress.tls.source: secret, then kubectl -n cattle-system create secret tls tls-rancher-ingress --cert=tls.crt --key=tls.key (server certificate first, intermediates after it).
- Docker test behind my own Traefik: use the compose file below (start Rancher with --no-cacerts).
- Docker test with Caddy: publish the container only on the loopback address (-p 127.0.0.1:8080:80, with --no-cacerts) and use this Caddyfile: rancher.example.com { reverse_proxy localhost:8080 }. Public domain = automatic Let's Encrypt (ports 80 and 443 reach Caddy). Home only = add "tls internal" inside the block and trust Caddy's root once (sudo caddy trust).
- Windows or Mac as the server: not supported; they are only for the browser and the tools.
THE INSTALL (keep these exact versions; dummy values below are placeholders to replace):
1. On the node: curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION='v1.36.6+k3s1' sh -s - server --cluster-init. With ufw: allow 6443/tcp, 80/tcp, 443/tcp and from 10.42.0.0/16 and 10.43.0.0/16. Check: sudo k3s kubectl get nodes shows one node Ready.
2. On my computer: kubectl, and Helm 3.22.1 (Helm 3, not 4; check the checksum). Copy /etc/rancher/k3s/k3s.yaml from the node into its own file ~/.kube/rancher-lab.yaml, chmod 600, replace https://127.0.0.1:6443 with https://<node-ip>:6443, export KUBECONFIG, delete the copy on the node. The kubeconfig is an admin key: never paste it here. Add "<node-ip> rancher.example.com" to my hosts file for a lab. Check: kubectl get nodes is Ready and helm version prints v3.22.1.
3. cert-manager: helm repo add jetstack https://charts.jetstack.io, then helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.21.3 --set crds.enabled=true, then wait with kubectl -n cert-manager rollout status for the three deployments (cert-manager, cert-manager-webhook, cert-manager-cainjector).
4. Rancher: save ~/docker_volumes/rancher/config/rancher-values.yaml (chmod 600, never in Git; I choose the bootstrap password myself):
hostname: rancher.example.com
replicas: 1
bootstrapPassword: change-me-bootstrap
ingress:
tls:
source: rancher
Then: helm repo add rancher-stable https://releases.rancher.com/server-charts/stable, helm repo update, kubectl create namespace cattle-system, helm install rancher rancher-stable/rancher --namespace cattle-system --version 2.16.0 -f ~/docker_volumes/rancher/config/rancher-values.yaml, kubectl -n cattle-system rollout status deploy/rancher
5. Open https://rancher.example.com, log in as admin with the bootstrap password, set my own password (12 or more characters), and enter the Server URL without a trailing slash.
THE DOCKER TEST FILE (only if I chose the test; ~/docker_volumes/rancher/compose.yaml; the "proxy" network must exist):
services:
rancher:
image: rancher/rancher:v2.16.0
container_name: rancher-test
restart: unless-stopped
privileged: true
command: --no-cacerts
volumes:
- ./data:/var/lib/rancher
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.rancher.rule=Host(`rancher.example.com`)
- traefik.http.routers.rancher.entrypoints=https
- traefik.http.routers.rancher.tls=true
- traefik.http.routers.rancher.tls.certresolver=le
- traefik.http.services.rancher.loadbalancer.server.port=80
networks:
proxy:
external: true
Remove the test before using the Helm route: docker rm -f rancher-test. It is --privileged: only on a throw-away machine.
CHECK IT WORKED:
- helm search repo rancher-stable/rancher --versions | head -3 lists 2.16.0 first. kubectl -n cattle-system get pods,ingress shows the rancher pod Running and an Ingress for my host name.
- curl -kI --resolve rancher.example.com:443:<node-ip> https://rancher.example.com prints an HTTP status line (Windows: curl.exe). After login I see Cluster Management with one cluster, local: leave it alone.
RULES FOR YOU:
- Use only these versions (K3s v1.36.6+k3s1, Helm 3.22.1, cert-manager v1.21.3, Rancher 2.16.0). No :latest, no --set installCRDs=true, no rancherImage override. If a step fails, show me the exact error and read https://ranchermanager.docs.rancher.com/v2.16/getting-started/installation-and-upgrade/install-upgrade-on-a-kubernetes-cluster before guessing.
- Open ports 80 and 443 only to my LAN, 6443 only to machines running kubectl, and never expose port 8472 to the internet. Back up before any helm upgrade.
- Values like rancher.example.com, 203.0.113.10, your-user and change-me-bootstrap are examples; ask me for mine.
- Never ask me to paste passwords, tokens, kubeconfig contents or keys into this chat.
Step 1: Install K3s on the Linux node#
K3s is a small Kubernetes in one binary. We pin a version the Rancher release notes list. --cluster-init is what the Rancher quick start uses: embedded etcd, which can grow to three nodes and has a snapshot tool.
Linux#
On the node itself:
sudo ufw allow 6443/tcp sudo ufw allow 80/tcp sudo ufw allow 443/tcp sudo ufw allow from 10.42.0.0/16 to any sudo ufw allow from 10.43.0.0/16 to any curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION='v1.36.6+k3s1' sh -s - server --cluster-init sudo k3s kubectl get nodes sudo k3s kubectl get pods -A
Skip the ufw lines if you do not use ufw. Port 6443 and the two ranges follow the K3s docs; ports 80 and 443 are our addition for the browser.
Windows (PowerShell)#
The node is Linux. Log in to it and run the Linux commands there. The IP is a dummy value; replace it.
$ServerIp = "203.0.113.10" ssh "your-user@$ServerIp"
Mac (Terminal)#
ssh [email protected]
Then run the Linux commands in that session.
Check it worked. get nodes lists one node as Ready, and get pods -A shows coredns, traefik, local-path-provisioner and metrics-server in the kube-system namespace moving to Running. K3s documents these as its packaged parts. We show no output because we did not run it.
Step 2: Put kubectl, Helm and the kubeconfig on your computer#
The kubeconfig is the file that tells kubectl and helm where the cluster is and how to log in. It is an admin key, so treat it like a password. The release notes ask for Helm 3.18 or newer and the pages assume Helm 3, so we use 3.22.1 and did not try Helm 4.
If you work on the node itself, K3s already ships kubectl; install only Helm.
Linux#
export SERVER_IP=203.0.113.10 export SERVER_USER=your-user curl -LO https://dl.k8s.io/release/v1.36.6/bin/linux/amd64/kubectl curl -LO https://dl.k8s.io/release/v1.36.6/bin/linux/amd64/kubectl.sha256 echo "$(cat kubectl.sha256) kubectl" | sha256sum --check sudo install -m 0755 kubectl /usr/local/bin/kubectl curl -LO https://get.helm.sh/helm-v3.22.1-linux-amd64.tar.gz curl -LO https://get.helm.sh/helm-v3.22.1-linux-amd64.tar.gz.sha256sum sha256sum --check helm-v3.22.1-linux-amd64.tar.gz.sha256sum tar -xzf helm-v3.22.1-linux-amd64.tar.gz sudo install -m 0755 linux-amd64/helm /usr/local/bin/helm
On ARM64 replace amd64 with arm64. Fetch the kubeconfig into its own file, so you keep any you already use:
ssh -t "$SERVER_USER@$SERVER_IP" 'sudo cp /etc/rancher/k3s/k3s.yaml ~/k3s.yaml && sudo chown "$USER" ~/k3s.yaml' mkdir -p ~/.kube scp "$SERVER_USER@$SERVER_IP:k3s.yaml" ~/.kube/rancher-lab.yaml ssh "$SERVER_USER@$SERVER_IP" 'rm ~/k3s.yaml' chmod 600 ~/.kube/rancher-lab.yaml sed -i "s#https://127.0.0.1:6443#https://$SERVER_IP:6443#" ~/.kube/rancher-lab.yaml export KUBECONFIG=~/.kube/rancher-lab.yaml echo "$SERVER_IP rancher.example.com" | sudo tee -a /etc/hosts
The last line tells your computer where the dummy name lives; real DNS would do this for you.
Windows (PowerShell)#
$ServerIp = "203.0.113.10" $ServerUser = "your-user" winget install --id Kubernetes.kubectl Invoke-WebRequest https://get.helm.sh/helm-v3.22.1-windows-amd64.zip -OutFile helm.zip Invoke-WebRequest https://get.helm.sh/helm-v3.22.1-windows-amd64.zip.sha256sum -OutFile helm.zip.sha256sum (Get-FileHash helm.zip -Algorithm SHA256).Hash Get-Content helm.zip.sha256sum Expand-Archive helm.zip -DestinationPath helm-3.22.1 $env:Path += ";$PWD\helm-3.22.1\windows-amd64"
The two hash lines must match (ignore case). Open a new window after winget so kubectl is found. Then the kubeconfig:
ssh -t "$ServerUser@$ServerIp" 'sudo cp /etc/rancher/k3s/k3s.yaml ~/k3s.yaml && sudo chown "$USER" ~/k3s.yaml'
New-Item -ItemType Directory -Force "$HOME\.kube" | Out-Null
scp "${ServerUser}@${ServerIp}:k3s.yaml" "$HOME\.kube\rancher-lab.yaml"
ssh "$ServerUser@$ServerIp" 'rm ~/k3s.yaml'
(Get-Content "$HOME\.kube\rancher-lab.yaml") -replace 'https://127.0.0.1:6443', "https://${ServerIp}:6443" | Set-Content -Encoding ascii "$HOME\.kube\rancher-lab.yaml"
$env:KUBECONFIG = "$HOME\.kube\rancher-lab.yaml"
As Administrator, add the dummy name to the hosts file:
Add-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Value "$ServerIp rancher.example.com"
Mac (Terminal)#
export SERVER_IP=203.0.113.10 export SERVER_USER=your-user brew install kubectl brew install helm@3 export PATH="$(brew --prefix helm@3)/bin:$PATH" ssh -t "$SERVER_USER@$SERVER_IP" 'sudo cp /etc/rancher/k3s/k3s.yaml ~/k3s.yaml && sudo chown "$USER" ~/k3s.yaml' mkdir -p ~/.kube scp "$SERVER_USER@$SERVER_IP:k3s.yaml" ~/.kube/rancher-lab.yaml ssh "$SERVER_USER@$SERVER_IP" 'rm ~/k3s.yaml' chmod 600 ~/.kube/rancher-lab.yaml sed -i '' "s#https://127.0.0.1:6443#https://$SERVER_IP:6443#" ~/.kube/rancher-lab.yaml export KUBECONFIG=~/.kube/rancher-lab.yaml echo "$SERVER_IP rancher.example.com" | sudo tee -a /etc/hosts
helm@3 is a "keg-only" Homebrew package, which is why the PATH line is needed.
Check it worked. kubectl get nodes shows your node as Ready, and helm version prints v3.22.1. A connection refused to localhost:8080 means KUBECONFIG is not set in this window (see Common mistakes).
Tip:
KUBECONFIGonly lasts for one terminal window. Ifkubectlsuddenly cannot find the cluster, you opened a new window; set it again.
Step 3: Install cert-manager#
cert-manager creates and renews certificates inside Kubernetes. Rancher needs it for the self-signed and Let's Encrypt options. crds.enabled=true installs its extra resource types, as the Rancher docs show. We pin chart v1.21.3, current on cert-manager's docs page.
Linux#
helm repo add jetstack https://charts.jetstack.io helm repo update helm install cert-manager jetstack/cert-manager \ --namespace cert-manager \ --create-namespace \ --version v1.21.3 \ --set crds.enabled=true kubectl -n cert-manager rollout status deploy/cert-manager kubectl -n cert-manager rollout status deploy/cert-manager-webhook kubectl -n cert-manager rollout status deploy/cert-manager-cainjector
Windows (PowerShell)#
helm repo add jetstack https://charts.jetstack.io helm repo update helm install cert-manager jetstack/cert-manager ` --namespace cert-manager ` --create-namespace ` --version v1.21.3 ` --set crds.enabled=true kubectl -n cert-manager rollout status deploy/cert-manager kubectl -n cert-manager rollout status deploy/cert-manager-webhook kubectl -n cert-manager rollout status deploy/cert-manager-cainjector
Mac (Terminal)#
Same commands as Linux.
Check it worked. kubectl get pods --namespace cert-manager lists three pods (cert-manager, cert-manager-cainjector, cert-manager-webhook), each 1/1 Running. That is the shape the Rancher docs show.
Step 4: Install Rancher with Helm#
We keep our settings in one file, because the docs say to save them for every upgrade. The chart default is three replicas, so a one-node lab sets replicas: 1 (as the official quick start does). The bootstrap password is for the first login only.
Linux#
mkdir -p ~/docker_volumes/rancher/{data,config,logs,backups}
cat > ~/docker_volumes/rancher/config/rancher-values.yaml << 'EOF'
hostname: rancher.example.com
replicas: 1
bootstrapPassword: change-me-bootstrap
ingress:
tls:
source: rancher
EOF
chmod 600 ~/docker_volumes/rancher/config/rancher-values.yaml
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
helm repo update
helm search repo rancher-stable/rancher --versions | head -3
kubectl create namespace cattle-system
helm install rancher rancher-stable/rancher \
--namespace cattle-system \
--version 2.16.0 \
-f ~/docker_volumes/rancher/config/rancher-values.yaml
kubectl -n cattle-system rollout status deploy/rancher
Windows (PowerShell)#
$base = "$HOME\docker_volumes\rancher"
foreach ($d in "data","config","logs","backups") { New-Item -ItemType Directory -Force "$base\$d" | Out-Null }
@'
hostname: rancher.example.com
replicas: 1
bootstrapPassword: change-me-bootstrap
ingress:
tls:
source: rancher
'@ | Set-Content -Encoding ascii "$base\config\rancher-values.yaml"
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
helm repo update
helm search repo rancher-stable/rancher --versions | Select-Object -First 3
kubectl create namespace cattle-system
helm install rancher rancher-stable/rancher `
--namespace cattle-system `
--version 2.16.0 `
-f "$base\config\rancher-values.yaml"
kubectl -n cattle-system rollout status deploy/rancher
Mac (Terminal)#
Same commands as Linux.
The first start pulls several images and can take minutes. The docs show it ending with deployment "rancher" successfully rolled out.
Check it worked. The search line lists 2.16.0 first, and kubectl -n cattle-system get pods,ingress shows the rancher pod Running and an Ingress for rancher.example.com. If the wait ends with error: deployment "rancher" exceeded its progress deadline, see Troubleshooting.
Step 5: Log in and set your password#
- Open
https://rancher.example.com(your own name). The certificate is self-signed, so the browser warns; accept it for this lab. - Log in as
adminwith the bootstrap password. If you did not set one, read the generated one.
Linux#
kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{ .data.bootstrapPassword|base64decode}}{{ "\n" }}'
Windows (PowerShell)#
$b64 = kubectl -n cattle-system get secret bootstrap-secret -o jsonpath='{.data.bootstrapPassword}'
[Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($b64))
Mac (Terminal)#
Same commands as Linux.
- Choose your own password. The docs require at least 12 characters.
- On the "Server URL" screen enter
https://rancher.example.comwithout a slash at the end.
Check it worked. You land on the Cluster Management page with one cluster, local. That is the cluster Rancher itself runs on. Leave it alone and do not delete it.
Step 6: Import a second cluster (optional)#
Registering a cluster needs cluster-admin rights on it. Rancher shows you one command to run there.
- Menu, then Cluster Management, then Import Existing, then the cluster type (Generic for a K3s cluster). Give it a name and press Create.
- Rancher shows a
kubectl applycommand. Run it wherekubectlpoints at the other cluster.
Linux#
kubectl config current-context kubectl get nodes
Windows (PowerShell)#
kubectl config current-context kubectl get nodes
Mac (Terminal)#
Same commands as Linux.
Check the context first: running the command on the Rancher cluster itself is the classic slip. If the page also shows a curl command, use it when you see certificate signed by unknown authority (self-signed Rancher).
Check it worked. The cluster goes from Pending to Active. The agent pods in the other cluster must be able to resolve your Rancher host name. A name that exists only in your computer's hosts file will not work for them; use real DNS or the docs' trick of <IP-of-the-node>.sslip.io as the host name.
Tip: Pick the Rancher host name once, before you import anything. Changing it later means re-registering your clusters (our reading; the docs say the server URL cannot move when migrating a backup).
Step 7: Test only: the one-container Docker version#
The docs say Docker installs "are not supported in production environments". It runs a whole Kubernetes inside one privileged container. Use it for an evening, on a Linux machine with ports 80 and 443 free (not the K3s node). We pin the image, never latest.
Linux#
mkdir -p ~/docker_volumes/rancher/data docker run -d --restart=unless-stopped --name rancher-test --privileged \ -p 80:80 -p 443:443 \ -v ~/docker_volumes/rancher/data:/var/lib/rancher \ rancher/rancher:v2.16.0 docker logs rancher-test 2>&1 | grep "Bootstrap Password:"
The bind mount keeps the data (/var/lib/rancher is the persistent path in the docs).
Windows (PowerShell)#
The docs ask for a Linux host. We did not test Docker Desktop for this, so we give no commands. Run the Linux commands on a Linux VM and open its address in your browser.
Mac (Terminal)#
Same as Windows: use a Linux machine.
Check it worked. docker ps shows rancher-test running and the login page opens on the machine's address after a few minutes. Remove it before you use the Helm route: docker rm -f rancher-test.
Put it behind HTTPS (with or without Traefik)#
Rancher always uses HTTPS; in the Helm route you only choose where the certificate comes from. The Compose and Caddy parts below belong to the Step 7 test container; skip them on K3s.
With Traefik#
K3s route. K3s starts Traefik on its own and it listens on ports 80 and 443 of the node. Rancher's chart creates an Ingress for your host name, and Traefik serves it. The chart sets no ingressClassName, so the Ingress uses the cluster default, which is Traefik. You pick the certificate with ingress.tls.source:
| Source | Needs cert-manager | Use it when |
|---|---|---|
rancher (default) | yes | A lab. Rancher makes its own CA and certificate; browsers warn |
letsEncrypt | yes | A public name, DNS pointing at the node, port 80 open (HTTP-01 check) |
secret | no | You already have a certificate (public or private CA) |
Let's Encrypt in rancher-values.yaml (dummy e-mail; replace it):
hostname: rancher.example.com
replicas: 1
ingress:
tls:
source: letsEncrypt
letsEncrypt:
email: [email protected]
ingress:
class: traefik
privateCA: true
New installs use strict agent TLS. The docs then require privateCA: true and the Let's Encrypt root CA uploaded as the tls-ca secret, or Rancher may fail to connect clusters. Find the right root in Let's Encrypt's docs; do not guess. Apply with helm upgrade and the same -f file.
Your own certificate: put the server certificate first and the intermediates after it in tls.crt, the key in tls.key, set source: secret, then:
kubectl -n cattle-system create secret tls tls-rancher-ingress --cert=tls.crt --key=tls.key
The same command works in PowerShell. The hostname must match the certificate's name.
Docker test behind our own Traefik. If you run Traefik from our Traefik guide (network proxy, entrypoint https, resolver le), the Rancher docs describe a Docker install that lets a proxy handle TLS: start Rancher with --no-cacerts, pass X-Forwarded-Proto: https and support WebSockets. We believe Traefik sets that header itself; we did not test it. Save as compose.yaml in ~/docker_volumes/rancher:
services:
rancher:
image: rancher/rancher:v2.16.0
container_name: rancher-test
restart: unless-stopped
privileged: true
command: --no-cacerts
volumes:
- ./data:/var/lib/rancher
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.rancher.rule=Host(`rancher.example.com`)
- traefik.http.routers.rancher.entrypoints=https
- traefik.http.routers.rancher.tls=true
- traefik.http.routers.rancher.tls.certresolver=le
- traefik.http.services.rancher.loadbalancer.server.port=80
networks:
proxy:
external: true
Without Traefik: Caddy#
For the Docker test you can use Caddy (see our Caddy guide). Publish the container only on the loopback address, with -p 127.0.0.1:8080:80 and --no-cacerts, and write this Caddyfile:
rancher.example.com {
reverse_proxy localhost:8080
}
Caddy gets a Let's Encrypt certificate for a public domain when ports 80 and 443 reach it. At home, with no public domain, add tls internal inside the block for Caddy's own local certificate, and trust its root once: sudo caddy trust (Linux, Mac) or caddy trust in an Administrator PowerShell (Windows). Check with curl -I https://rancher.example.com.
On K3s we keep Traefik. Another ingress controller must be told to watch Ingresses without a class, because the chart sets none (docs). The chart can also leave TLS to an outside load balancer; that has extra rules and we did not test it.
Security and testing#
| Control | How |
|---|---|
| Kubeconfig | It is cluster admin. chmod 600, never in Git, delete the copy on the node |
| Ports | Open 80 and 443 only to your LAN. Port 6443 only to machines that run kubectl. The VXLAN port 8472 must never face the internet (K3s docs) |
| Docker test | --privileged gives the container wide power. Only on a throw-away machine |
| Secrets | The values file holds the bootstrap password: chmod 600, out of Git |
Quick tests:
kubectl get nodes kubectl -n cattle-system get pods,ingress kubectl -n cattle-system rollout status deploy/rancher curl -kI --resolve rancher.example.com:443:203.0.113.10 https://rancher.example.com
On Windows use curl.exe and $ServerIp. The last line prints an HTTP status line.
Common mistakes#
| Mistake | Why it happens | Do this instead |
|---|---|---|
Importing a cluster fails with Strict CA verification is enabled but encountered error finding root CA (issue 46798) | Rancher used its own Let's Encrypt option on K3s, and strict agent TLS wants the CA | With letsEncrypt, set privateCA: true and upload the root as tls-ca (docs) |
A trailing slash in the Server URL: Failed to dial steve aggregation server: websocket: bad handshake (issue 36187) | The agent builds https://host//v3/connect, which redirects | Use https://rancher.example.com, no slash |
Agent log: ERROR: https://<host>/ping is not accessible (Could not resolve host: <host>) (issue 16454, 41105) | The name works in your browser but the cluster's DNS cannot find it. A hosts-file entry on your computer is invisible to pods (our reading) | Use real DNS or <IP>.sslip.io for any cluster other than a test |
kubectl says dial tcp [::1]:8080: connect: connection refused (issue 49996) | No kubeconfig was found, so kubectl falls back to localhost | export KUBECONFIG=..., then kubectl config current-context |
Old cert-manager files: no matches for kind "Issuer" in version "certmanager.k8s.io/v1alpha1" (issue 26674) | A 2020 report: an old cert-manager API next to a newer chart | Install the pinned chart v1.21.3 with crds.enabled=true; never apply old CRD files |
Custom certificate with a broken chain: Certificate chain is not complete (issue 24798) | tls.crt lacked the intermediates, or they were in the wrong order | Server certificate first, intermediates after (docs) |
Leaving replicas at the default 3 on one node | The chart default is 3, made for three nodes | Set replicas: 1 for a lab |
| Running the Docker one-liner as the real install, or replacing the container and expecting the data (issue 54906) | The docs say Docker installs are for testing; a new container is a fresh install unless the data is mounted | Use K3s and Helm, or mount /var/lib/rancher. The issue (open, not reproduced by the team) reports a 15-minute hang after such an upgrade |
| Jumping from an old minor to 2.16 | It feels like one helm upgrade | The only tested path is latest patch of your minor, then latest patch of the next minor, with a backup first |
AI assistants: docker run ... rancher/rancher:latest as "the production install" | The README quick start is copied without the docs' warning | Helm on K3s for anything that stays. In Docker, pin v2.16.0 |
AI assistants: --set installCRDs=true for cert-manager, kubectl apply of old CRD files, or --no-deploy traefik for K3s | Old tutorials. cert-manager's chart marks installCRDs deprecated; K3s uses --disable=traefik | --set crds.enabled=true; --disable=traefik only if you really want another ingress |
AI assistants: copying an old rancherImage override into the Helm install | Before 2.16 the chart used rancher/rancher; now it uses rancher/rancher-server and rancherImage is deprecated | Leave the image alone; the chart picks it |
Tip: Before every
helm upgrade, runhelm get values rancher -n cattle-system -o yaml > rancher-values.yamland read it. Upgrades only keep the settings you pass again.
Tip: If a Rancher page loads but shows
Unavailablefor a cluster, read the agent log in that cluster before you change anything in Rancher:kubectl -n cattle-system logs deploy/cattle-cluster-agent.
Troubleshooting#
| Problem | Solution |
|---|---|
Rancher pods Pending or restarting | kubectl -n cattle-system describe pod <pod> and kubectl top nodes. Usually too little memory (see Performance) |
| Browser cannot open the page | Is the hosts entry there? curl -kI --resolve ... from Security and testing. Are ports 80 and 443 open on the node? |
Plain 404 page not found from Traefik | The host in your browser differs from hostname: in the values file. Compare with kubectl -n cattle-system get ingress |
Certificate stays False | kubectl -n cattle-system get certificate,issuer and kubectl -n cert-manager logs deploy/cert-manager |
| Lost the bootstrap password | Step 5 shows how to read it from the bootstrap-secret |
| Helm says it cannot reach the cluster | echo $KUBECONFIG (Windows: $env:KUBECONFIG), then kubectl get nodes |
Exact error texts#
error: deployment "rancher" exceeded its progress deadline(Rancher docs): runkubectl -n cattle-system get deploy rancher.DESIREDandAVAILABLEmust match.database or disk is full (13)in a Rancher pod log (Rancher docs): Rancher 2.16 always keeps a SQLite cache on the node's disk, about twice the size of the objects it shows. Free disk space.Response status: 400 - 400 Bad Request. Response body: cluster not found: see Known bugs below.
Known bugs (December 2026)#
The v2.16.0 release notes list that an imported cluster cannot reconnect when its registration token was rotated while it was disconnected and the grace period ran out (issue 57078, open). Workaround from the notes: re-run the registration command from the cluster's Registration tab, or raise crt-default-grace-period-minutes. The notes also list leftover rke2-machineconfig-cleanup objects after upgrading from 2.13 (issue 58290); a fix is requested for v2.16.1. We found nothing that stops a fresh single-node install.
Updates and backups#
Update. Read the release notes and take a backup (below). Then export your values and upgrade:
helm get values rancher -n cattle-system -o yaml > rancher-values.yaml helm repo update helm search repo rancher-stable/rancher --versions | head helm upgrade rancher rancher-stable/rancher --namespace cattle-system --version <next-version> -f rancher-values.yaml
On Windows use the same commands; replace head with Select-Object -First 5. Rolling back means restoring a backup made on the older version; helm rollback alone is not enough (release notes). Kubernetes itself is a separate update: do not skip a Kubernetes minor version.
What to back up. Three things:
- Rancher's own settings: the Rancher Backups app. In Rancher open the
localcluster, Explore, Apps, Charts, Rancher Backups, Install, and pick where backups go (a volume or S3-compatible storage). Then Rancher Backups, Backups, Create. The docs' YAML example for a recurring encrypted S3 backup, with dummy values:
apiVersion: resources.cattle.io/v1
kind: Backup
metadata:
name: s3-recurring-backup
spec:
storageLocation:
s3:
credentialSecretName: s3-creds
credentialSecretNamespace: default
bucketName: rancher-backups
folder: rancher
endpoint: s3.example.com
resourceSetName: rancher-resource-set-full
encryptionConfigSecretName: encryptionconfig
schedule: "@every 24h"
retentionCount: 10
Keep the encryption file yourself: the operator does not save it. Our Garage guide describes S3-compatible storage; we did not test it with this operator. This backup covers Rancher, not the data of apps in your clusters.
- The K3s datastore. Embedded etcd takes snapshots at 00:00 and 12:00 (five kept). You also need the
server/tokenfile: without it a snapshot is unusable. - Your values file and kubeconfig.
Linux#
Save as /usr/local/sbin/rancher-backup.sh on the node:
#!/usr/bin/env bash set -euo pipefail out=/var/backups/rancher-k3s mkdir -p "$out" k3s etcd-snapshot save --name rancher-nightly tar -czf "$out/k3s-$(date +%F).tar.gz" -C /var/lib/rancher/k3s/server token db/snapshots chmod 600 "$out/k3s-$(date +%F).tar.gz" find "$out" -name 'k3s-*.tar.gz' -mtime +14 -delete
Run sudo chmod 700 on it, then add this line with sudo crontab -e:
0 3 * * * /usr/local/sbin/rancher-backup.sh
Copy the archives off the node (NAS, second disk): a backup on the same disk dies with it.
Windows (PowerShell)#
The script runs on the Linux node. From your computer, pull a copy, once you have copied the archive into your user's home folder on the node with sudo:
scp "${ServerUser}@${ServerIp}:k3s-2026-12-05.tar.gz" "$HOME\docker_volumes\rancher\backups\"
Mac (Terminal)#
scp "$SERVER_USER@$SERVER_IP:k3s-2026-12-05.tar.gz" ~/docker_volumes/rancher/backups/
Restore test. On a spare machine, install the same K3s version, stop it with k3s-killall.sh, copy the archive over, unpack it, then run, as the K3s docs show:
sudo k3s server --cluster-reset \ --cluster-reset-restore-path=<path-to-snapshot> \ --token=<token-from-the-backup>
It should print Managed etcd cluster membership has been reset, restart without --cluster-reset flag now. Then start the service and check kubectl get pods -A. We did not run a restore.
Performance and resources#
We measured nothing. The docs give 4 vCPU and 16 GB for a Rancher node, three nodes for production, SSDs and spare disk for the SQLite cache. K3s itself needs 2 cores and 2 GB before any workload, and says SD cards and eMMC cannot handle etcd's writes.
To see what it uses on your node, K3s ships metrics-server:
kubectl top nodes kubectl top pods -A free -h
The knob we set is replicas: 1; the chart also has resources. Ephemeral-storage limits count against the SQLite cache.
FAQ#
Do I need Docker? No. K3s has its own container runtime. Docker only appears in the test in Step 7.
Can the server run on Windows or Mac? The docs say Rancher runs exclusively on Linux. Windows and Mac are for the browser and the command-line tools.
Is a Raspberry Pi enough? The images are built for arm64, but the docs' sizing is far above a Pi's memory, and we did not test it.
Rancher or a Docker tool like Dockge or Dokploy? Those manage Docker. Rancher manages Kubernetes. If your apps are Compose files, start with those and read Kompose when you want to move.
Sources#
All pages read on 5 December 2026.
- Rancher: release v2.16.0 (30 November 2026), repository and licence
- Rancher docs v2.16: install on Kubernetes, requirements, Helm quick start, bootstrap password, TLS secrets, Helm versions, upgrades, back up Rancher, register clusters, Docker install, Docker with a layer-7 load balancer, Docker advanced options, UI server-side pagination
- Helm chart
rancher-2.16.0from the stable repository (values file read) - K3s: quick start, requirements, cluster access, networking and Traefik, packaged components, backup and restore, etcd-snapshot, release v1.36.6+k3s1
- cert-manager: supported releases and Helm install; Helm: version skew and release v3.22.1
- Issues read: 16454, 24798, 26674, 36187, 41105, 46798, 49996, 54906, 57078
- Docker Hub: image
rancher/rancher:v2.16.0(tag checked, amd64 and arm64)
Checked against the official docs on 2026-12-05. Nothing was run on a real machine by DIY Lab Hub; the commands come from the docs, the sources and the issues above.