rancher 2.6.2 无法获取到安装密码

安装文档:https://docs.rancher.cn/docs/rancher2.5/installation/install-rancher-on-k8s/_index
安装过程: A (主机 k3s),在A(k3s)安装rancher 2.6.2(默认的stable),安装完后查看已经安装成功,但是无法获取到登陆密码。
/uploads/question/20211025/c30c65116029a68910b0a4c3bedcd0c0.png

已邀请:

hailong

赞同来自: mustang2247

2.6的安装应该参考2.6的高可用安装文档,目前(2021-10-25)只有英文文档:https://rancher.com/docs/rancher/v2.6/en/

hailong

赞同来自: mustang2247

或者尝试重置密码:


kubectl -n cattle-system exec $(kubectl -n cattle-system get pods -l app=rancher | grep '1/1' | head -1 | awk '{ print $1 }') -- reset-password

安装命令:
helm install rancher rancher-stable/rancher \
—namespace cattle-system \
—set hostname=rancher.k8slbs.io \
—set replicas=1 \
—set ingress.tls.source=secret

按照新文档安装后报错:
参考文档:https://rancher.com/docs/rancher/v2.6/en/installation/install-rancher-on-k8s/#1-add-the-helm-chart-repository


2021/10/25 07:04:14 [ERROR] Failed to handling tunnel request from 10.42.0.75https://www.webpagefx.com/tools/emoji-cheat-sheet/graphics/emojis/44024.png response 400: cluster not found
2021/10/25 07:04:14 [ERROR] Failed to handling tunnel request from 10.42.0.74https://www.webpagefx.com/tools/emoji-cheat-sheet/graphics/emojis/35386.png response 400: cluster not found

部署命令

helm install rancher rancher-stable/rancher \
—namespace cattle-system \
—set replicas=1 \
—set hostname=rancher.k8slbs.io \
—set bootstrapPassword=xxx \
—set ingress.tls.source=secret

错误log

2021/10/25 07:26:11 [ERROR] error syncing ‘orders.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:11 [ERROR] error syncing ‘certificaterequests.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:11 [ERROR] error syncing ‘challenges.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:11 [ERROR] error syncing ‘clusterissuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:11 [ERROR] error syncing ‘issuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:11 [ERROR] error syncing ‘certificates.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:41 [ERROR] error syncing ‘challenges.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:41 [ERROR] error syncing ‘orders.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:41 [ERROR] error syncing ‘certificaterequests.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:41 [ERROR] error syncing ‘clusterissuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:41 [ERROR] error syncing ‘issuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:26:41 [ERROR] error syncing ‘certificates.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:27:11 [ERROR] error syncing ‘orders.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/25 07:27:11 [ERROR] error syncing ‘issuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing

安装文档

https://rancher.com/docs/rancher/v2.6/en/installation/install-rancher-on-k8s/#1-add-the-helm-chart-repository


生成证书

https://docs.rancher.cn/docs/rancher2/installation/resources/advanced/self-signed-ssl/_index/#4-如何生成自签名证书


安装命令

kubectl create namespace cattle-system


helm install rancher rancher-stable/rancher \
—namespace cattle-system \
—set replicas=1 \
—set hostname=rancher.xxx.io \
—set bootstrapPassword=xxx \
—set ingress.tls.source=secret

安装证书

kubectl -n cattle-system create secret tls tls-rancher-ingress \
—cert=tls.crt \
—key=tls.key

安装结果

报错

2021/10/26 03:06:10 [ERROR] error syncing ‘certificates.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:06:11 [ERROR] error syncing ‘orders.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:06:11 [ERROR] error syncing ‘certificaterequests.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:06:11 [ERROR] error syncing ‘clusterissuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:06:11 [ERROR] error syncing ‘challenges.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:08:11 [ERROR] error syncing ‘issuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:08:11 [ERROR] error syncing ‘certificates.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:08:11 [ERROR] error syncing ‘orders.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:08:11 [ERROR] error syncing ‘certificaterequests.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:08:11 [ERROR] error syncing ‘clusterissuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:08:11 [ERROR] error syncing ‘challenges.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:10:11 [ERROR] error syncing ‘certificates.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:10:11 [ERROR] error syncing ‘issuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:10:11 [ERROR] error syncing ‘orders.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:10:11 [ERROR] error syncing ‘certificaterequests.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:10:11 [ERROR] error syncing ‘clusterissuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:10:11 [ERROR] error syncing ‘challenges.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:12:11 [ERROR] error syncing ‘issuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:12:11 [ERROR] error syncing ‘certificates.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:12:11 [ERROR] error syncing ‘orders.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:12:11 [ERROR] error syncing ‘clusterissuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:12:11 [ERROR] error syncing ‘certificaterequests.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:12:11 [ERROR] error syncing ‘challenges.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:14:11 [ERROR] error syncing ‘issuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:14:11 [ERROR] error syncing ‘certificates.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:14:11 [ERROR] error syncing ‘orders.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:14:11 [ERROR] error syncing ‘clusterissuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:14:11 [ERROR] error syncing ‘certificaterequests.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:14:11 [ERROR] error syncing ‘challenges.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:16:11 [ERROR] error syncing ‘issuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:16:11 [ERROR] error syncing ‘certificates.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:16:11 [ERROR] error syncing ‘orders.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:16:11 [ERROR] error syncing ‘clusterissuers.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:16:11 [ERROR] error syncing ‘certificaterequests.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing
2021/10/26 03:16:11 [ERROR] error syncing ‘challenges.acme.cert-manager.io’: handler need-a-cert: services “cert-manager-webhook” not found, requeuing

要回复问题请先登录注册