doc-exports/docs/cce/umn/cce_faq_00321.html
Dong, Qiu Jian 86fb05065f CCE UMN for 24.2.0 version -20240428
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2024-06-10 08:19:07 +00:00

17 lines
1.9 KiB
HTML

<a name="cce_faq_00321"></a><a name="cce_faq_00321"></a>
<h1 class="topictitle1">How Do I Rectify the Error Reported When Running the kubectl top node Command?</h1>
<div id="body0000001281392577"><div class="section" id="cce_faq_00321__section7382121194919"><h4 class="sectiontitle">Symptom</h4><p id="cce_faq_00321__p89913411397">The error message "Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)" is displayed after the <strong id="cce_faq_00321__b7157947161910">kubectl top node</strong> command is executed.</p>
</div>
<div class="section" id="cce_faq_00321__section163021125155010"><h4 class="sectiontitle">Possible Causes</h4><p id="cce_faq_00321__p179321212616">"Error from server (ServiceUnavailable)" indicates that the cluster is not connected. In this case, you need to check whether the network between kubectl and the master node in the cluster is normal.</p>
</div>
<div class="section" id="cce_faq_00321__section1827515335914"><h4 class="sectiontitle">Solution</h4><ul id="cce_faq_00321__ul2555411182411"><li id="cce_faq_00321__li115553118241">If the kubectl command is executed outside the cluster, check whether the cluster is bound to an EIP. If yes, download the <strong id="cce_faq_00321__b141870481130">kubeconfig</strong> file and run the kubectl command again.</li><li id="cce_faq_00321__li19375152383315">If the kubectl command is executed on a node in the cluster, check the security group of the node and check whether the TCP/UDP communication between the worker node and master node is allowed. For details about the security group, see <a href="cce_faq_00265.html">How Can I Configure a Security Group Rule in a Cluster?</a>.</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_faq_00207.html">API &amp; kubectl FAQs</a></div>
</div>
</div>