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?
edit for what ? modification of image ?
kubectl set image deployment/nginx-deployment nginx=nginx:1.9.1 --record
lets say i need to ad volume mounts
honestly read the documentation man and make the lesson arround the yaml and json
Volumemount is on spec right so where is the value in your point of view
you edit the deployment wrong. thats why he sent the changes to a tmp file
make sure you edit the right deployment which is on the right namespace. It should work. k -n my-namespace edit deploy my-deploy
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.
deployment we can edit on the fly, where as pod you can’t do it for many fields