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
Kubernetes endpoint investigation #5636
Comments
There is no discrepancy, we were probably comparing different responses when we saw it. |
I still haven't figured out how to access the other endpoints on the GKE cluster. I added some more permissions to make it identical to Prometheus, but all I can see are the kubelet and kube-proxy endpoints. The service account seems to make no difference at all. I'll see what we get in minikube with the script below. @varyumin and @paulfantom, if you have any ideas, let me know. The list below is what @ilyam8 collected in #5392
|
About GKE, i found
So it seems there is no way to access node directly, only via api-server/proxy. |
@cakrit In minikube yes you have full access to API and proxy |
Ok, the comment on the thread @ilyam8 posted makes sense. They mention
I'd like to test 'scraping the node metrics through the API node proxy' on GKE, though @varyumin 's comment suggests that perhaps even that might fail. Do you know how I could try that? If it doesn't work, I guess we'll tell users to set up client certificates in GKE and we will have to use them in our collector. So we'll need to test that. I'd like to get to that after eliminating the first option though... |
I did some more digging for kube-dns on GKE. The issue is actually that kube-dns does not expose metrics there, at all. Also, the port 10055 is no longer correct, coreDNS (which is also called kube-dns now) uses 9153. Here's the difference between minikube and GKE: minikube
Here, I can get metrics via GKE
So, autodiscovery is a must and we should let users define the labels we will be using to find the IPs and ports of the available services. |
I'm closing this, we'll go into the design of auto-discovery in the next sprint. |
10055 is kube-dns (optional), 9153 is coreDNS (current default) |
They use just saying |
From https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#introduction
|
The text was updated successfully, but these errors were encountered: