Editing running Deployment manifests in Kubernetes

With Deployments you can easily edit any field/property of the Pod template. Since the Pod template is a child of the deployment specification, with every change the deployment will automatically delete and create a new Pod with the new changes. So if you are asked to edit a property of a Pod part of a deployment you may do that simply by running the command:

kubectl edit deployment my-deployment