Hello Everyone, I am trying to edit a pod and after every edit when I am trying . . .

subham Saha:
Hello Everyone,

I am trying to edit a pod and after every edit when I am trying to save it showing me “Edit cancelled, no changes made.”
I am facing this issue for first time.
Earlier when I have edited a pod using edit command it used to save in /tmp directory.

is there any mistake from my end or it is some kind of technical glitches ?

FYI,

root@controlplane:~# kubectl edit pods ubuntu-sleeper
Edit cancelled, no changes made.
root@controlplane:~#

Even for editing a role I was facing same issue.

Thanks in advance.

Aiden Chen:
because the container is the read-only file system, you can kubectl get pod [pod-name] -A -o yaml > [output yaml path], than you can edit the yaml, before recreate the pod, delete the original pod first.

Aiden Chen:
Hope this helps you