Kubernetes set image missing resource type 'deployment'
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/$BITBUCKET_REPO_SLUG:$BITBUCKET_COMMIT --insecure-skip-tls-verify But when I receive the following error: error: the server doesn't have a resource type "deployment" I have checked that i am in the right namespace, and that the pod with the name exists and is running. I can't find any meaningful resources in regards to this error. Sidenote: I'm doing this through Bitbucket and a pipeline, which also builds the image i want to use. Any