-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
metrics-server request canceled while waiting for connection #141
Comments
Are you running some overlay network on your cluster that prevents the main API server from talking to the the service proxies or pods? |
@DirectXMan12 Thanks for your reply. overlay network? you mean CNI or other network plugin? |
yeah, some CNI plugins create isolation between different parts of the system. Sometimes this isolation breaks Kubernetes features |
I have not installed any network plugins before, so master cannot access pods on other nodes? |
You'll have to check the kubernetes documentation -- there's a guide here: https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/ |
I have installed CNI plugin, but metrics-server pod cannot be created, and error return
It said |
This is a major problem in the whole master -> metrics server design. Masters are not supposed to be on the overlay network for security reasons. As an enhancement I think the Metric Server should be able to run host network. |
you could run metrics-server in hostnetwork mode. It's not a metrics-server issue -- it's in the core design of the Kubernetes aggregation layer. If you have concerns with this model, please discuss in the main kubernetes repo with the SIG APIMachinery team. |
I run metrics-server successfully, thanks for these advises :) |
i want to know you how to fix? metrics-server in hostnetwork mode? how to setting? @f4ct0r |
I ran into the same problem and have been trying different things to get metrics-server working on EKS with weave. And all the comments above are valid. The only things you need to do is ( after following all the standard procedures mentioned above, I used helm chart to install metrics-server without much customization): kubectl -n metrics-server edit deployment YOUR_METRICS_SERVER_DEPLOYMENT Add Save it and then, it all works like a charm.... |
The previous answer fixes this issue for me. I've encountered the same issue after upgrade cluster to 1.11.x using kops. |
Hi @allansun , event i'm not able to curl https://10.233.47.243:443. it's not giving any response. |
I ran into the same problem on AWS EKS with Secondary Cidr extended.
Because I enable Custom Network Config for the VPC CNI. |
@f4ct0r I had the same problem, and I struggled for it. |
How ? that would really help. |
Please don't post on 3 years old issue as during that time MS code was totally rewritten. If you have similar problem it has definitely different cause and using same fix will not work for your case. Please create a new issue and provide information required to debug it. |
I have deployed a metrics-server in kubernetes following https://github.com/kubernetes-incubator/metrics-server/tree/v0.2.1/deploy, and my metrics-server image is from gcr.io/google_containers/metrics-server-amd64:v0.2.1.
Metric server is running fine and but I am not able to get metrics from it. And I'm using Kubernetes version is 1.11.0.
The problem I met as followings:
And I use
curl https://169.169.50.19:443
, but nothing return.metircs-server logs:
Kubernetes master:
apiserver:
controller-manager:
kubeconfig:
proxy:
Kubernetes node:
kubelet:
proxy:
kubeconfig:
And Metrics-server YAML
metrics-server-deployment.yaml
l I just modifiedSo, is there any configuration fault? Anyone has suggestion to solve this problem?
The text was updated successfully, but these errors were encountered: