In the test i tried to edit deplyment but it didnt let me how can i edit running . . .

sfds:
in the test i tried to edit deplyment but it didnt let me how can i edit running deploymet with out it to send me to another /tmp/file.yaml?

Hinodeya:
edit for what ? modification of image ?

Hinodeya:

kubectl set image deployment/nginx-deployment nginx=nginx:1.9.1 --record

sfds:
lets say i need to ad volume mounts

Hinodeya:
honestly read the documentation man and make the lesson arround the yaml and json

Hinodeya:
Volumemount is on spec right so where is the value in your point of view :wink:

Samir:
you edit the deployment wrong. thats why he sent the changes to a tmp file

unnivkn:
make sure you edit the right deployment which is on the right namespace. It should work. k -n my-namespace edit deploy my-deploy

Karim Meslem:
It throws you to the tmp yaml whenever you try to modify any field that can’t be modified while the deployment runs.

Consider those fields as immutable. I agree with @Hinodeya, read the documentation to find out which field in a running deploy you MAY modify with k edit.

unnivkn:
deployment we can edit on the fly, where as pod you can’t do it for many fields