简介
软件版本
xxxxxxxxxx python modify_xml.py build.xmlbash | 版本 |
---|---|
k8s | v1.21.14 |
helm | v3.9.4 |
cert-manager | v1.11.0 |
rancher | v2.6.6 |
安装helm
helm版本对应K8S版本
Helm 版本 | 支持的 Kubernetes 版本 |
---|---|
3.12.x | 1.27.x - 1.24.x |
3.11.x | 1.26.x - 1.23.x |
3.10.x | 1.25.x - 1.22.x |
3.9.x | 1.24.x - 1.21.x |
3.8.x | 1.23.x - 1.20.x |
3.7.x | 1.22.x - 1.19.x |
3.6.x | 1.21.x - 1.18.x |
下载helm安装
wget https://get.helm.sh/helm-v3.9.4-linux-amd64.tar.gz |
安装rancher
配置rancher helm仓库
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest |
创建namespace
kubectl create namespace cattle-system |
创建cert-manager的crds
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.crds.yaml |
添加helm仓库
helm repo add jetstack https://charts.jetstack.io |
更新helm仓库
helm repo update |
安装cert-manager,安装完成之后检查cert-manager pod是否正常
helm install cert-manager jetstack/cert-manager \ |
安装rancher
helm install rancher rancher-latest/rancher \ |
查看rancher是否部署成功
kubectl -n cattle-system rollout status deploy/rancher |
查看rancher pod在哪个节点,添加对应节点ip地址
192.168.234.130 rancher.acaiblog.top |
访问rancher设置密码必须为12个字符串