Skip to content
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

Kubelet Connection Refused #129

Open
pdrcastro opened this issue Apr 5, 2019 · 1 comment
Open

Kubelet Connection Refused #129

pdrcastro opened this issue Apr 5, 2019 · 1 comment

Comments

@pdrcastro
Copy link

pdrcastro commented Apr 5, 2019

Hi camilb,

Before i describe my problem, i want to thank you for your amazing work.

My scenario is:
Kubernetes AWS EKS with autoscaling V1.11.

Everything is ok except the kubelet is try to connect on port 10255 but in server kubelet is listen in port 10250.

How can i fix this ?

I try to change my service monitor for:
**```
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: kubelet
name: kubelet
namespace: monitoring
spec:
endpoints:

  • bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    honorLabels: true
    interval: 30s
    port: https-metrics
    scheme: https
    tlsConfig:
    insecureSkipVerify: true
  • bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    honorLabels: true
    interval: 30s
    metricRelabelings:
    • action: drop
      regex: container_([a-z_]+);
      sourceLabels:
      • name
      • image
    • action: drop
      regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
      sourceLabels:
      • name
        path: /metrics/cadvisor
        port: https-metrics
        scheme: https
        tlsConfig:
        insecureSkipVerify: true
        jobLabel: k8s-app
        namespaceSelector:
        matchNames:
    • kube-system
      selector:
      matchLabels:
      k8s-app: kubelet

And for this without success.

**apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: kubelet
  labels:
    k8s-app: kubelet
spec:
  jobLabel: k8s-app
  endpoints:
  - path: /metrics/cadvisor
    port: http-metrics
    interval: 30s
    honorLabels: true
  selector:
    matchLabels:
      k8s-app: kubelet
  targetLabels:
    - app
    - prometheus
    - beta.kubernetes.io/instance-type
    - kops.k8s.io/instancegroup
    - failure-domain.beta.kubernetes.io/zone
    - name
    - address
  namespaceSelector:
    matchNames:
    - kube-system**

Thanks.
@pdrcastro
Copy link
Author

Problem solve.

Change port to port: https-metrics

Thanks.

You can close.

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

No branches or pull requests

1 participant