部署 Rancher 2.6.12 版本(Helm)
Support matrix | SUSE
Install/Upgrade Rancher on a Kubernetes Cluster | Rancher Manager
该笔记将记录:通过 Helm 将 Rancher 部署到 Kubernetes Cluster 的方法以及相关问题的解决办法。
第一步、版本选择
当前为 1.22.15 版本集群,查阅 Support matrix/All other Distros 获取支持该集群版本的 Ranhcer 版本;
这里,我们将部署 Rancher 2.6.9 版本,通过 Helm 部署;
第二步、服务部署
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable helm repo update helm search repo rancher-stable/ helm pull rancher-stable/rancher --version 2.6.12 helm show values ./rancher-2.6.12.tgz > rancher.helm-values.yaml vim rancher-2.6.13.helm-values.yaml ... bootstrapPassword: ... hostname: ... ingress: helm upgrade --install --namespace cattle-system --create-namespace \ rancher ./rancher-2.6.12.tgz -f rancher.helm-values.yaml ... kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}{{ "\n" }}' ...
常见安装错误
[Sol.] … The target cluster does not have the PodSecurityPolicy API resource …
问题描述:
通过 Helm 部署 Rancher 服务时,产生 The target cluster does not have the PodSecurityPolicy API resource. Please disable PSPs in this chart before proceeding 错误。
解决方案:
–set global.cattle.psp.enabled=false