栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

helm安装rancher(2.6.4)

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

helm安装rancher(2.6.4)

文章目录
      • 1. 安装cert-manager
      • 2. 安装ingress-nginx
      • 3. 添加rancher repo
      • 4. my-values.yaml
      • 5. 安装
      • 6. 卸载
      • 7. 使用

当前k8s集群是1.23.5

1. 安装cert-manager

参考 https://blog.csdn.net/qq_38983728/article/details/103462543

2. 安装ingress-nginx

参考 https://blog.csdn.net/qq_38983728/article/details/123399245

3. 添加rancher repo
helm repo add rancher-stable http://rancher-mirror.oss-cn-beijing.aliyuncs.com/server-charts/stable

[root@master rancher]# helm search repo rancher-stable/rancher
NAME                  	CHART VERSION	APP VERSION	DESCRIPTION                                       
rancher-stable/rancher	2.6.4        	v2.6.4     	Install Rancher Server to manage Kubernetes clu...
4. my-values.yaml
cat < my-values.yaml
hostname: rancher.wanfei.wang
ingress:
  extraAnnotations:
    kubernetes.io/ingress.class: "nginx"    
    kubernetes.io/tls-acme: "true"  
  tls:
    source: letsEncrypt
    secretName: tls-rancher-ingress
letsEncrypt:
  email: email@126.com
  environment: production
  ingress:
    class: "nginx"

replicas: 1
bootstrapPassword: "123456"
EOF
5. 安装
helm install rancher rancher-stable/rancher --version 2.6.4 
 --no-hooks 
 --namespace cattle-system --create-namespace 
 -f my-values.yaml

参考官方安装 https://docs.rancher.cn/docs/rancher2.5/installation/install-rancher-on-k8s/_index

6. 卸载
helm uninstall rancher -n cattle-system
7. 使用

输入 https://rancher.wanfei.wang,输入上面设置的密码bootstrapPassword

设置中文

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/837554.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号