Hi, I have a query regarding static pods. After going through lesson on static pods, i understand that api-server keeps readonly information of static pods and thus kubectl provides information of static pods as well. All good till now, my expectation was that i should not be able to edit the static pods using kubectl but instead when i tried to make change using kubectl edit command for static pod, i was allowed, it did not change pod definition in manifest folder and that is expected but how did it allow to change static pod? is it because kubectl edit do in memory update so it does not go back to api-server??
As far as I know, using kubectl edit won’t change the image of the a static pod, since, as you correctly point out, a static pod is not being stored in etcd; the edit command is working on a read-only copy of the pod. And it certainly won’t edit the manifest file; you need to do that using a text editor like vim.