I see that I can use the \"kubectl set image\" command to update a container used in a deployment, like this:
kubectl set image deployment/myapp myapp=repo.mycom
You could use kubectl patch for that. Run kubectl patch --help to get the docs, but as far as I can tell something like this should do it:
kubectl patch
kubectl patch --help
$ kubectl patch deployment <your-deployment> -p ' spec: template: spec: containers: - name: <container-name> command: ["new", "command"] '