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 suggestions?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…