<p>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?</p>

<p>The <em>kubelet</em> requires a parameter to be set: <strong>--read-only-port=10255</strong> (<a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/" rel="nofollow noreferrer">read more about kubelet</a>) </p>

<p>If you are using <em>kubeadm</em> to bootstrap the cluster, you can use a config file to pass in for the kubelet (look for how to <a href="https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/" rel="nofollow noreferrer">"Set Kubelet parameters via a config file"</a>)</p>

<p>If, for example, you are using <a href="https://github.com/kubernetes-incubator/kubespray" rel="nofollow noreferrer">kubespray</a>, there's the <strong>kube_read_only_port</strong> variable (commented out by default).</p>

<blockquote>
  <p>Warning! This is not a good practice and the <a href="https://github.com/kubernetes/kubeadm/issues/732" rel="nofollow noreferrer">read-only-port is deprecated</a>. There are ways to read from the secure port but this is another story.</p>
</blockquote>
