The first task is to edit an existing resource, which Kubectl has a command for.
You can choose the editor which gets launched by the command - setting the environment variable KUBE_EDITOR
to code -w
will use VS Code.
The next task is to create a Job - and Kubectl will give you all the help you need.
Need more? Here's the solution.