1、相关资源导航
https://blog.csdn.net/zyj81092211/article/details/123068347
2、环境介绍
操作系统:centos 7.9
运行环境:k3s集群
安装软件:helm
3、安装k3s集群
参考:可以只部署server节点(自带agent,但是需要去掉)
https://blog.csdn.net/zyj81092211/article/details/123068454
4、安装helm
https://blog.csdn.net/zyj81092211/article/details/123182552
5、添加helm chart 仓库
helm repo add rancher-stable http://rancher-mirror.oss-cn-beijing.aliyuncs.com/server-charts/stable

文章图片
6、为 Rancher 创建 Namespace
注意:如果没有kubectl工具需要安装
参考如下:
https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
kubectl create namespace cattle-system

文章图片
7、安装 cert-manager

文章图片
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.1/cert-manager.crds.yaml
添加 Jetstack Helm 仓库
helm repo add jetstack https://charts.jetstack.io
更新本地 Helm chart 仓库缓存
helm repo update
安装 cert-manager Helm chart
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.5.1

文章图片
查看
kubectl get pods --namespace cert-manager

文章图片
8、安装rancher(rancher自生成证书)
注意hostname自己设置
helm install rancher rancher-stable/rancher --namespace cattle-system --set hostname=rancher.wtown.com --set replicas=3

文章图片
查看安装进度
kubectl -n cattle-system rollout status deploy/rancher

文章图片
9、访问rancher
首先对上面的hostname做解析,解析到k3s节点
然后访问https://rancher.wtown.com

文章图片
获取密码
kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}{{"\n"}}'
【容器及编排|rancher 高可用集群安装】

文章图片
自己设置密码

文章图片

文章图片
推荐阅读
- Docker|Docker【6】| 让Docker炫起来
- kubernetes|Kubernetes(k8s)---(1)集群部署
- docker|docker简介
- 云原生|什么是云原生(——软件开发的现代方法)
- 后端|大名鼎鼎的 Linux —— 进程,线程,协程
- Linux|【Linux篇】第四篇——Linux环境下的工具(二)(make/Makefile+进度条小程序)
- 论文分享|《新程序员003》正式上市,华为、阿里等 30+ 公司的云原生及数字化实战经验
- spark|六十四、Spark-分别统计各个单词个数及特殊字符总个数
- hadoop|四十九、Hadoop HA部署(MINI版)