BlueXIII's Blog

热爱技术,持续学习

0%

Rancher离线部署

参考

Helm方式部署

cert-manager安装

镜像清单:

1
2
3
4
5
quay.io/jetstack/cert-manager-acmesolver:v1.11.0
quay.io/jetstack/cert-manager-cainjector:v1.11.0
quay.io/jetstack/cert-manager-controller:v1.11.0
quay.io/jetstack/cert-manager-ctl:v1.11.0
quay.io/jetstack/cert-manager-webhook:v1.11.0

安装:

1
2
3
4
5
6
7
8
# 安装crd
wget https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.crds.yaml
kubectl apply -f cert-manager.crds.yaml

# 安装chart
helm repo add jetstack https://charts.jetstack.io
helm pull jetstack/cert-manager --version=v1.11.0
helm install cert-manager ./cert-manager --namespace cert-manager

rancher安装

镜像清单:

1
2
3
4
5
6
rancher/rancher:v2.7.3
rancher/shell:v0.1.19
rancher/gitjob:v0.1.37
rancher/rancher-webhook:v0.3.3
rancher/fleet:v0.6.0
rancher/fleet-agent:v0.6.0

安装:

1
2
3
4
5
6
7
8
9
10
11
12
# helm安装
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
helm search repo rancher-stable/rancher --versions # 2.7.3
helm pull rancher-stable/rancher --version=2.7.3
helm install rancher ./rancher \
--namespace cattle-system \
--set hostname=rancher.dubhe \
--set bootstrapPassword=admin

# 查看初始密码
echo https://rancher.dubhe/dashboard/?setup=$(kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}')
kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}{{ "\n" }}'