Zul:
Failed the exam as one command 'kubectl edit didnt worked there and there were requirement to edit resource in few questions.Whenever I tried to edit file and save with :wq! It throw error that “edit cancelled ,no changes were made”.It cohld not be syntax error as I tried to change even existing value e.g 10 to 20 but gave same error.
Pradeep:
You should have created an yaml file. Delete the old one and should have created the resources
Pradeep:
But, ideally it should work
Balaji K:
@Zul I think you would have edited those parameter which can’t be dynamically edited. In that case they would be saved in /tmp/xxxxxx.yaml which you could have used to delete and create again.
Zul:
@Balaji K Those parameters were editable as I confirmed after that in course labs.I tried to delete resource and recreate with that temp file but I dont think I got matks for that because exam stated to use kubectl edit command to edit those resources.
Madhan Kumar:
Based on what I’ve read , switching the editor to vim or nano should solve the issue . Or you can try :w and then :q separately so that the changes are saved and then you can quit …that error is due to the wait parameter .