In order to install Rancher in your cluster, Your cluster needs to have the following:
- Storage Configured (e.g. using NFS Storage Provisioner)
- Ingress Controller (e.g. using Nginx or Traefik)
- Cert-Manager (see Setup Cert Manager)
- Setup Helm
- Install Rancher
Just download the binary for your OS and add it to your system Path variable https://github.com/helm/helm/releases
The full instruction for installing Helm is available here https://v3.helm.sh/docs/intro/install/
Add the Racncher Helm Chart Repository
# Add Chart
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
Create the rancher namespace
kubectl create namespace rancher
You can install rancher in one of two ways
- Using LetsEncrypt to generate SSL Certificates
- Using your own SSL Certificate
# Install Rancher using LetsEncrypt
helm install rancher rancher-latest/rancher --namespace rancher --set hostname=rancher.hostname.com --set ingress.tls.source=letsEncrypt --set [email protected]
# Install Rancher using Your Own Certs
# Make sure the tls Cert is configured in rancher namespace
kubectl create secret tls tls-rancher-ingress --cert=tls-dev-io.crt --key=tls-dev-io.key --namespace rancher
# Install using the Certs
helm install rancher rancher-latest/rancher --namespace rancher --set hostname=rancher.hostname.com --set ingress.tls.source=tls-rancher-ingress