helm简介

官网文档:https://helm.sh/

helm是kubernetes的包管理器,类似于linux系统下的apt-get或yum

安装

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

cp helm tiller /usr/local/bin helm version
tiller -version
安装初始化:
kubectl apply -f install/kubernetes/helm/helm-service-account.yaml
[root@k8s-master ~]# helm init --service-account tiller  --skip-refresh #helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.11.0 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
查看
#kubectl get pod -n kube-system -l app=helm
[root@k8s-master linux-amd64]# kubectl get pod -n kube-system -l app=helm
NAME READY STATUS RESTARTS AGE
tiller-deploy-7df745645f-ptzwj 1/1 Running 0 5m22s
[root@k8s-master linux-amd64]#
验证:
[root@k8s-master ~]# helm version
Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
[root@k8s-master ~]#

helm安装gitlab插件

插件地址:https://github.com/diwakar-s-maurya/helm-git

用户根据公司业务需求,制作适用于自己的helm模板

[root@k8s-master ~]# helm plugin install https://github.com/technosophos/helm-template
[root@k8s-master ~]# helm plugin install helm-git
Installed plugin: helm-git
[root@k8s-master ~]# helm plugin list
NAME VERSION DESCRIPTION
helm-git 1.0.0 Let's you use private gitlab repositories easily
template 2.5.1+2 Render templates on the local client.
[root@k8s-master ~]#
[root@k8s-node1 helm-git]# helm repo list
NAME URL
stable https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879/charts
[root@k8s-node1 helm-git]# helm plugin remove helm-git
helm plugin install helm-git

添加helm仓库

[root@k8s-master ~]# helm repo list
NAME URL
stable https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879/charts
[root@k8s-master ~]# helm repo add bigdata gitlab://xx:master/helm-jtsys
[root@k8s-master ~]# helm repo list
NAME URL
stable https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879/charts [root@k8s-master ~]#

  

安装应用 

安装:
helm install --name bigdata bigdata/jtsys --debug --dry-run -f test-bigdata-value.yaml 更新:
helm upgrade bigdata bigdata/jtsys --debug -f test-bigdata-value.yaml
动态扩展
kubectl get deploy -n bigdata --no-headers | awk '{cmd="sleep 10;kubectl -n company scale --replicas=0 deploy/"$1;system(cmd)}'

  

helm模板

未完...... 

  

 



最新文章

  1. 视图控制器的View整体上移问题
  2. java String 中用"+"拼接字符串的原理
  3. [Python]logging模块使用basicConfig后记录日志重复问题
  4. Quartus中添加时序约束
  5. Centos7 改名问题
  6. WPF x名称空间
  7. Google https服务被屏蔽
  8. PEAR:使用PHPDoc轻松建立你的PEAR文档
  9. [LeetCod] Single Number
  10. Win8、Win10进入SQL server配置管理器
  11. 前端性能优化工具--DOM Monster
  12. Angularjs学习笔记《一》
  13. 微信小程序 发现之旅(一)—— 项目搭建与页面跳转
  14. 关于this绑定的四种方式
  15. SAP abap 内表增加字段方法,结构复用
  16. U盘安装Ubuntu 14.04 LTS
  17. 知识点:Mysql 基本用法之视图
  18. LeetCode:114_Flatten Binary Tree to Linked List | 将一棵二叉树变成链表的形式 | Medium
  19. redhat7.4安装vertica-9.1.0教程
  20. Zookeeper 重连机制

热门文章

  1. vue:表格中多选框的处理
  2. Python逻辑面试题
  3. 使用lua-nginx模块实现请求解析与调度
  4. 2.2 Python3基础-基本数据类型
  5. Python基础【while循环】
  6. js 算数组平均值、最大值、最小值、偏差、标准差、中位数、数组从小打大排序、上四分位数、下四分位数
  7. 为 .NET 打 Call,为国产平台 Gitee 打 Call,我的 .NET/C# 开源项目清单,同步维护于 Github 和 Gitee
  8. mysql连接不上本地服务器或者localhost:3306报错
  9. concurrentHashMap扩容相关方法详解
  10. 如何开发一个APP——转自知乎