doc-exports/docs/cci/api-ref/devg_na.html
Dong, Qiu Jian 21dca87c32 CCI API initial upload
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2024-10-14 11:16:04 +00:00

19 lines
2.3 KiB
HTML

<a name="devg_na"></a><a name="devg_na"></a>
<h1 class="topictitle1">Namespace and Network</h1>
<div id="body0000001392829485"><p id="devg_na__en-us_topic_0127684722_p366216366496">A namespace provides a method of allocating resources among multiple users. It applies to scenarios where multiple teams or projects exist.</p>
<p id="devg_na__en-us_topic_0127684722_p0953533104614">A network is a Kubernetes resource object extended for CCI. You can associate a network with a Virtual Private Cloud (VPC) and subnet so that CCI can use network resources of the public cloud.</p>
<div class="section" id="devg_na__en-us_topic_0127684722_section17189123157"><h4 class="sectiontitle">Relationship Between a Namespace and Network</h4><p id="devg_na__en-us_topic_0127684722_p113090420361">A namespace corresponds to a subnet in a VPC, as shown in <a href="#devg_na__en-us_topic_0127684722_fig714315366295">Figure 1</a>. When a namespace is created, it will be associated with a VPC, and a subnet will be created under the VPC. In this namespace, resources such as pods and Services are created in the corresponding VPC and subnet, and the IP addresses in the subnet are used.</p>
<p id="devg_na__en-us_topic_0127684722_p588217147288">If you want to run resources of multiple services in the same VPC, you need to plan subnet CIDR blocks and IP addresses.</p>
<div class="fignone" id="devg_na__en-us_topic_0127684722_fig714315366295"><a name="devg_na__en-us_topic_0127684722_fig714315366295"></a><a name="en-us_topic_0127684722_fig714315366295"></a><span class="figcap"><b>Figure 1 </b>Relationship between namespaces and VPC subnets</span><br><span><img id="devg_na__en-us_topic_0127684722_image4808536164720" src="en-us_image_0000001909077313.png"></span></div>
</div>
<div class="section" id="devg_na__en-us_topic_0127684722_section5571151617513"><h4 class="sectiontitle">Scenarios Where Multiple Namespaces Are Used</h4><p id="devg_na__en-us_topic_0127684722_p1924341711518">Because namespaces enable partial environment isolation, you can create different namespaces, such as production, test, and development namespaces based on project attributes when there are a large number of projects and persons.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="cci_02_0067.html">Appendix</a></div>
</div>
</div>