-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" #1866
Comments
As the QuickStart mentions, there is a race in Kubernetes that the CRD creation finished but the API is not actually available. You just have to run the command once again. |
My bad...did'nt read that ... all manifests applied after second time... thnx and apologies.. closing |
Background:
But since yesterday when deploying kube-prometheus for the first time to a newly created K8s cluster (that is running in AWS), running the ( Here's the output from the 1st time running the command:
And from the 2nd time running the
Then I started over (i.e. And I found that after the 1st time running But by the time those few seconds went by, the 2nd time running the At that point I had this (neither the
Now that
And after running it the 3rd time, then I had a fully happy kube-prometheus deployment (in my case I'm setting
So my point in all of this is: simply running Heads up to @brancz , I've created PR #2006 to help prevent anyone else from getting tripped up by this issue I encountered. |
Thanks for the very detailed issue report and the pull-request @jolson490. We used to have a script that properly waits for all CRDs to be registered before continuing, but chose the simplicity of the If this keeps coming up I am happy to think about alternatives. |
@jolson490 out of curiosity, how many API server were you running? One present race is, that one API server gets the create request, forwards it to etcd and registers the http endpoints, but the other API server needing some time to catch up. |
hi @mxinden , sorry i forgot to get back to you sooner. The change I made in the PR has been doing the trick for us. |
Yes, this happens again using kops 1.12.2 and k8s/kubectl 1.12.10... But just running the script again for deploy what is missing (in my case servicemonitor). |
I'm seeing similar behaviour here on a current kube-prometheus and a I reported the underlying |
Hi all. i hit same issue. any update? |
Hi All, i am getting the same issue, is there any update on this or a workaround for this |
The latest version of the operator is resilient enough to keep retrying until all CRDs are available in the apiserver. If you are trying to apply |
Having the same issue, did you figure out? |
What did you do?
What did you expect to see?
What did you see instead? Under which circumstances?
Environment
Ubuntu 18 Desktop [ updated as of today ] with docker-17.03-2-ce [ changed apt source.list to install and version-locked to 17.03.2-ce]
The text was updated successfully, but these errors were encountered: