-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish-KubeResource ./service.yml
throws resource not found if used with older Kubernetes version that doesn't support server-side-apply yet
#49
Comments
Thanks for the report! Does the service exist already and you're trying to update it, or are you trying to create it? |
The service already existed when I ran it. kubectl version
|
Thanks for the info! |
Ah that could be it. I'm just using the Kubernetes runtime that comes with docker for Mac which seems to be 1.14 |
It is odd though that it reports a 404 (not found), so I'd still be curious to see the |
Also just to prove it does exist:
|
Interesting, it looks like Kubernetes sends an inappropriate HTTP status code (404) when it doesn't support the I would guess that |
If you want to play around with it, you could use minikube:
|
Publish-KubeResource ./service.yml
throws resource not foundPublish-KubeResource ./service.yml
throws resource not found if used with older Kubernetes version that doesn't support server-side-apply yet
here's my service config:
I'm trying to run:
but get the following error:
Here's the stack trace:
I did switch my context recently so maybe that's related... but I also tried with:
and it worked as expected.
let me know if there's any other info I can provide.
The text was updated successfully, but these errors were encountered: