背景
部署一个golang程序到k8s集群,使用的是docker容器;
前提
填写好以下三个文件:
文件夹Chart目录
|-template
|-|-configmap.yaml
|-|-deployment.yaml
|-|-service.yaml
|-values.yaml
渲染生成命令
生成的xxx.yaml,可用于kubectl apply -f xxx.yaml
helm template Chart -f ./Chart/values.yaml --output-dir ./output
helm更新微服务的版本
# 从源更新helm库
helm repo update
# 更新对应的微服务 helm upgrade <微服务名> <仓库名/微服务名> --version 2.025.303
helm upgrade aserver <my_helm_rel/aserver> --version 1.0.3