mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 23:40:19 +00:00
Create readme.md
This commit is contained in:
parent
c062ecc36a
commit
f277490e85
1 changed files with 45 additions and 0 deletions
45
Kubernetes/Rancher-Deployment/readme.md
Normal file
45
Kubernetes/Rancher-Deployment/readme.md
Normal file
|
@ -0,0 +1,45 @@
|
|||
# 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
|
||||
cert-manager
|
||||
```
|
||||
|
||||
# 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)
|
Loading…
Reference in a new issue