45 lines
1.3 KiB
Markdown
45 lines
1.3 KiB
Markdown
# 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
|
|
```
|
|
helm repo add rancher-alpha https://releases.rancher.com/server-charts/alpha
|
|
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 \
|
|
--version v1.11.0
|
|
kubectl get pods --namespace cert-manager
|
|
```
|
|
|
|
# Install Rancher
|
|
```
|
|
helm install rancher rancher-alpha/rancher --devel \
|
|
--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)
|