<p>I am new to the kubernetes world and I am currently stuck with figuring out how to enable endpoints for <code>kube-controller-manager</code> &amp; <code>kube-scheduler</code>. In some future, I'll be using the helm <code>kube-prometheus-stack</code> to scrape those endpoints for metrics. However, for now what would be the right approach to set up those endpoints?</p>
<pre><code>$  kubectl get ep  -n kube-system
NAME                                        ENDPOINTS                 AGE
kube-controller-manager                     &lt;none&gt;                    105d
kube-scheduler                              &lt;none&gt;                    105d
</code></pre>

MaryCoding
<ul>
<li><p>No need to create endpoints for <code>kube-controller-manage</code> and <code>kube-scheduler</code> because they use <code>hostNetwork</code> and uses ports <code>10257</code> and <code>10259</code> respectively.</p>
</li>
<li><p>you can verify it checking the manifests &quot;/etc/kubernetes/manifests/&quot; and netstat -nltp or ss -nltp on masternode</p>
</li>
</ul>
<pre><code>ss -nltp | grep kube
LISTEN   0         128                127.0.0.1:10257            0.0.0.0:*       users:((&quot;kube-controller&quot;,pid=50301,fd=7))
LISTEN   0         128                127.0.0.1:10259            0.0.0.0:*       users:((&quot;kube-scheduler&quot;,pid=50400,fd=7))
</code></pre>
<ul>
<li>so they should be accessible over &lt; masternodeip &gt;:&lt;10257/10259&gt;</li>
</ul>
