安装 helm tiller monocular

安装 helm tiller monocular部分内容参考 https blog csdn net bbwangj article details 下载 helmhttps get helm sh helm v2 14 1 linux amd64 tar gz 上传至 centos 虚拟机解压 mvhelm v2 14 1 linux amd64 tar gz 移动至 bin 目录 mv

部分内容参考 https://blog.csdn.net/bbwangj/article/details/

 

下载helm

https://get.helm.sh/helm-v2.14.1-linux-amd64.tar.gz

 

上传至 centos 虚拟机 解压

mv helm-v2.14.1-linux-amd64.tar.gz

移动至bin目录

 

mv linux-amd64/helm /usr/local/bin/helm

 

helm 命令可用  删除线忽略,参考后面的安装方式

换helm镜像到阿里云

helm init –client-only –stable-repo-url https://aliacs-app-catalog.oss-cn-hangzhou.aliyuncs.com/charts/
helm repo add incubator https://aliacs-app-catalog.oss-cn-hangzhou.aliyuncs.com/charts-incubator/
helm repo update




安装Tiller

helm init

kubectl get pods -n kube-system|grep tiller

 

卸载使用 helm reset

查询  charts

helm search

 

更换仓库

# 先移除原先的仓库
helm repo remove stable
# 添加新的仓库地址
helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
# 更新仓库
helm repo update










使用下面的命令提醒不接受参数

准备使用docker直接安装的时候再次尝试了一下, 去掉了 –upgrade, 居然安装成功

helm init –service-account tiller -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.14.1 –stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts

重要的一步, 给tiller授权 , 第一次安装的时候是按最上面的教程来的,所以一切很顺利,也没有记录授权这块内容, 但是当重新回来重新安装的时候,少了这一步,导致容器组创建失败

报错

"conditions": [ { "type": "ReplicaFailure", "status": "True", "lastTransitionTime": "2019-06-26T08:07:25Z", "reason": "FailedCreate", "message": "pods \"tiller-deploy-767d9fb945-\" is forbidden: error looking up service account kube-system/tiller: serviceaccount \"tiller\" not found" } ]

 

授权命令

kubectl create serviceaccount --namespace kube-system tiller kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller 给tiller设置账号 kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' 检查是否授权成功 kubectl get deploy --namespace kube-system tiller-deploy --output yaml|grep serviceAccount 

授权完成后, tiller就可以使用了.

单独安装tiller

helm init –service-account tiller –upgrade -i 192.168.106.55:8081/google_containers/tiller:v2.14.1

暴露服务

kubectl expose deployment tiller-deploy -n kube-system --port=44134 --target-port=44134 --external-ip=192.168.106.56

 

安装 nginx  注意 true后面的逗号不能写错

helm install stable/nginx-ingress –set controller.hostNetwork=true,rbac.create=true

nginx-ingress-controller 一直处理pending状态 但是不影响使用

curl http://192.168.220.129:32526/healthz 获取200的响应, 其它请求获取 404

这说明安装成功了

 

安装  monocular 

helm repo add monocular https://helm.github.io/monocular helm install --name monocular monocular/monocular

安装后一直不知道怎么使用, 接着搞

主要是不理解nginx-ingress 与 monocular如何对接的, 另外 nginx-ingress-controller 一直处理pending状态 

还需要仔细理解一下

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/211670.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月18日 下午9:53
下一篇 2026年3月18日 下午9:53


相关推荐

  • 解决Ubuntu系统下启动root账户后Linux版本edge浏览器无法启动

    解决Ubuntu系统下启动root账户后Linux版本edge浏览器无法启动最近安装了Ubuntu双系统,原本在Windows上使用的是edge浏览器,没想到edge还有Linux的dev版本,兴高采烈的安装后发现root用户正常启动edge,这里记录下解决办法。ps:笔者系统为Ubuntu18.04.5编辑/usr/bin/microsoft-edge文件gedit/usr/bin/microsoft-edge在最后一行的启动命令:exec-a”$0″”$HERE/msedge””$@”后添加`–user-data-dir–no-sandboxexe

    2022年7月21日
    13
  • 5.6(java学习笔记) queue

    5.6(java学习笔记) queue

    2021年6月14日
    118
  • winscp登录主机拒绝_winscp连接被拒绝怎么解决[通俗易懂]

    winscp登录主机拒绝_winscp连接被拒绝怎么解决[通俗易懂]解决方法:1、使用“sudoufwdisable”命令关闭防火墙;2、使用“sudo/etc/init.d/sshrestart”命令开启远程服务;3、打开22端口号。本教程操作环境:RedHatEnterpriseLinux6.1系统、DellG3电脑。winscp连接被拒绝可以尝试以下方法:1)开启|关闭防火墙(这里需要关闭)sudoufwenable|disable2…

    2025年12月15日
    6
  • kafka 教程_kafka适合以下哪种场景

    kafka 教程_kafka适合以下哪种场景一、基本概念介绍Kafka是一个分布式的、可分区的、可复制的消息系统。它提供了普通消息系统的功能,但具有自己独特的设计。这个独特的设计是什么样的呢?首先让我们看几个基本的消息系统术语:Kafka将消息以topic为单位进行归纳。将向Kafkatopic发布消息的程序成为producers.将预订topics并消费消息的程序成为consumer.Kafka以集群的方式运行,可以由一个或多个服务组成…

    2022年10月17日
    5
  • leetcode官网_leetcode有多少题

    leetcode官网_leetcode有多少题leetcode378. Kth Smallest Element in a Sorted Matrix

    2022年4月21日
    85
  • Spring Boot配置log4j记录日志

    Spring Boot配置log4j记录日志转载请注明出处 SpringBoot 配置 log4j 记录日志我们在老的项目框架 ssh springMVC 中都使用过 log4j 日志模块 例如 java 日志功能 log4j 模块的使用方法 SpringBoot 框架也能很好的快速集成 log4j 本篇文章记录如何在 SpringBoot 框架中使用 log4j 引入 log4j 依赖在创建 SpringBoot 工程时 我们引入了 spring boot st

    2026年1月22日
    3

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号