45 lines
1.3 KiB
Markdown
Raw Normal View History

2023-10-18 09:18:46 +01:00
# Install helm
```
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
```
# Add Rancher Helm Repository
```
2023-11-12 20:25:48 +00:00
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
2023-10-18 09:18:46 +01:00
kubectl create namespace cattle-system
```
# Install Cert-Manager
```
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.crds.yaml
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
2023-11-20 13:40:06 +00:00
--version v1.13.2
2023-10-18 09:18:46 +01:00
kubectl get pods --namespace cert-manager
```
# Install Rancher
```
2023-11-12 20:25:48 +00:00
helm install rancher rancher-latest/rancher \
2023-10-18 09:18:46 +01:00
--namespace cattle-system \
--set hostname=rancher.my.org \
--set bootstrapPassword=admin
kubectl -n cattle-system rollout status deploy/rancher
kubectl -n cattle-system get deploy rancher
```
# Expose Rancher via Loadbalancer
```
kubectl get svc -n cattle-system
kubectl expose deployment rancher --name=rancher-lb --port=443 --type=LoadBalancer -n cattle-system
kubectl get svc -n cattle-system
```
# Go to Rancher GUI
Hit the url… and create your account
Be patient as it downloads and configures a number of pods in the background to support the UI (can be 5-10mins)