I\'m trying to update an image in Kubernetes by using the following command:
kubectl set image deployment/ms-userservice ms-userservice=$DOCKER_REGISTRY_NAME
I've had this error fixed by explicitly setting the namespace as an argument, e.g.:
kubectl set image -n foonamespace deployment/ms-userservice.....
https://www.mankier.com/1/kubectl-set-image#--namespace