「Rancher」- 通过 Helm 部署

  CREATED BY JENKINSBOT

问题描述

该笔记将记录:通过 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.9                                # rancher-2.6.9.tgz

helm show values ./rancher-2.6.9.tgz > rancher-2.6.9.helm-values.yaml
vim rancher-2.6.9.helm-values.yaml
... bootstrapPassword: 
... hostname: 
... ingress:

helm install --namespace cattle-system --create-namespace                      \
    rancher ./rancher-2.6.9.tgz -f rancher-2.6.9.helm-values.yaml

参考文献

Support matrix | SUSE
Install/Upgrade Rancher on a Kubernetes Cluster | Rancher Manager