-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
kubectl cluster-info lists services that are not reachable #14232
Comments
This issue is reproducible with try out instruction for k8s and for k8s v.1.1.1 following services listed: ./cluster/kubectl.sh cluster-info but only KubeUI is working (after a while) all others still return: "no endpoints available for service ...", |
I'm also having this issue on a fresh cluster (lots of details here). I can access Elasticsearch/Kibana/KubeUI/Grafana, but cannot access Heapster/KubeDNS/InfluxDB. |
I was having the same issue with KubeUI. I don't recall exactly how I found the message but the error reported that there was no "default" service account in the "kube-system" namespace. I created this manually by running where serviceaccount.yml was this:
|
Hmm, interesting @cmoad. I actually already had the
|
Same issue when moved to Kubernetes version 1.1.1 and created a fresh cluster
At https://xx.yy.zzz.abc/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana Dashboard init failed
https://xx.yy.zzz.abc/api/v1/proxy/namespaces/kube-system/services/monitoring-influxdb { |
There are different ports for influxdb so you need to specify which one in the url i.e. https://xx.yy.zzz.abc/api/v1/proxy/namespaces/kube-system/services/monitoring-influxdb:http/. Influxdb ui is not really usable anyhow through the proxy for other issues and I can't get grafana to talk to influxdb properly yet with the same error as above. |
the same issue with my fresh cluster (v1.1.2) |
I'm having the same problem as @rroopreddy, when accessing Grafana I'm gettting the same error.
|
I just tested a new cluster (v1.1.2) with kube-up on AWS and I can access influxdb with http appended at the end of the url as follows: https://x.x.x.x/api/v1/proxy/namespaces/kube-system/services/monitoring-influxdb:http
|
it is a bit odd that this issue slipped through -- meaning these are the default/demo/showcase k8s services and having them broken "out of the box" leaves a bad impression |
@okigan 100% agree, we'll get someone on checking this out. (and then improve e2e testing...) |
Is this still a issue?, I'm getting the same when accessing InfluxDB using the latest version of k8s |
Using version 1.2.0, I am still having issues accessing Grafana, getting the same error as above I can access Influxdb at https://x.x.x.x/api/v1/proxy/namespaces/kube-system/services/monitoring-influxdb:http, the interface loads up, however it is unusable as it cannot connect to influxdb and gives the following error: |
@tsitaru: The Grafana error seems like there is some issue with heapster or with kube-proxy. I'd recommend running Grafana with an external service - Nodeport or loadbalancer InfluxDB is not proxy friendly. So it is not expected to work via the API proxy. |
@vishh hi Even though i change the type of both svc:monitoring-influxdb and svc:monitoring-grafana from ClusterIP to LoadBalancer, but still got the same issue as @erroneousboat and @rroopreddy issued $ kubectl describe svc monitoring-grafana
Name: monitoring-grafana
Namespace: kube-system
Labels: kubernetes.io/cluster-service=true,kubernetes.io/name=Grafana
Selector: k8s-app=influxGrafana
Type: LoadBalancer
IP: 10.0.0.11
Port: <unset> 80/TCP
NodePort: <unset> 31050/TCP
Endpoints: 10.1.51.3:3000
Session Affinity: None
No events. Is there any thing I done correctable? |
Take a look at the comments here in the grafana config. |
This is still broken. I can access grafana, kibana, kube status and influxdb (the latter by appending |
@yidinghan @luispabon ;I have the same issue , is still a issue now? |
Still is, on 1.2.4 |
Still an issue. |
me too ,but still thanks! 2016-06-30 1:10 GMT+08:00 mitsuh notifications@github.com:
|
...aaaand still an issue. |
All of you may have noticed this already but if you have a pod with multiple ports you will need the port in the url to connect to the pod (since the master actually connects via pod not service) Something like the following: |
Still an issue, ran the AWS deployment script and receive the following:
Now, checking the URLs:
Which leads me to influx on
Kubernetes Dashboard on the other hand works, so that's some success. But I think the other tools / links should also work. This is kind of frustrating. I am very new to Kubernetes and its ecosystem so I am not really aware on where should be some UI and which might be pure service URLs, so please forgive me if this is expected behaviour above. |
Since I ended in this thread for a related problem I'll share a nugget that others might find useful if they are making a custom cluster-service using the label kubernetes.io/cluster-service: "true" If you use a named port for your container that the service selects then you need to add ":portname" at the end of the URL that "kubectl cluster-info" reports. Otherwise you will get a "no endpoints..." error. |
I am having the same issue. I used the port name dns-tcp-local and dns-tcp both requests get timed out in the browser. Cluster Info Kube DNS URL Error DNS RC YAML File contents If I use this url http://192.168.56.110:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns:dns-tcp/ (note centos-master' ip is 192.168.56.110) it is giving following error: |
/sig cli |
Also have the issue, installed from https://github.com/kubernetes/contrib/tree/master/ansible |
What's the fix for this, am still facing this issue in 1.8 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Well, I met the same issue for both Gafana and InfluxDB (haven't test if other service hace the same issue For more information, I runned the kubectl -n kube-system -l=k8s-app=kube-dns get pods and received: |
This might be a very late reply but tried the entire day on Chrome with no success but Firefox works perfectly fine. |
kubectl cluster-info shows e.g.
But kube-dns is not (meaningfully) reachable over HTTP; it gives this error:
A user reported this, along with a similar error for monitoring-influxdb which I suspect might be the same problem.
I think the problem here is that we show services as running, and suggest an HTTP endpoint, but that HTTP endpoint is invalid for some services (I think).
We should avoid showing endpoints that will give users errors. It's particularly problematic because (at least on AWS) we print the output from
kubectl cluster-info
oncekube-up
succeeds, so the natural thing for users to do is to explore these endpoints. Not sure if GCE has the same problem.The text was updated successfully, but these errors were encountered: