Files
doc-exports/docs/ucs/umn/ucs_01_0281.html
qiujiandong1 0a674cd795 UCS UMN initial update 20250523 version
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2026-01-13 13:39:08 +00:00

53 lines
7.5 KiB
HTML

<a name="ucs_01_0281"></a><a name="ucs_01_0281"></a>
<h1 class="topictitle1">Namespaces</h1>
<div id="body0000001503285328"><p id="ucs_01_0281__p9108181953712">A namespace is an abstract integration of a group of resources and objects in a cluster. Namespace-level resource quotas limit the amount of resources available to teams or projects that use the same cluster.</p>
<div class="section" id="ucs_01_0281__section20381629121511"><a name="ucs_01_0281__section20381629121511"></a><a name="section20381629121511"></a><h4 class="sectiontitle">Creating a Namespace</h4><ol id="ucs_01_0281__ol125221816185720"><li id="ucs_01_0281__li135792781317"><span>Log in to the UCS console. In the navigation pane, choose <span class="uicontrol" id="ucs_01_0281__uicontrol151238861995729"><b>Fleets</b></span>.</span></li><li id="ucs_01_0281__li1175242111413"><span>On the <span class="uicontrol" id="ucs_01_0281__uicontrol1510541616416"><b>Fleets</b></span> tab, click the name of the federation-enabled fleet to access its details page.</span></li><li id="ucs_01_0281__li15523916125711"><span>Choose <span class="uicontrol" id="ucs_01_0281__uicontrol6971155119116"><b>Namespaces</b></span> in the navigation pane and click <strong id="ucs_01_0281__b79721151818">Create Namespace</strong> in the upper right corner.</span></li><li id="ucs_01_0281__li952361619571"><span>Set namespace parameters based on <a href="#ucs_01_0281__table5523151617575">Table 1</a>.</span><p>
<div class="tablenoborder"><a name="ucs_01_0281__table5523151617575"></a><a name="table5523151617575"></a><table cellpadding="4" cellspacing="0" summary="" id="ucs_01_0281__table5523151617575" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters for creating a namespace</caption><thead align="left"><tr id="ucs_01_0281__row145240162572"><th align="left" class="cellrowborder" valign="top" width="28.000000000000004%" id="mcps1.3.2.2.4.2.1.2.3.1.1"><p id="ucs_01_0281__p105244162578">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="72%" id="mcps1.3.2.2.4.2.1.2.3.1.2"><p id="ucs_01_0281__p14525016155719">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ucs_01_0281__row835519426223"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="ucs_01_0281__p1964374702211">Name</p>
</td>
<td class="cellrowborder" valign="top" width="72%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="ucs_01_0281__p14644047132219">Name of a namespace, which must be unique in a cluster.</p>
</td>
</tr>
<tr id="ucs_01_0281__row20525816195710"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="ucs_01_0281__p2520958153">Label</p>
</td>
<td class="cellrowborder" valign="top" width="72%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="ucs_01_0281__p152571695714">Add labels to namespaces and define different attributes in the key-value pair format. You can learn the characteristics of each namespace through these labels.</p>
</td>
</tr>
<tr id="ucs_01_0281__row75251516185711"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="ucs_01_0281__p19525016125713">Annotation</p>
</td>
<td class="cellrowborder" valign="top" width="72%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="ucs_01_0281__p1452519163573">Add customized annotations to the namespace in the key-value pair format.</p>
</td>
</tr>
<tr id="ucs_01_0281__row18506114684111"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="ucs_01_0281__p1313916920718">Description</p>
</td>
<td class="cellrowborder" valign="top" width="72%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="ucs_01_0281__p10506204644111">Description of the namespace.</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="ucs_01_0281__li14656174015588"><span>When the configuration is complete, click <strong id="ucs_01_0281__b20660125213215">OK</strong>.</span><p><p id="ucs_01_0281__p103121246205812">After the creation is complete, you can click <strong id="ucs_01_0281__b759511954715">View YAML</strong> to view and download the YAML file.</p>
</p></li></ol>
</div>
<div class="section" id="ucs_01_0281__section12381162951511"><h4 class="sectiontitle">Using Namespaces</h4><p id="ucs_01_0281__p1816161015362">Namespaces can be used when creating Services, ingresses, and PVCs. The following uses workload creation as an example to describe how a namespace is used.</p>
<ol id="ucs_01_0281__ol1169411542811"><li id="ucs_01_0281__li1721890141815"><span>Log in to the UCS console. In the navigation pane, choose <span class="uicontrol" id="ucs_01_0281__uicontrol675141524519"><b>Fleets</b></span>.</span></li><li id="ucs_01_0281__li621914051817"><span>On the <span class="uicontrol" id="ucs_01_0281__uicontrol1655314199412"><b>Fleets</b></span> tab, click the name of the federation-enabled fleet to access its details page.</span></li><li id="ucs_01_0281__li29284813280"><span>In the navigation pane, choose <strong id="ucs_01_0281__b103001961291">Workloads</strong>. On the <strong id="ucs_01_0281__b730014615296">Deployments</strong> tab, click <strong id="ucs_01_0281__b4300156182911">Create from Image</strong> in the upper right corner.</span></li><li id="ucs_01_0281__li15734161017266"><span>Configure the basic information about the workload and select the namespace where the workload is located.</span></li><li id="ucs_01_0281__li559643025019"><span>Complete the configuration.</span></li></ol>
</div>
<div class="section" id="ucs_01_0281__section7381102916159"><h4 class="sectiontitle">Deleting a Namespace</h4><div class="notice" id="ucs_01_0281__note127963012448"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="ucs_01_0281__ul2829133315443"><li id="ucs_01_0281__li10829233134413">Deleting a namespace on the UCS console will delete the namespace with the same name in each cluster as well as all data resources related to the namespace. Exercise caution when performing this operation.</li><li id="ucs_01_0281__li17771735144414">To ensure that UCS runs properly, namespaces whose source is <strong id="ucs_01_0281__b20947181514520">System</strong> or <strong id="ucs_01_0281__b17948171520515">Default</strong> cannot be deleted.</li></ul>
</div></div>
<ol id="ucs_01_0281__ol14525181615577"><li id="ucs_01_0281__li7290190121910"><span>Log in to the UCS console. In the navigation pane, choose <span class="uicontrol" id="ucs_01_0281__uicontrol159208651795729"><b>Fleets</b></span>.</span></li><li id="ucs_01_0281__li162901207199"><span>On the <span class="uicontrol" id="ucs_01_0281__uicontrol280042334120"><b>Fleets</b></span> tab, click the name of the federation-enabled fleet to access its details page.</span></li><li id="ucs_01_0281__li8164115875010"><span>Choose <span class="uicontrol" id="ucs_01_0281__uicontrol968834761"><b>Namespaces</b></span> in the navigation pane. In the namespace list, click <strong id="ucs_01_0281__b66882041666">Delete</strong> in the row of the target namespace.</span><p><p id="ucs_01_0281__p16171353565">To delete multiple namespaces at a time, select the namespaces and click <strong id="ucs_01_0281__b13879346195618">Delete</strong> in the upper left corner.</p>
</p></li><li id="ucs_01_0281__li1385411775215"><span>Click <strong id="ucs_01_0281__b35341034145710">Yes</strong> as prompted.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ucs_01_0199.html">Cluster Federation</a></div>
</div>
</div>