Kubernetes控制器管理器Pod不更新 [英] Kubernetes controller manager pod not updating

查看:91
本文介绍了Kubernetes控制器管理器Pod不更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向我的kubernetes控制器管理器中添加一些额外的标志,并且正在更新/etc/kubernetes/manifests/kube-controller-manager.yaml文件中的标志.但是我要添加的更改没有生效.kubelet正在检测对文件的更改,并正在重新启动Pod,但是一旦重新启动,它们就会带有旧标志.

I am trying to add some extra flags to my kubernetes controller manager and I am updating the flags in the /etc/kubernetes/manifests/kube-controller-manager.yaml file. But the changes that I am adding are not taking effect. The kubelet is detecting changes to the file and is restarting the pods but once restarted they come back with the old flags.

有什么想法吗?

推荐答案

因此,似乎/etc/kubernetes/manifests下的任何文件都由kubelet加载.因此,当我添加新标志时,我正在备份扩展名为.bak的现有文件,但kubelet仍在加载.bak文件而不是新的.yaml文件.在我看来,多数民众赞成在一个错误.无论如何,很高兴发现错误.

So it seems that any file under /etc/kubernetes/manifests is loaded by the kubelet. So when I was adding the new flags I was taking a backup of the existing file with a .bak extension but kubelet was still loading the .bak file instead of the new .yaml file. Seems to me thats a bug. Anyways, happy to have spotted the error.

这篇关于Kubernetes控制器管理器Pod不更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆