本文介绍了更新了configMap.yaml,但未将其应用于Kubernetes吊舱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Helm图表中编辑configMap.yaml,但是当我登录到一个吊舱中以检查它是否被应用时,它并不能反映我的更改.我对Helm图表非常陌生,因此不胜感激.

I'm editing configMap.yaml in my Helm chart, but when I log in to one of my pods to check if it's being applied, it doesn't reflect my changes. I'm fairly new to Helm charts so any help is appreciated.

推荐答案

对于更新您的ConfigMap,如果您觉得更合适,也可以使用kubectl patch命令.可以在此处找到该文件.

For updating your ConfigMap you can also use kubectl patch command if you find it more fitting for you. Documentation regarding it can be found here.

要应用更改,有一个非常有用的工具,名为 Reloader .Reloader可以监视ConfigMapSecret中的更改,并可以在Pods及其相关的DeploymentConfigsDeploymentsDaemonsetsStatefulsets上进行滚动升级.

For applying the changes there is a very useful tool called Reloader.Reloader can watch changes in ConfigMap and Secret and do rolling upgrades on Pods with their associated DeploymentConfigs, Deployments, Daemonsets and Statefulsets.

请让我知道是否有帮助.

Please let me know if that helped.

这篇关于更新了configMap.yaml,但未将其应用于Kubernetes吊舱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-19 10:55