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

error while getting metrics summary from Kubelet #1

Closed
stefanvangastel opened this Issue Jul 10, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@stefanvangastel

stefanvangastel commented Jul 10, 2018

Hi, thanks for this workaround, followed it to the letter but I'm having the following issue:

The kubectl logs -n kube-system -l k8s-app=metrics-server shows me the following errors:

E0710 10:25:05.002883       1 summary.go:97] error while getting metrics summary from Kubelet host1(xxx:10255): Get http://xxx:10255/stats/summary/: dial tcp xxx:10255: getsockopt: connection refused

E0710 10:25:05.007770       1 summary.go:97] error while getting metrics summary from Kubelet host2 (xxx:10255): Get http://xxx:10255/stats/summary/: dial tcp xxx:10255: getsockopt: connection refused

E0710 10:25:05.021821       1 summary.go:97] error while getting metrics summary from Kubelet host3(xxx:10255): Get http://xx:10255/stats/summary/: dial tcp xxx:10255: getsockopt: connection refused

Using Rancher 2.0.4 and the latest Kubectl cli

$ kubectl get all -n kube-system shows all well

Output from checking APIService:

$ kubectl describe APIService v1beta1.metrics.k8s.io -n kube-system

Name:         v1beta1.metrics.k8s.io

Namespace:

Labels:       <none>

Annotations:  kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"apiregistration.k8s.io/v1beta1","kind":"APIService","metadata":{"annotations":{},"name":"v1beta1.metrics.k8s.io","namespace":""},"spec":...

API Version:  apiregistration.k8s.io/v1

Kind:         APIService

Metadata:

  Creation Timestamp:             2018-07-09T13:26:38Z

  Deletion Grace Period Seconds:  0

  Deletion Timestamp:             2018-07-10T10:23:12Z

  Finalizers:

    foregroundDeletion

  Resource Version:  2083432

  Self Link:         /apis/apiregistration.k8s.io/v1/apiservices/v1beta1.metrics.k8s.io

  UID:               b5c31417-837b-11e8-8ae9-82dec7732cf4

Spec:

  Ca Bundle:                 <nil>

  Group:                     metrics.k8s.io

  Group Priority Minimum:    100

  Insecure Skip TLS Verify:  true

  Service:

    Name:            metrics-server

    Namespace:       kube-system

  Version:           v1beta1

  Version Priority:  100

Status:

  Conditions:

    Last Transition Time:  2018-07-10T10:24:55Z

    Message:               all checks passed

    Reason:                Passed

    Status:                True

    Type:                  Available

Events:                    <none>

@stefanvangastel stefanvangastel changed the title from error while getting mettrics summary from Kubelet to error while getting metrics summary from Kubelet Jul 10, 2018

@stefanvangastel

This comment has been minimized.

stefanvangastel commented Jul 10, 2018

My bad, missed the -b rancher in git clone -b rancher https://github.com/superseb/metrics-server ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment