Rke: kubelet 10255 isn't open

Created on 14 May 2018  路  8Comments  路  Source: rancher/rke

I am using rke 0.1.7 to bring up the k8s cluster and it succeed.

But when I want to using the heapster and grafana to monitor the cluster ,I found the kubelet's port 10255 isn't open.How can I solve this problem?

Thanks for your time!

Most helpful comment

All 8 comments

This is a potential security risk, be sure to firewall the access to it.

services: # ... kubelet: extra_args: read-only-port: 10255

Working perfectly !

be sure to firewall the access to it

Given master has IP address XX.XX.XXX.XXX and worker YYY.YYY.YY.YY, is the following correct for you ? :

$ ssh [email protected]
$ iptables -A INPUT -p tcp --dport 10255 -s YYY.YYY.YY.YY -j ACCEPT
$ iptables -A INPUT -p tcp --dport 10255 -j DROP
$ logout

$ ssh [email protected]
$ iptables -A INPUT -p tcp --dport 10255 -s XX.XX.XXX.XXX -j ACCEPT
$ iptables -A INPUT -p tcp --dport 10255 -j DROP
$ logout

... kubelet: extra_args: read-only-port: 10255

Could you tell me where to add this?

This is a potential security risk, be sure to firewall the access to it.

  # ...
  kubelet:
    extra_args:
      read-only-port: 10255

where should i add this

  --read-only-port int32

kubenetes1.12.0

The read-only port for the Kubelet to serve on with no authentication/authorization (set to 0 to disable) (default 10255) (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.)

So I'm facing this problem right now, Anyone can explain how to solve it further? I need to open 10255 for telegraf's K8S input plugin. I installed HA cluster using the rke method.

I updated the --source from the Kubernetes heapster deployment and it works, thank you @fanux

Was this page helpful?
0 / 5 - 0 ratings