forked from docs/doc-exports
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>
618 lines
48 KiB
HTML
618 lines
48 KiB
HTML
<a name="MigrateNode"></a><a name="MigrateNode"></a>
|
|
|
|
<h1 class="topictitle1">Migrating a Node</h1>
|
|
<div id="body32001227"><div class="section" id="MigrateNode__section2485752354"><h4 class="sectiontitle">Function</h4><p id="MigrateNode__p1048620523519">This API is used to migrate a node from a specified cluster to another cluster (both clusters must in the same VPC). Physical nodes of the ECS service in a CCE Turbo cluster cannot be migrated.</p>
|
|
<div class="note" id="MigrateNode__note1448785211510"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="MigrateNode__p548885219519">The URL for cluster management is in the format of **https://Endpoint/uri, in which <em id="MigrateNode__i16488155218519">uri</em> indicates the resource path, that is, the path for API access.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="MigrateNode__section1448910521652"><h4 class="sectiontitle">URI</h4><p id="MigrateNode__p74898524510">PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/migrateto/{target_cluster_id}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__table194916529520" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="MigrateNode__row1249012521257"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="MigrateNode__p154911052450">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="MigrateNode__p16491652456">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="MigrateNode__p124917521159">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="MigrateNode__p194919522057">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row24901052752"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="MigrateNode__p134921952152">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="MigrateNode__p164927521056">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="MigrateNode__p1049213527513">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="MigrateNode__p174939527510">Project ID. For details about how to obtain the value, see <a href="cce_02_0271.html">How to Obtain Parameters in the API URI</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row1149055218520"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="MigrateNode__p1049310522512">cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="MigrateNode__p144935521855">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="MigrateNode__p0493152055">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="MigrateNode__p74947528510">Cluster ID. For details about how to obtain the value, see <a href="cce_02_0271.html">How to Obtain Parameters in the API URI</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row144904521354"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="MigrateNode__p1049405215517">target_cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="MigrateNode__p149435218519">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="MigrateNode__p649416521257">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="MigrateNode__p549575211517">Cluster ID. For details about how to obtain the value, see <a href="cce_02_0271.html">How to Obtain Parameters in the API URI</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="MigrateNode__section84951252254"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="MigrateNode__row114966521452"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="MigrateNode__p1949719527516">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="MigrateNode__p34979521453">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="MigrateNode__p1849755220511">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="MigrateNode__p10498352156">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row84962052258"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="MigrateNode__p1849885211514">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="MigrateNode__p2498145211513">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="MigrateNode__p1049810523513">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="MigrateNode__p154981652854">Message body type (format).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row1249617521259"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="MigrateNode__p1049912524516">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="MigrateNode__p1749912521351">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="MigrateNode__p1349905217519">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="MigrateNode__p144991552659">Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details, see <a href="cce_02_0004.html">API Usage Guidelines</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_request_MigrateNodesTask" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="MigrateNode__row650012521358"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="MigrateNode__p1050118521952">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="MigrateNode__p17501125215513">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="MigrateNode__p950210526517">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="MigrateNode__p135026521857">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row1350017526516"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="MigrateNode__p950219520516">apiVersion</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="MigrateNode__p75023521459">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="MigrateNode__p45031352852">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="MigrateNode__p195037522055">API version. The value is fixed at <strong id="MigrateNode__b25031352758">v3</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row2500125219516"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="MigrateNode__p155038521055">kind</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="MigrateNode__p115031852955">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="MigrateNode__p250315529516">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="MigrateNode__p115031521855">API type. The value is fixed at <strong id="MigrateNode__b25031652153">MigrateNodesTask</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row4501115218516"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="MigrateNode__p135049521259">spec</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="MigrateNode__p145042522055">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="MigrateNode__p20504185216520"><a href="#MigrateNode__en-us_topic_0000001467833433_request_MigrateNodesSpec">MigrateNodesSpec</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="MigrateNode__p1250415214513">Configuration data.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__en-us_topic_0000001467833433_request_MigrateNodesSpec"></a><a name="en-us_topic_0000001467833433_request_MigrateNodesSpec"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_request_MigrateNodesSpec" frame="border" border="1" rules="all"><caption><b>Table 4 </b>MigrateNodesSpec</caption><thead align="left"><tr id="MigrateNode__row5505352250"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="MigrateNode__p05061852855">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="MigrateNode__p14506652952">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="MigrateNode__p45061524511">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="MigrateNode__p20506125213510">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row1850517522518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="MigrateNode__p5506205211519">os</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="MigrateNode__p165060521056">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="MigrateNode__p3507852651">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="MigrateNode__p135078521451">Operating system type, which must be accurate to the version number. When <strong id="MigrateNode__b1250717521159">alpha.cce/NodeImageID</strong> is specified, the value of <strong id="MigrateNode__b85071452355">os</strong> must be the same as the OS of the custom image.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row15505552452"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="MigrateNode__p1350720526512">extendParam</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="MigrateNode__p950717524513">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="MigrateNode__p4508135213517"><a href="#MigrateNode__en-us_topic_0000001467833433_request_MigrateNodeExtendParam">MigrateNodeExtendParam</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="MigrateNode__p155086527511">Extended parameters for node migration.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row175054523513"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="MigrateNode__p950818527513">login</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="MigrateNode__p6508852651">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="MigrateNode__p250895216510"><a href="#MigrateNode__en-us_topic_0000001467833433_request_Login">Login</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="MigrateNode__p35082052854">Node login mode.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row172641348291"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="MigrateNode__p177598584263">runtime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="MigrateNode__p141807180297">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="MigrateNode__p2759658152612"><a href="#MigrateNode__request_Runtime">Runtime</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="MigrateNode__p114812717153">Container runtime configuration.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row950565218511"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="MigrateNode__p10508652056">nodes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="MigrateNode__p050865211517">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="MigrateNode__p1350917521516">Array of <a href="#MigrateNode__en-us_topic_0000001467833433_request_NodeItem">NodeItem</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="MigrateNode__p155091152251">List of nodes to be operated.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__en-us_topic_0000001467833433_request_MigrateNodeExtendParam"></a><a name="en-us_topic_0000001467833433_request_MigrateNodeExtendParam"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_request_MigrateNodeExtendParam" frame="border" border="1" rules="all"><caption><b>Table 5 </b>MigrateNodeExtendParam</caption><thead align="left"><tr id="MigrateNode__row17509105214510"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.1"><p id="MigrateNode__p551035215518">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.2"><p id="MigrateNode__p7510165218520">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.3"><p id="MigrateNode__p165106524517">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.5.2.5.1.4"><p id="MigrateNode__p1651075218510">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row115096521755"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="MigrateNode__p151017528513">maxPods</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="MigrateNode__p251017522511">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="MigrateNode__p251019522520">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="MigrateNode__p45113524513">Maximum number of pods that can be created on a node, including the default system pods. Value range: 16 to 256. This limit prevents the node from being overloaded of pods.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row1450915220515"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="MigrateNode__p651115215515">DockerLVMConfigOverride</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="MigrateNode__p1251125217516">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="MigrateNode__p155111252151">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="MigrateNode__p1651115525513">Docker data disk configuration item. (This parameter has been discarded. Use the <strong id="MigrateNode__b2051115521855">storage</strong> field instead.)</p>
|
|
<p id="MigrateNode__p7511452858">The disk type of the nodes to be migrated must be the same as that specified during node creation (that is, the value of <strong id="MigrateNode__b19511352250">diskType</strong> in <strong id="MigrateNode__b155112521155">DockerLVMConfigOverride</strong> must be the same as that specified during node creation). Ensure that the disk types of the nodes selected for a single API call are the same.</p>
|
|
<p id="MigrateNode__p145125524514">Example default configuration:</p>
|
|
<pre class="screen" id="MigrateNode__screen051216525517">"DockerLVMConfigOverride":"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear"</pre>
|
|
<p id="MigrateNode__p1951212521511">The following fields are included:</p>
|
|
<ul id="MigrateNode__ul55121552352"><li id="MigrateNode__li851213526517"><strong id="MigrateNode__b451213524518">userLV</strong> (optional): size of the user space, for example, <strong id="MigrateNode__b195121352950">vgpaas/20%VG</strong>.</li><li id="MigrateNode__li2512752359"><strong id="MigrateNode__b351217521753">userPath</strong> (optional): mount path of the user space, for example, <strong id="MigrateNode__b3512105216519">/home/wqt-test</strong>.</li><li id="MigrateNode__li16512105210515"><strong id="MigrateNode__b1151319524515">diskType</strong>: disk type. Currently, only <strong id="MigrateNode__b251316528519">evs</strong>, <strong id="MigrateNode__b851314521555">hdd</strong>, and <strong id="MigrateNode__b8513125210519">ssd</strong> are supported.</li><li id="MigrateNode__li351318523511"><strong id="MigrateNode__b851314521559">lvType</strong>: type of a logic volume. The value can be <strong id="MigrateNode__b135133528518">linear</strong> or <strong id="MigrateNode__b551312520512">striped</strong>.</li><li id="MigrateNode__li19513552355"><strong id="MigrateNode__b10513135213517">dockerThinpool</strong>: Docker space size, for example, <strong id="MigrateNode__b751335211515">vgpaas/60%VG</strong>.</li><li id="MigrateNode__li351365217515"><strong id="MigrateNode__b19513155219513">kubernetesLV</strong>: kubelet space size, for example, <strong id="MigrateNode__b75139521754">vgpaas/20%VG</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row750925220510"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="MigrateNode__p351325213516">alpha.cce/preInstall</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="MigrateNode__p125131952154">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="MigrateNode__p35142521855">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="MigrateNode__p851411527516">Pre-installation script.</p>
|
|
<div class="note" id="MigrateNode__note6514125219512"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="MigrateNode__p751475216516">The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64)</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row050995212510"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="MigrateNode__p1951417521956">alpha.cce/postInstall</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="MigrateNode__p115149522056">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="MigrateNode__p8514155216514">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="MigrateNode__p3514155219510">Post-installation script.</p>
|
|
<div class="note" id="MigrateNode__note1651514521656"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="MigrateNode__p95154521458">The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64)</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row135092052357"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="MigrateNode__p205151521258">alpha.cce/NodeImageID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="MigrateNode__p16515205219510">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="MigrateNode__p205159521156">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="MigrateNode__p115151952953">ID of the user image to run the target OS. When <strong id="MigrateNode__b95155524511">alpha.cce/NodeImageID</strong> is specified, the value of <strong id="MigrateNode__b251616521154">os</strong> must be the same as the OS of the custom image.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__en-us_topic_0000001467833433_request_Login"></a><a name="en-us_topic_0000001467833433_request_Login"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_request_Login" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Login</caption><thead align="left"><tr id="MigrateNode__row551635214512"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.1"><p id="MigrateNode__p1151614521518">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.2"><p id="MigrateNode__p1351655215516">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.3"><p id="MigrateNode__p175172529512">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.6.2.5.1.4"><p id="MigrateNode__p205171527516">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row18516352351"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="MigrateNode__p75177521510">sshKey</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="MigrateNode__p7517152052">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="MigrateNode__p20517205215514">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="MigrateNode__p12517952854">Name of the key pair used for login.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row19870244154814"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="MigrateNode__p2124826124214">userPassword</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="MigrateNode__p18124192684210">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="MigrateNode__p1912414264428">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="MigrateNode__p059411218363">Password used for node login.</p>
|
|
<div class="note" id="MigrateNode__note19491185043612"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="MigrateNode__p19491115003619">This field is not supported for the current version.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__request_Runtime"></a><a name="request_Runtime"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__request_Runtime" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Runtime</caption><thead align="left"><tr id="MigrateNode__row19766758122614"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.7.2.5.1.1"><p id="MigrateNode__p250345163211">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.7.2.5.1.2"><p id="MigrateNode__p250315503210">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.7.2.5.1.3"><p id="MigrateNode__p1503165153214">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.7.2.5.1.4"><p id="MigrateNode__p65031516321">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row13767165816269"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.1 "><p id="MigrateNode__p3767258202612">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.2 "><p id="MigrateNode__p1178559153219">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.3 "><p id="MigrateNode__p147676580264">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.7.2.5.1.4 "><p id="MigrateNode__p186251130143515">Container runtime:</p>
|
|
<ul id="MigrateNode__ul144616353359"><li id="MigrateNode__li24461935173510">Clusters of v1.25 or earlier:<strong id="MigrateNode__b157591453173518"> docker</strong>.</li><li id="MigrateNode__li13446153513517">Clusters of v1.25 or later: Container runtime varies with the OS. For nodes running EulerOS 2.5, the default container runtime is <strong id="MigrateNode__b12767111193614">docker</strong>. For nodes running other OSs, the default container runtime is <strong id="MigrateNode__b11786101853611">containerd</strong>.</li></ul>
|
|
<p id="MigrateNode__p1938015443310">Enumeration values:</p>
|
|
<ul id="MigrateNode__ul203801542334"><li id="MigrateNode__li1338012415338">docker</li><li id="MigrateNode__li1638024153312">containerd</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__en-us_topic_0000001467833433_request_NodeItem"></a><a name="en-us_topic_0000001467833433_request_NodeItem"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_request_NodeItem" frame="border" border="1" rules="all"><caption><b>Table 8 </b>NodeItem</caption><thead align="left"><tr id="MigrateNode__row452185210516"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.8.2.5.1.1"><p id="MigrateNode__p252213523518">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.8.2.5.1.2"><p id="MigrateNode__p165221452159">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.8.2.5.1.3"><p id="MigrateNode__p0522135217518">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.8.2.5.1.4"><p id="MigrateNode__p852217521156">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row1052111527518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="MigrateNode__p252220528518">uid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="MigrateNode__p185228521253">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="MigrateNode__p652255213515">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="MigrateNode__p45221152857">Node ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="MigrateNode__section1952465215517"><h4 class="sectiontitle">Response Parameters</h4><p id="MigrateNode__p1352518528515"><strong id="MigrateNode__b205251852259">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_response_MigrateNodesTask" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="MigrateNode__row115259521851"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="MigrateNode__p35267521256">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="MigrateNode__p1252635215516">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="MigrateNode__p6526852853">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row1052520521357"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="MigrateNode__p125266524511">apiVersion</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="MigrateNode__p11526165214510">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="MigrateNode__p7527452257">API version. The value is fixed at <strong id="MigrateNode__b352714521051">v3</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row45258521154"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="MigrateNode__p15274521352">kind</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="MigrateNode__p352719522514">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="MigrateNode__p852716528510">API type. The value is fixed at <strong id="MigrateNode__b652735212511">MigrateNodesTask</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row16525125216514"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="MigrateNode__p115278521854">spec</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="MigrateNode__p7528115217518"><a href="#MigrateNode__en-us_topic_0000001467833433_response_MigrateNodesSpec">MigrateNodesSpec</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="MigrateNode__p10528652759">Configuration data.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row155255529517"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="MigrateNode__p25281552656">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="MigrateNode__p5528552257"><a href="#MigrateNode__en-us_topic_0000001467833433_response_TaskStatus">TaskStatus</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="MigrateNode__p12528125218514">Job status.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__en-us_topic_0000001467833433_response_MigrateNodesSpec"></a><a name="en-us_topic_0000001467833433_response_MigrateNodesSpec"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_response_MigrateNodesSpec" frame="border" border="1" rules="all"><caption><b>Table 10 </b>MigrateNodesSpec</caption><thead align="left"><tr id="MigrateNode__row652918525518"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="MigrateNode__p652935219512">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="MigrateNode__p1552913526516">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="MigrateNode__p157302521513">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row1529352856"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="MigrateNode__p1673010529519">os</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="MigrateNode__p16730115213519">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="MigrateNode__p1673025218516">Operating system type, which must be accurate to the version number. When <strong id="MigrateNode__b3730135211517">alpha.cce/NodeImageID</strong> is specified, the value of <strong id="MigrateNode__b973045211517">os</strong> must be the same as the OS of the custom image.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row1052995217510"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="MigrateNode__p1973025212517">extendParam</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="MigrateNode__p873019521254"><a href="#MigrateNode__en-us_topic_0000001467833433_response_MigrateNodeExtendParam">MigrateNodeExtendParam</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="MigrateNode__p573020521451">Extended parameters for node migration.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row12529115216512"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="MigrateNode__p67301852650">login</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="MigrateNode__p47305521510"><a href="#MigrateNode__en-us_topic_0000001467833433_response_Login">Login</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="MigrateNode__p1873016521454">Node login mode.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row9529852853"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="MigrateNode__p1573019521353">nodes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="MigrateNode__p1873011527520">Array of <a href="#MigrateNode__en-us_topic_0000001467833433_response_NodeItem">NodeItem</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="MigrateNode__p1873095220516">List of nodes to be operated.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__en-us_topic_0000001467833433_response_MigrateNodeExtendParam"></a><a name="en-us_topic_0000001467833433_response_MigrateNodeExtendParam"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_response_MigrateNodeExtendParam" frame="border" border="1" rules="all"><caption><b>Table 11 </b>MigrateNodeExtendParam</caption><thead align="left"><tr id="MigrateNode__row1653210521052"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="MigrateNode__p8731852254">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="MigrateNode__p27311352957">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="MigrateNode__p77311752657">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row1453213528517"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="MigrateNode__p1473119527511">maxPods</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="MigrateNode__p1731752351">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="MigrateNode__p107316523518">Maximum number of pods that can be created on a node, including the default system pods. Value range: 16 to 256. This limit prevents the node from being overloaded of pods.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row75321521056"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="MigrateNode__p0731145217514">DockerLVMConfigOverride</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="MigrateNode__p173119526518">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="MigrateNode__p1073114521951">Docker data disk configuration item. (This parameter has been discarded. Use the <strong id="MigrateNode__b2731135215518">storage</strong> field instead.)</p>
|
|
<p id="MigrateNode__p1873118521156">The disk type of the nodes to be migrated must be the same as that specified during node creation (that is, the value of <strong id="MigrateNode__b47315521557">diskType</strong> in <strong id="MigrateNode__b197311952552">DockerLVMConfigOverride</strong> must be the same as that specified during node creation). Ensure that the disk types of the nodes selected for a single API call are the same.</p>
|
|
<p id="MigrateNode__p13731105218515">Example default configuration:</p>
|
|
<pre class="screen" id="MigrateNode__screen127311452952">"DockerLVMConfigOverride":"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear"</pre>
|
|
<p id="MigrateNode__p14731552859">The following fields are included:</p>
|
|
<ul id="MigrateNode__ul2731135216513"><li id="MigrateNode__li167317521356"><strong id="MigrateNode__b17315525517">userLV</strong> (optional): size of the user space, for example, <strong id="MigrateNode__b1673145215514">vgpaas/20%VG</strong>.</li><li id="MigrateNode__li573175213513"><strong id="MigrateNode__b1473114527512">userPath</strong> (optional): mount path of the user space, for example, <strong id="MigrateNode__b27319521251">/home/wqt-test</strong>.</li><li id="MigrateNode__li273115521058"><strong id="MigrateNode__b87316525511">diskType</strong>: disk type. Currently, only <strong id="MigrateNode__b1173120528513">evs</strong>, <strong id="MigrateNode__b18731135219510">hdd</strong>, and <strong id="MigrateNode__b107319521953">ssd</strong> are supported.</li><li id="MigrateNode__li973110529517"><strong id="MigrateNode__b2731195212517">lvType</strong>: type of a logic volume. The value can be <strong id="MigrateNode__b1173195217515">linear</strong> or <strong id="MigrateNode__b13731145219512">striped</strong>.</li><li id="MigrateNode__li157313521511"><strong id="MigrateNode__b473185220517">dockerThinpool</strong>: Docker space size, for example, <strong id="MigrateNode__b77319524515">vgpaas/60%VG</strong>.</li><li id="MigrateNode__li187311852452"><strong id="MigrateNode__b87318522515">kubernetesLV</strong>: kubelet space size, for example, <strong id="MigrateNode__b15731852454">vgpaas/20%VG</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row165321052255"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="MigrateNode__p57311852550">alpha.cce/preInstall</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="MigrateNode__p9731125216515">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="MigrateNode__p1073113526519">Pre-installation script.</p>
|
|
<div class="note" id="MigrateNode__note6731155218513"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="MigrateNode__p1973115521159">The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64)</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row1853216521358"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="MigrateNode__p573116521058">alpha.cce/postInstall</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="MigrateNode__p147325520516">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="MigrateNode__p37327521558">Post-installation script.</p>
|
|
<div class="note" id="MigrateNode__note37321523519"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="MigrateNode__p187326521959">The input value must be Base64-encoded. (Command: echo -n "Content to be encoded" | base64)</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row165321152352"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="MigrateNode__p15732115211510">alpha.cce/NodeImageID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="MigrateNode__p4732752552">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="MigrateNode__p1732252158">ID of the user image to run the target OS. When <strong id="MigrateNode__b15732115213514">alpha.cce/NodeImageID</strong> is specified, the value of <strong id="MigrateNode__b1773214521351">os</strong> must be the same as the OS of the custom image.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__en-us_topic_0000001467833433_response_Login"></a><a name="en-us_topic_0000001467833433_response_Login"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_response_Login" frame="border" border="1" rules="all"><caption><b>Table 12 </b>Login</caption><thead align="left"><tr id="MigrateNode__row14536752057"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.1"><p id="MigrateNode__p6732205217514">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.2"><p id="MigrateNode__p5732352554">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.6.2.4.1.3"><p id="MigrateNode__p2073213521550">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row7536752351"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="MigrateNode__p157321252657">sshKey</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="MigrateNode__p1773220527517">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="MigrateNode__p9732852254">Name of the key pair used for login.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="MigrateNode__row18901523483"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="MigrateNode__p15701852174811">userPassword</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="MigrateNode__p87095234813">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="MigrateNode__p10701152174812">Password used for node login.</p>
|
|
<div class="note" id="MigrateNode__note207095294817"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="MigrateNode__p117095218485">This field is not supported for the current version.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__en-us_topic_0000001467833433_response_NodeItem"></a><a name="en-us_topic_0000001467833433_response_NodeItem"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_response_NodeItem" frame="border" border="1" rules="all"><caption><b>Table 13 </b>NodeItem</caption><thead align="left"><tr id="MigrateNode__row16547125218513"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="MigrateNode__p187331652455">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="MigrateNode__p4733165214511">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="MigrateNode__p873312521756">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row20547155219514"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="MigrateNode__p1373314525510">uid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="MigrateNode__p37339529519">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="MigrateNode__p167337526510">Node ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="MigrateNode__en-us_topic_0000001467833433_response_TaskStatus"></a><a name="en-us_topic_0000001467833433_response_TaskStatus"></a><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_response_TaskStatus" frame="border" border="1" rules="all"><caption><b>Table 14 </b>TaskStatus</caption><thead align="left"><tr id="MigrateNode__row05491252750"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.1"><p id="MigrateNode__p2733125211513">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.2"><p id="MigrateNode__p173310521518">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.8.2.4.1.3"><p id="MigrateNode__p07336522510">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row454915526518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="MigrateNode__p7733252254">jobID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="MigrateNode__p1573385218519">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="MigrateNode__p873319522518">Job ID, which is used by the caller to query the job progress.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="MigrateNode__section1373314522518"><h4 class="sectiontitle">Example Requests</h4><ul id="MigrateNode__ul97330521519"><li id="MigrateNode__li15733752758">Migrating a Node<pre class="screen" id="MigrateNode__screen37335521957">PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/migrateto/{target_cluster_id}
|
|
|
|
{
|
|
"spec" : {
|
|
"os" : "EulerOS 2.5",
|
|
"login" : {
|
|
"sshKey" : "KeyPair-001"
|
|
},
|
|
"nodes" : [ {
|
|
"uid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
}, {
|
|
"uid" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
|
|
} ]
|
|
}
|
|
}</pre>
|
|
</li><li id="MigrateNode__li1773345212513">Migrating a node using a specified user image ID<pre class="screen" id="MigrateNode__screen14733155210518">PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/migrateto/{target_cluster_id}
|
|
|
|
{
|
|
"spec" : {
|
|
"os" : "EulerOS 2.5",
|
|
"extendParam" : {
|
|
"alpha.cce/NodeImageID" : "cc697ad7-9563-11e8-8ea7-0255ac106311"
|
|
},
|
|
"login" : {
|
|
"sshKey" : "KeyPair-001"
|
|
},
|
|
"nodes" : [ {
|
|
"uid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
}, {
|
|
"uid" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
|
|
} ]
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="MigrateNode__section11734852650"><h4 class="sectiontitle">Example Responses</h4><p id="MigrateNode__p1173435212520"><strong id="MigrateNode__b9734352554">Status code: 200</strong></p>
|
|
<p id="MigrateNode__p67341520517">The job for migrating a node from a specified cluster to another cluster is successfully delivered.</p>
|
|
<pre class="screen" id="MigrateNode__screen17347521155">{
|
|
"spec" : {
|
|
"os" : "EulerOS 2.5",
|
|
"login" : {
|
|
"sshKey" : "KeyPair-001"
|
|
},
|
|
"nodes" : [ {
|
|
"uid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
}, {
|
|
"uid" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
|
|
} ]
|
|
},
|
|
"status" : {
|
|
"jobID" : "2ec9b78d-9368-46f3-8f29-d1a95622a568"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="MigrateNode__section1673413521658"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="MigrateNode__en-us_topic_0000001467833433_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="MigrateNode__row1155517521518"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="MigrateNode__p373455212518">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="MigrateNode__p107346521951">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="MigrateNode__row45551752155"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="MigrateNode__p1273411521257">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="MigrateNode__p273417522516">The job for migrating a node from a specified cluster to another cluster is successfully delivered.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="MigrateNode__section1673417521758"><h4 class="sectiontitle">Error Codes</h4><p id="MigrateNode__p57341652153">See <a href="cce_02_0250.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_02_0092.html">Cluster Management</a></div>
|
|
</div>
|
|
</div>
|
|
|