0.概念:Helm作为一个包管理工具, 它把Kubernetes资源(比如deployments、services或 ingress等) 打包到一个chart中,方便我们将其chart保存到chart仓库用来存储和分享

1.服务端安装:

curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh

chmod 700 get_helm.sh
./get_helm.sh

2.客户端安装

wget https://storage.googleapis.com/kubernetes-helm/helm-v2.10.0-linux-amd64.tar.gz

tar -zxf helm-v2.10.0-linux-amd64.tar.gz

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

3.使用记录

[root@pserver78 site2powerone]# helm list  #列出所有kubernetes部署

interested-chipmunk 1       Wed Dec 12 19:27:31 2018 DEPLOYED site2powerone-0.1.0 default

helm delete  interested-chipmunk  --purge # 删除部署

3.3 创建新的chart

helm create  site3powerone

3.4 cat values.yaml

[root@pserver78 site2powerone]# cat values.yaml |egrep -v '#|^$'
replicaCount: 1
image:
repository: harbor.abc.com/pub/poweronesite
tag: end
pullPolicy: IfNotPresent
service:
type: ClusterIP
port: 80
ingress:
enabled: false
annotations: {}
path: /
hosts:
- site2powerone.mz.abc.com
tls: []
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}

3.部署公司OA:架构 --  client -- front(tomcat) -- backend(mysql)

[root@pserver78 oa]# tree -c
.
├── charts
│   └── oa-db
│   ├── Chart.yaml
│   ├── README.md
│   ├── templates
│   │   ├── deployment.yaml
│   │   ├── _helpers.tpl
│   │   ├── NOTES.txt
│   │   ├── pvc.yaml
│   │   └── svc.yaml
│   └── values.yaml
├── Chart.yaml
├── README.md
├── requirements.yaml
├── templates
│   ├── appsrv-ingress.yaml
│   ├── appsrv-svc.yaml
│   ├── appsrv.yaml
│   ├── _helpers.tpl
│   └── NOTES.txt
└── values.yaml

关键文件:

3.1

[root@pserver78 oa]# cat /root/.helm/cache/archive/oa/Chart.yaml
apiVersion: v1
appVersion: "7"
description: Deploy a basic tomcat application server with sidecar as web archive
container
icon: http://tomcat.apache.org/res/images/tomcat.png
maintainers:
- email: chenxuan@onecloud.cn
name: chenxuan
name: oa
version: 0.1.3

[root@pserver78 oa]# cat requirements.yaml
dependencies:
- name: oa-db
version: 0.1.0
repository: https://charts.abc.com
condition: oa-db.enabled
tags:
- oa

[root@pserver78 charts]# cat /root/.helm/cache/archive/oa/charts/oa-db/Chart.yaml
appVersion: latest
description: Fast, reliable, scalable, and easy to use open-source relational database
system.
engine: gotpl
home: https://www.mysql.com/
icon: https://www.mysql.com/common/logos/logo-mysql-170x115.png
keywords:
- database
- oa
maintainers:
- email: o.with@sportradar.com
name: olemarkus
name: oa-db
version: 0.1.0

最新文章

  1. SAP 出库单新版
  2. 解决VML遭遇IE8和XHTML DOCTYPE时不能运行的问题(转)
  3. Atitit。Web server Jetty9 使用 attilax 总结
  4. dell 电脑关闭触摸板的。
  5. CentOS 实现自动登陆
  6. NTP服务器地址及IP
  7. visual studio 2010运行速度提速
  8. ORACLE将表中的数据恢复到某一个时间点
  9. ECHO.js 纯javascript轻量级延迟加载
  10. xslt中的常用函数
  11. Swift - 下标脚本方法介绍及实例
  12. Linux 系统分区
  13. Java虚拟机学习 - 体系结构 内存模型(1)
  14. 成功解决react+webpack打包文件过大的问题
  15. 捕获arm托管磁盘虚拟机,并进行还原
  16. 计算机网络-应用层之HTTP协议
  17. 4.基于梯度的攻击——MIM
  18. .net core 简单项目的创建
  19. <转载>ford-fulkerson算法
  20. angularjs 异步请求无法更新数据

热门文章

  1. blfs(systemv版本)学习笔记-编译安装ligtdm显示管理器
  2. sigar获取Windows系统的硬件信息进行JAVA后台系统资源监控
  3. idea vue.js插件安装
  4. Loadrunner 脚本开发-从文件读取数据并参数化
  5. loadrunner 运行场景-命令行运行场景
  6. Expo大作战(三十三)--expo sdk api之MapView(地图),MailComposer(磁力传感计),Lottie(动画)
  7. 【Java入门提高篇】Day27 Java容器类详解(九)LinkedList详解
  8. 洗礼灵魂,修炼python(31)--面向对象编程(1)—面向对象,对象,类的了解
  9. C#异常--System.IO.FileLoadException:“混合模式程序集是针对“v2.0.50727”版的运行时生成的错误
  10. Kibana中的Coordinate Map地图报索引错误的问题