如何管理Kubernetes服务部署的部署配置(yaml文件) [英] How to manage deployment configs(yaml files) for kubernetes service deployment
问题描述
第二,为了将容器映像部署到kubernetes,我们通常进行部署配置(yaml文件)..
Secondly , For deploying container images to kubernetes , we generally made deployment config(yaml files) ..
现在,这些对于登台和开发环境可能有所不同.并带有一些新功能,可能需要一些系统环境变量,该变量需要在yaml中出现.
Now, these may different for staging and development environments . and with some new feature there may come some system environment variable , which needs to be present in yaml .
我的问题是.
1. How yaml are managed , for example , manual efforts required if these is some change in yaml .
2. How it can be made automated .
推荐答案
使用 helm ,k8s程序包管理器. helm将允许您为您的环境定义一组单独的值(感谢@xun指出)-开发,金丝雀,生产等,并在单个yml中使用它们
use helm, k8s package manager. helm will let you define a separated set of values for your environments (thanks @xun for pointing that out)- development, canary, production etc, and use them in a single yml chart, which will be generated into a kubernetes regular .yml
file.
helm还可以让您共享和使用 helm hub 和图表博物馆.
helm will also let you share and use deployment-ready charts from the helm hub and the chart museums.
这篇关于如何管理Kubernetes服务部署的部署配置(yaml文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!