If a pod is created using an imperative command and not a yaml definition file, can we edit the pod configuration using
kubectl edit pods
Yes you can. Give that a go and let us know.
Bear in mind that only certain objects can be edited in a running pod such as the image.
I was trying to edit the command in env in one of the labs, did not let me do it.
you may find this useful:
There are only a handful of fields that can be updated on a running pod.
Thanks for this. Cheers.