k3s部署rancher
2024-11-11 参考
- https://ranchermanager.docs.rancher.com/getting-started/installation-and-upgrade/install-upgrade-on-a-kubernetes-cluster
- https://artifacthub.io/packages/helm/rancher-stable/rancher
安装cert-manager
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.16.1/cert-manager.crds.yaml
helm repo add jetstack https://charts.jetstack.io
helm repo update
# kubectl create namespace cert-manager
# helm install cert-manager --namespace cert-manager --version v1.16.1 jetstack/cert-manager
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
# --set crds.enabled=true
安装rancher
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
kubectl create namespace cattle-system
helm install rancher rancher-latest/rancher \
--namespace cattle-system \
--set hostname=rancher.my.org \
--set bootstrapPassword=admin
检查安装完成
kubectl -n cattle-system rollout status deploy/rancher
默认部署3台 可以通过参数更改
helm upgrade rancher rancher-latest/rancher \
--namespace cattle-system \
--set hostname=<IP_OF_LINUX_NODE>.sslip.io \
--set replicas=1 \
--set bootstrapPassword=<PASSWORD_FOR_RANCHER_ADMIN>
https://helm.sh/docs/intro/install/ https://artifacthub.io/packages/helm/rancher-stable/rancher https://artifacthub.io/packages/helm/cert-manager/cert-manager https://ranchermanager.docs.rancher.com/getting-started/quick-start-guides/deploy-rancher-manager/helm-cli https://cert-manager.io/docs/installation/helm/ https://docs.rancherdesktop.io/how-to-guides/rancher-on-rancher-desktop/