安装helm
helm用于管理各种微服务的安装模板,即chart,这些微服务是专门部署在k8s集群容器内的;
安装模板即PVC、ConfigMap、Deployment、Service的脚本的模板。
下载并初始化helm
在安装了kubectl并连接apiServer成功的机器上,安装2.1.3版的helm和tiller;
helm会使用kubectl的默认配置与apiServer通信,并部署tiller到k8s容器内。
mkdir ~/helm
cd ~/helm
wget https://kubernetes-helm.storage.googleapis.com/helm-v2.8.1-linux-amd64.tar.gz
tar zxvf helm-v2.1.3-linux-amd64.tar.gz
rm -f /usr/local/bin/helm
mv linux-amd64/helm /usr/local/bin/helm
cd ~
rm -rf ~/helm
helm init --tiller-image=registry.cn-hangzhou.aliyuncs.com/kubernetes-helm/tiller:v2.8.1
确认安装状态
helm客户端要能与运行在k8s容器里的tiller正常通信
helm version
helm search
使用第三方chat库
添加fabric8库
fabric8提供微服务开发流水线的打包安装
helm repo add fabric8 https://fabric8.io/helm
搜索fabric8提供的工具
主要就是fabric8-platform工具包,包含了CI、CD的全套工具
helm search fabric8