问题描述
我有一个问题,我需要从位于10255的只读端口收集度量标准数据,但是不幸的是,通过使用netstat,我发现该端口根本不存在.有人可以提供建议吗,如何在kubelet上创建此类端口,或者如何避免使用该端口进行数据收集?
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?
推荐答案
kubelet 需要设置一个参数:-read-only-port = 10255 ( 了解有关kubelet的更多信息)
The kubelet requires a parameter to be set: --read-only-port=10255 (read more about kubelet)
如果您正在使用 kubeadm 引导集群,则可以使用配置文件为kubelet传入(查找如何">通过配置文件设置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")
例如,如果您使用的是 kubespray ,则有 kube_read_only_port 变量(默认情况下为注释).
If, for example, you are using kubespray, there's the kube_read_only_port variable (commented out by default).
这篇关于Kubernetes节点上的只读端口10255不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!