Read-only-port 10255 on Kubernetes node didn`t exist

谁都会走 提交于 2021-02-11 08:01:57

问题


I have a problem, I need to collect metric data from read-only-port located on 10255, but unfortunately by using netstat I found that such port don't exists at all. Can somebody help with advise, how could I create such port on kubelet or how can I avoid this port for data collection?


回答1:


The kubelet requires a parameter to be set: --read-only-port=10255 (read more about kubelet)

If you are using kubeadm to bootstrap the cluster, you can use a config file to pass in for the kubelet (look for how to "Set Kubelet parameters via a config file")

If, for example, you are using kubespray, there's the kube_read_only_port variable (commented out by default).

Warning! This is not a good practice and the read-only-port is deprecated. There are ways to read from the secure port but this is another story.



来源:https://stackoverflow.com/questions/51762484/read-only-port-10255-on-kubernetes-node-didnt-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!