-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
creating a CronJob: 405 "the server does not allow this method on the requested resource" #191
Comments
|
Right, so I tried this on minikube running kubernetes 1.15 and with minor modifications, it worked. There's an attached commit (basically you only missed out the metadata.name - but that is required). You might have gotten a newer version of cronjob than what your cluster supports. |
To expand a bit. Make sure you pin the k8s-openapi api feature to your cluster version. That's the only feasible reason I can see you getting method invalid. I never got that. The example in that branch worked fine. |
Thanks! From your example I saw that you use a namespace "default" while I had |
Oh right. Yeah, cronjob is not a cluster level resource! That's a thing we might be able to improve elsewhere. |
Running
minikube v1.8.1
, and with(same with
v1_17
)I get error:
The text was updated successfully, but these errors were encountered: