当前位置: 首页 > news >正文

helm下载tiller失败

谷粒商城P351

牢骚:进入到集群模块,奉劝大家要做好极大的耐心,因为总会有各种各类的问题,毕竟视频也老旧了,无数次崩溃和想放弃,但坚持下去一定能解决

执行以下命令其实就是下载tiller 并且会kubectl让子节点也下载这个tiller

helm init --service-account=tiller --tiller-image=jessestuart/tiller:v2.16.3 --history-max 300

报错如下:

[root@k8s-node1 k8s]# helm init --service-account=tiller --tiller-image=jessestuart/tiller:v2.16.3 --history-max 300
Creating /root/.helm 
Creating /root/.helm/repository 
Creating /root/.helm/repository/cache 
Creating /root/.helm/repository/local 
Creating /root/.helm/plugins 
Creating /root/.helm/starters 
Creating /root/.helm/cache/archive 
Creating /root/.helm/repository/repositories.yaml 
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com 
Error: error initializing: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden

解决方法:

touch /root/.helm/repository/repositories.yaml
helm repo add stable https://charts.helm.sh/stable
helm init --service-account=tiller --tiller-image=sapcc/tiller:v2.16.3 --history-max 300

[root@k8s-node1 k8s]# touch /root/.helm/repository/repositories.yaml
[root@k8s-node1 k8s]# helm repo add stable https://charts.helm.sh/stable
Error: repository file is out of date
[root@k8s-node1 k8s]# helm init --service-account=tiller --tiller-image=sapcc/tiller:v2.16.3 --history-max 300
Updating repository file format...
$HELM_HOME has been configured at /root/.helm.Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
To prevent this, run `helm init` with the --tiller-tls-verify flag.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation

成功

原因:

2.17.0之前的Helm版本将不推荐使用的https://kubernetes-charts.storage.googleapis.com/index.yaml作为默认的稳定存储库,它不再解析。新的存储库是https://charts.helm.sh/stable。

参考的博客:

kubernetes之helm安装报错“https://kubernetes-charts.storage.googleapis.com“ is not a valid chart repositor_helm is not a valid chart repository-CSDN博客

如何解析https://kubernetes-charts.storage.googleapis.com“不是有效的图表存储库-腾讯云开发者社区-腾讯云

kunernets使用helm安装tiller踩坑 - 简书

以及官网:

Helm |

http://www.dtcms.com/a/317354.html

相关文章:

  • 【数字图像处理系列笔记】Ch04:灰度变换与空间域图像增强(2)
  • 蚊子咬人问题何时休:深度学习引领智能灭蚊新时代
  • qt窗口--02
  • 无人设备遥控器之跳频技术篇
  • 鹧鸪云:光伏电站的“智慧中枢”,精准调控逆变器
  • 使用 Helm 在 Kubernetes 中安装 Milvus
  • 企业知识库:RAG技术实现流程总览(一)
  • 【motion】标签体系设计与检索 1:HumanML3D 和 KIT Motion-Language(KITML)
  • 河南萌新联赛2025第(四)场【补题】
  • 键帽(dp)
  • 分布式光伏气象站:安装与维护
  • 【运维进阶】DHCP服务配置和DNS域名解析
  • 最长公共子序列-动态规划
  • 如何在linux中使用Makefile构建一个C++工程?
  • 中科米堆CASAIM机加工件来料尺寸自动化三维测量方案
  • 第十八天:C++进制之间的转换
  • 机器学习算法篇(六)贝叶斯算法
  • 基于php的个人健康管理系统设计与实现/vue/php开发
  • Leetcode题解:739每日温度,用单调栈解决问题!
  • LeetCode 91~110题解
  • Java 大视界 -- 基于 Java 的大数据实时流处理在工业物联网设备故障预测与智能运维中的应用(384)
  • 自动驾驶系统的网络安全风险分析
  • 力扣经典算法篇-45-回文数(数字处理:求余+整除,字符串处理:左右指针)
  • 【2025.08.06最新版】Android Studio下载、安装及配置记录(自动下载sdk)
  • Java 使用动态代理和反射实现字段变更跟踪
  • 一种基于潜在表征的轻量级无人机热成像超分辨率网络
  • Linux systemd 系统管理:systemctl 控制服务与守护进程
  • Redis集群核心原理与实战解析
  • Pytest项目_day04(Python做接口请求)
  • PyTorch生成式人工智能(26)——使用PyTorch构建GPT模型