How To Install Rancher Onto a Kubernetes Cluster

Step 1: Add Rancher Repo into Helm

Source: https://

# Add Rancher repo
helm repo add rancher-stable https://

# Create a namespace for Rancher
kubectl create namespace cattle-system

Step 2: Install CertManager

# Install the CustomResourceDefinition resources separately
kubectl apply --validate=false -f

# Create the namespace for cert-manager
kubectl create namespace cert-manager

# Add the Jetstack Helm repository
helm repo add jetstack

# Update your local Helm chart repository cache
helm repo update

# Install the cert-manager Helm chart
helm install \
  cert-manager jetstack/cert-manager \
  --namespace cert-manager \
  --version v1.0.4

Step 3: Install Rancher
helm install rancher rancher-stable/rancher \
  --namespace cattle-system \
  --set hostname=$hostname

# Ran into this problem
Error: chart requires kubeVersion: < 1.20.0-0 which is incompatible with Kubernetes v1.20.2

# Workaround: Install K3s instead of K8s
curl -sfL | sh -
# OR
curl | INSTALL_K3S_VERSION=v1.19.7+k3s1 sh - # Install a specific version

Leave a Reply

Your email address will not be published. Required fields are marked *