doc-exports/docs/cce/api-ref/cce_02_0409.html
qiujiandong1 bf8cd71a69 CCE API update -20241024 Version
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2024-11-27 11:46:34 +00:00

421 lines
33 KiB
HTML

<a name="cce_02_0409"></a><a name="cce_02_0409"></a>
<h1 class="topictitle1">CCE Node Problem Detector</h1>
<div id="body32001227"><div class="section" id="cce_02_0409__en-us_topic_0000001834687085_section5841216112318"><h4 class="sectiontitle">Add-on Overview</h4><p id="cce_02_0409__en-us_topic_0000001834687085_p1098419813271">CCE Node Problem Detector (node-problem-detector, NPD) is an add-on that monitors abnormal events of cluster nodes and connects to a third-party monitoring platform. It is a daemon running on each node. It collects node issues from different daemons and reports them to the API server. It can run as a DaemonSet or a daemon.</p>
</div>
<div class="section" id="cce_02_0409__en-us_topic_0000001834687085_section13564204912269"><h4 class="sectiontitle">Add-on Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0409__en-us_topic_0000001834687085_table7237514152812" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="cce_02_0409__en-us_topic_0000001834687085_row152371514142818"><th align="left" class="cellrowborder" valign="top" width="16.650000000000002%" id="mcps1.3.2.2.2.5.1.1"><p id="cce_02_0409__en-us_topic_0000001834687085_p8237101412810">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.61%" id="mcps1.3.2.2.2.5.1.2"><p id="cce_02_0409__en-us_topic_0000001834687085_p4237131416284">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.919999999999998%" id="mcps1.3.2.2.2.5.1.3"><p id="cce_02_0409__en-us_topic_0000001834687085_p15237171413287">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48.82%" id="mcps1.3.2.2.2.5.1.4"><p id="cce_02_0409__en-us_topic_0000001834687085_p1237171432815">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="cce_02_0409__en-us_topic_0000001834687085_row4237101416283"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.2.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p3237141418281">basic</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.2.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p723710140287">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.2.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1237111472817">object</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.2.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1723741413286">Basic configuration parameters, which do not need to be specified</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row112371214112815"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.2.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p12237814102816">flavor</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.2.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p162375146285">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.2.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p523731410289"><a href="#cce_02_0409__en-us_topic_0000001834687085_table8149147344">Table 2</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.2.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p423721402811">Flavor parameters</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row5237914182816"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.2.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p112371214132813">custom</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.2.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p192371914182813">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.2.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p4237181416289"><a href="#cce_02_0409__en-us_topic_0000001834687085_table109631116113412">Table 3</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.2.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p02371514192810">Custom parameters</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="cce_02_0409__en-us_topic_0000001834687085_table8149147344"></a><a name="en-us_topic_0000001834687085_table8149147344"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0409__en-us_topic_0000001834687085_table8149147344" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Configuration of flavor</caption><thead align="left"><tr id="cce_02_0409__en-us_topic_0000001834687085_row2014214123415"><th align="left" class="cellrowborder" valign="top" width="16.650000000000002%" id="mcps1.3.2.3.2.5.1.1"><p id="cce_02_0409__en-us_topic_0000001834687085_p11141314163419">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.61%" id="mcps1.3.2.3.2.5.1.2"><p id="cce_02_0409__en-us_topic_0000001834687085_p1314121443418">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.919999999999998%" id="mcps1.3.2.3.2.5.1.3"><p id="cce_02_0409__en-us_topic_0000001834687085_p201412148342">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48.82%" id="mcps1.3.2.3.2.5.1.4"><p id="cce_02_0409__en-us_topic_0000001834687085_p101414142344">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="cce_02_0409__en-us_topic_0000001834687085_row121471493417"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.3.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p453114559345">description</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.3.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p614121423419">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.3.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1114114143415">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.3.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p18144148344">Add-on description</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row1614101463413"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.3.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p18530165511346">name</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.3.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p31451413342">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.3.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p20142143343">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.3.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1314314143410">Add-on specification name. The value is fixed at <strong id="cce_02_0409__en-us_topic_0000001834687085_b5169420968153">Single-instance</strong>.</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row1514131419347"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.3.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p85051552340">replicas</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.3.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1014114183417">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.3.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p16141714163415">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.3.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p514714143416">Number of pods. The default value is <strong id="cce_02_0409__en-us_topic_0000001834687085_b684110288829">1</strong>.</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row1320482115386"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.3.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p6204221103813">resources</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.3.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p14204122123813">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.3.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p15204921153814"><a href="#cce_02_0409__en-us_topic_0000001834687085_table136520220346">resources</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.3.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1520482113810">Container resource (CPU and memory) quotas</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="cce_02_0409__en-us_topic_0000001834687085_table109631116113412"></a><a name="en-us_topic_0000001834687085_table109631116113412"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0409__en-us_topic_0000001834687085_table109631116113412" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Configuration of custom</caption><thead align="left"><tr id="cce_02_0409__en-us_topic_0000001834687085_row1696361663418"><th align="left" class="cellrowborder" valign="top" width="16.650000000000002%" id="mcps1.3.2.4.2.5.1.1"><p id="cce_02_0409__en-us_topic_0000001834687085_p79633167341">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.66%" id="mcps1.3.2.4.2.5.1.2"><p id="cce_02_0409__en-us_topic_0000001834687085_p139631416173412">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.68%" id="mcps1.3.2.4.2.5.1.3"><p id="cce_02_0409__en-us_topic_0000001834687085_p17963111616348">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="47.010000000000005%" id="mcps1.3.2.4.2.5.1.4"><p id="cce_02_0409__en-us_topic_0000001834687085_p1696351619347">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="cce_02_0409__en-us_topic_0000001834687085_row417085302420"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.4.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p181701353132411">feature_gate</p>
</td>
<td class="cellrowborder" valign="top" width="9.66%" headers="mcps1.3.2.4.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p4170175310247">No</p>
</td>
<td class="cellrowborder" valign="top" width="26.68%" headers="mcps1.3.2.4.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p817045317247">String</p>
</td>
<td class="cellrowborder" valign="top" width="47.010000000000005%" headers="mcps1.3.2.4.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p117015320242">Feature gate, which is used to enable the beta features</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row1152394411331"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.4.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1652416449335">multiAZBalance</p>
</td>
<td class="cellrowborder" valign="top" width="9.66%" headers="mcps1.3.2.4.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p652413449334">No</p>
</td>
<td class="cellrowborder" valign="top" width="26.68%" headers="mcps1.3.2.4.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p205244447334">Bool</p>
</td>
<td class="cellrowborder" valign="top" width="47.010000000000005%" headers="mcps1.3.2.4.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p13524944153312">Multi AZ deployment</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row11375164715333"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.4.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p15375174718336">multiAZEnabled</p>
</td>
<td class="cellrowborder" valign="top" width="9.66%" headers="mcps1.3.2.4.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p13688163993616">No</p>
</td>
<td class="cellrowborder" valign="top" width="26.68%" headers="mcps1.3.2.4.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p17375347163319">Bool</p>
</td>
<td class="cellrowborder" valign="top" width="47.010000000000005%" headers="mcps1.3.2.4.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1446315122917">Whether to deploy the add-on pods in multiple AZs. The default value is <strong id="cce_02_0409__en-us_topic_0000001834687085_b1051661117814">false</strong>. If this parameter is set to <strong id="cce_02_0409__en-us_topic_0000001834687085_b551620112087">true</strong>, cross-AZ deployment is forcibly performed. If this parameter is set to <strong id="cce_02_0409__en-us_topic_0000001834687085_b1951618111283">false</strong>, cross-AZ deployment is preferred.</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row25991966340"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.4.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p36007618343">npc</p>
</td>
<td class="cellrowborder" valign="top" width="9.66%" headers="mcps1.3.2.4.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p560012633419">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="26.68%" headers="mcps1.3.2.4.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p126004653417">object <a href="#cce_02_0409__en-us_topic_0000001834687085_table382419372029">Table 5</a></p>
</td>
<td class="cellrowborder" valign="top" width="47.010000000000005%" headers="mcps1.3.2.4.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p156001613348">node-problem-controller configuration</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row13601161819342"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.4.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p6601131813340">tolerations</p>
</td>
<td class="cellrowborder" valign="top" width="9.66%" headers="mcps1.3.2.4.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p260171813411">No</p>
</td>
<td class="cellrowborder" valign="top" width="26.68%" headers="mcps1.3.2.4.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1360181815341">List&lt;Object&gt; <a href="#cce_02_0409__en-us_topic_0000001834687085_table31791231173618">Table 7</a></p>
</td>
<td class="cellrowborder" valign="top" width="47.010000000000005%" headers="mcps1.3.2.4.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p186016180346">Tolerations of the add-on</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row17787310135717"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.4.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p26668145571">node_match_expressions</p>
</td>
<td class="cellrowborder" valign="top" width="9.66%" headers="mcps1.3.2.4.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1066661410575">No</p>
</td>
<td class="cellrowborder" valign="top" width="26.68%" headers="mcps1.3.2.4.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p19666151405715">List&lt;Object&gt; <a href="#cce_02_0409__en-us_topic_0000001834687085_table31791231173618">Table 7</a></p>
</td>
<td class="cellrowborder" valign="top" width="47.010000000000005%" headers="mcps1.3.2.4.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p0666141412576">Node affinity configuration of the add-on</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="cce_02_0409__en-us_topic_0000001834687085_table136520220346"></a><a name="en-us_topic_0000001834687085_table136520220346"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0409__en-us_topic_0000001834687085_table136520220346" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Data structure of the resources field</caption><thead align="left"><tr id="cce_02_0409__en-us_topic_0000001834687085_row665212223419"><th align="left" class="cellrowborder" valign="top" width="16.650000000000002%" id="mcps1.3.2.5.2.5.1.1"><p id="cce_02_0409__en-us_topic_0000001834687085_p206521822183413">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.61%" id="mcps1.3.2.5.2.5.1.2"><p id="cce_02_0409__en-us_topic_0000001834687085_p7652202219346">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.919999999999998%" id="mcps1.3.2.5.2.5.1.3"><p id="cce_02_0409__en-us_topic_0000001834687085_p465212233417">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48.82%" id="mcps1.3.2.5.2.5.1.4"><p id="cce_02_0409__en-us_topic_0000001834687085_p12652132216348">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="cce_02_0409__en-us_topic_0000001834687085_row1965252203413"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.5.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p290761215395">limitsCpu</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.5.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p165217221342">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.5.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p024818327510">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.5.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p950122712488">CPU size limit (unit: m)</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row1265362211348"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.5.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p199071412173919">limitsMem</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.5.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p965319224347">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.5.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p22481532185116">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.5.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p11653822173411">Memory size limit (unit: Mi)</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row16121539104016"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.5.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p126126399406">name</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.5.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p126121839134010">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.5.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p132481322511">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.5.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p3612139114012">Add-on name. The value is fixed at <strong id="cce_02_0409__en-us_topic_0000001834687085_b11246161463115">custom-resources</strong>.</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row113481236124011"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.5.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p9348133617407">requestsCpu</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.5.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p134893611405">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.5.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p192481532205113">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.5.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p3348153617405">Requested CPU size (unit: m)</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row1665362213412"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.5.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p129061012153914">requestsMem</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.5.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p36531122163418">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.5.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p12248193210518">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.5.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p565362293414">Requested memory size (unit: Mi)</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="cce_02_0409__en-us_topic_0000001834687085_table382419372029"></a><a name="en-us_topic_0000001834687085_table382419372029"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0409__en-us_topic_0000001834687085_table382419372029" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Data structure of the npc field</caption><thead align="left"><tr id="cce_02_0409__en-us_topic_0000001834687085_row78247374217"><th align="left" class="cellrowborder" valign="top" width="16.650000000000002%" id="mcps1.3.2.6.2.5.1.1"><p id="cce_02_0409__en-us_topic_0000001834687085_p482415371020">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.61%" id="mcps1.3.2.6.2.5.1.2"><p id="cce_02_0409__en-us_topic_0000001834687085_p18824037327">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.919999999999998%" id="mcps1.3.2.6.2.5.1.3"><p id="cce_02_0409__en-us_topic_0000001834687085_p1382412371523">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48.82%" id="mcps1.3.2.6.2.5.1.4"><p id="cce_02_0409__en-us_topic_0000001834687085_p682419371529">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="cce_02_0409__en-us_topic_0000001834687085_row188244371425"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.6.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1174172915413">maxTaintedNode</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.6.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1482483719214">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.6.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p198241637824">String or Int</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.6.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p7213237145">The maximum number of nodes that NPC can add taints to when a single fault occurs on multiple nodes for minimizing impact.</p>
<p id="cce_02_0409__en-us_topic_0000001834687085_p221311371542">The value can be in int or percentage format.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0409__en-us_topic_0000001834687085_table1347114825310" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Taints and tolerations</caption><thead align="left"><tr id="cce_02_0409__en-us_topic_0000001834687085_row9473482539"><th align="left" class="cellrowborder" valign="top" width="16.650000000000002%" id="mcps1.3.2.7.2.5.1.1"><p id="cce_02_0409__en-us_topic_0000001834687085_p104724815313">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.61%" id="mcps1.3.2.7.2.5.1.2"><p id="cce_02_0409__en-us_topic_0000001834687085_p19470485531">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.919999999999998%" id="mcps1.3.2.7.2.5.1.3"><p id="cce_02_0409__en-us_topic_0000001834687085_p34734811535">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48.82%" id="mcps1.3.2.7.2.5.1.4"><p id="cce_02_0409__en-us_topic_0000001834687085_p2474480532">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="cce_02_0409__en-us_topic_0000001834687085_row647174819534"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.7.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p3471148185311">key</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.7.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p847448195311">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.7.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1947348195313">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.7.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p164724855315">Taint key</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row847194811531"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.7.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p134784855312">effect</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.7.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p5477482533">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.7.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p14764855311">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.7.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p44864815318">Taint policy</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row12484488538"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.7.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1848114885312">operator</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.7.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1648104885318">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.7.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p44814812536">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.7.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p2481948105319">Operator</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row1486486535"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.7.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p114834819538">tolerationSeconds</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.7.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p20481648185311">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.7.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p2482048205314">Int</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.7.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p548114817532">Toleration time window</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="cce_02_0409__en-us_topic_0000001834687085_table31791231173618"></a><a name="en-us_topic_0000001834687085_table31791231173618"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0409__en-us_topic_0000001834687085_table31791231173618" frame="border" border="1" rules="all"><caption><b>Table 7 </b>nodeMatchExpresssion node affinity</caption><thead align="left"><tr id="cce_02_0409__en-us_topic_0000001834687085_row6179331173619"><th align="left" class="cellrowborder" valign="top" width="16.650000000000002%" id="mcps1.3.2.8.2.5.1.1"><p id="cce_02_0409__en-us_topic_0000001834687085_p117973103617">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.61%" id="mcps1.3.2.8.2.5.1.2"><p id="cce_02_0409__en-us_topic_0000001834687085_p17179531173613">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.919999999999998%" id="mcps1.3.2.8.2.5.1.3"><p id="cce_02_0409__en-us_topic_0000001834687085_p11179153117366">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48.82%" id="mcps1.3.2.8.2.5.1.4"><p id="cce_02_0409__en-us_topic_0000001834687085_p61791031123619">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="cce_02_0409__en-us_topic_0000001834687085_row3179173153619"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.8.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p5179183111368">key</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.8.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p6179183120365">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.8.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p131791131203617">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.8.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p15179203113619">Taint key</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row2045225205012"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.8.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p45111102518">values</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.8.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p18453135215020">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.8.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p9453175210501">List&lt;String&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.8.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p74531952125010">Node affinity name</p>
</td>
</tr>
<tr id="cce_02_0409__en-us_topic_0000001834687085_row01939555502"><td class="cellrowborder" valign="top" width="16.650000000000002%" headers="mcps1.3.2.8.2.5.1.1 "><p id="cce_02_0409__en-us_topic_0000001834687085_p21934551504">operator</p>
</td>
<td class="cellrowborder" valign="top" width="17.61%" headers="mcps1.3.2.8.2.5.1.2 "><p id="cce_02_0409__en-us_topic_0000001834687085_p1419312552501">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.919999999999998%" headers="mcps1.3.2.8.2.5.1.3 "><p id="cce_02_0409__en-us_topic_0000001834687085_p12193155585018">String</p>
</td>
<td class="cellrowborder" valign="top" width="48.82%" headers="mcps1.3.2.8.2.5.1.4 "><p id="cce_02_0409__en-us_topic_0000001834687085_p319365585015">Operator</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="cce_02_0409__en-us_topic_0000001834687085_section5790442114119"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="cce_02_0409__en-us_topic_0000001834687085_screen17131195014294">{
"kind": "Addon",
"apiVersion": "v3",
"metadata": {
"annotations": {
"addon.install/type": "install"
}
},
"spec": {
"clusterID": "b78fb690-b82c-11ee-83cf-0255ac100b0f",
"version": "1.18.48",
"addonTemplateName": "npd",
"values": {
"basic": {
"image_version": "1.18.48",
"swr_addr": "***",
"swr_user": "***",
"rbac_enabled": true,
"cluster_version": "v1.23"
},
"flavor": {
"description": "custom resources",
"name": "custom-resources",
"replicas": 2,
"resources": [
{
"limitsCpu": "100m",
"limitsMem": "300Mi",
"name": "node-problem-controller",
"requestsCpu": "30m",
"requestsMem": "100Mi"
},
{
"limitsCpu": "100m",
"limitsMem": "300Mi",
"name": "node-problem-detector",
"requestsCpu": "30m",
"requestsMem": "100Mi"
}
],
"category": [
"CCE",
"Turbo"
]
},
"custom": {
"annotations": {},
"common": {},
"feature_gates": "",
"multiAZBalance": false,
"multiAZEnabled": false,
"node_match_expressions": [],
"npc": {
"maxTaintedNode": "10%"
},
"tolerations": [
{
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 60
},
{
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 60
}
]
}
}
}
}</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_02_0366.html">Add-on Instance Parameters</a></div>
</div>
</div>