Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

error while getting metrics summary from Kubelet #1

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

error while getting metrics summary from Kubelet #1

stefanvangastel opened this issue Jul 10, 2018 · 1 comment

Comments

@stefanvangastel
Copy link

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 error while getting mettrics summary from Kubelet error while getting metrics summary from Kubelet Jul 10, 2018
@stefanvangastel
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant