Kubernetes节点上的只读端口10255不存在 [英] Read-only-port 10255 on Kubernetes node didn`t exist

查看:679
本文介绍了Kubernetes节点上的只读端口10255不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我需要从位于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).

警告!这不是一个好习惯,并且已弃用只读端口.有多种方法可以从安全端口读取信息,但这是另一回事了.

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.

这篇关于Kubernetes节点上的只读端口10255不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆