Helm管理工具怎么用
发表于:2025-02-19 作者:千家信息网编辑
千家信息网最后更新 2025年02月19日,这篇文章主要介绍了Helm管理工具怎么用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。一 Helm 简介Helm:chart: 一个h
千家信息网最后更新 2025年02月19日Helm管理工具怎么用
这篇文章主要介绍了Helm管理工具怎么用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
一 Helm 简介
Helm:
chart: 一个helm程序包
Repository: Charts仓库,https/http服务器
Release:特定的chart部署于目标集群上的一个实例
Chart -> Config -> Release
helm:客户端。管理本地Chart仓库,管理Chart,与Tiller服务器交互,发送Chart,实例安装,查询,卸载等操作
Tiller: 服务端,接收helm发来的Chart与Config,合并生成Release
二 部署Helm
1 下载helm
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz
2 解压
tar xf helm-v2.13.1-linux-amd64.tar.gz
3 安装helm
cd linux-amd64/mv helm /usr/bin/# helm versionClient: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}Error: could not find tiller
4 安装 tiller
部署tiller对于开启rbac认真的集群需要进行rbac授权并且绑定在集群级别的clusterrolebinding
# cat tiller-rbac.yaml apiVersion: v1kind: ServiceAccountmetadata: name: tiller namespace: kube-system---apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRoleBindingmetadata: name: tillerroleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-adminsubjects: - kind: ServiceAccount name: tiller namespace: kube-systemkubectl apply -f tiller-rbac.yaml如果想要部署在特定的名称该空间使用请参考官网https://github.com/helm/helm/blob/master/docs/rbac.md查看tiller# kubectl get serviceaccount -n kube-system | grep tillertiller 1 4m25s
5 初始化tiller
helm init --service-account tiller --history-max 200Creating /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 Adding local repo with URL: http://127.0.0.1:8879/charts $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-installationHappy Helming!可以预先设置下载proxyexport HTTPS_PROXY='http://www.ik8s.io:10080'如果提示失败并且是连接https://ip:6443超时可以通过设置环境变量export NO_PROXY='节点ip/16,回环地址/16'再次安装
6 查看tiller
# kubectl get pod -n kube-system | grep tillertiller-deploy-876ff889-jjfn9 1/1 Running 0 4m29s# helm versionClient: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}Server: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}
7 helm chart 官方可用仓库
1) helm.sh2) hub.kubeapps.com
8 升级仓库
helm repo update
9 helm基本使用
1) 查看 某chart# helm search jenkinsNAME CHART VERSION APP VERSION DESCRIPTION stable/jenkins 1.1.16 lts Open source continuous integration server. It supports mu...2) 查看chart的详细信息helm inspect stable/jenkins3) 安装某应用helm install --name memcached stable/memcached4) 卸载某个应用helm delete memcached 5) 查看应用列表helm list6) 获取charthelm get/fatch stable/jenkins7) 历史管理helm history memcached8)创建charthelm create ..9) 打包helm package ..10) 回滚 helm rollback ...11) 查看helm版本helm version12) 查看状态helm status......通过helm --help 获取
10 helm家目录
家目录主要查看我们使用过的chart
/root/.helm/
感谢你能够认真阅读完这篇文章,希望小编分享的"Helm管理工具怎么用"这篇文章对大家有帮助,同时也希望大家多多支持,关注行业资讯频道,更多相关知识等着你来学习!
管理
仓库
篇文章
集群
应用
服务
工具
管理工具
实例
服务器
目录
参考
价值
信息
兴趣
再次
历史
变量
可以通过
同时
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
idea 数据库符号分号
键值数据库需要什么条件
c ui下拉菜单数据库
CA认证机构由数据库和
数据库中宽度和高度的代码
c 服务器简历
海事局 网络安全
锐龙cpu做软件开发
云服务器为什么安全模式
中国移动软件开发平台
服务器管理平台golang
大专计算机网络技术自荐信
linux数据库都是有哪些
网络信息和安全软件开发
网络安全看动漫插件
用于指定域名服务器位置的文件是
博看网是什么类型数据库
趣步app软件开发玩法介绍
光明区网络技术转移诚信服务
网络技术对教学的利弊
战地1服务器为什么总是断连
青海信息化土地资产管理软件开发
数据库与软件开发
天津海泰互联网科技公司
浪潮服务器按F几进pe系统
网络安全与技术论文
裸金属服务器怎么选
c 多线程连接数据库
守护网络安全呵护精神家园班会
下载服务器版本标识文件时出错