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>
24 lines
4.0 KiB
HTML
24 lines
4.0 KiB
HTML
<a name="cce_faq_00224"></a><a name="cce_faq_00224"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Expand the Storage Capacity of a Container?</h1>
|
|
<div id="body8662426"><div class="section" id="cce_faq_00224__en-us_topic_0179003343_section328065120379"><h4 class="sectiontitle">Application Scenarios</h4><p id="cce_faq_00224__en-us_topic_0179003343_p14675155417375">The default storage size of a container is 10 GB. If a large volume of data is generated in the container, expand the capacity using the method described in this topic.</p>
|
|
</div>
|
|
<div class="section" id="cce_faq_00224__section3868196195120"><h4 class="sectiontitle">Solution</h4><ol id="cce_faq_00224__ol1636721811515"><li id="cce_faq_00224__li736715181515"><span>Log in to the CCE console and click the cluster name to access the cluster console.</span></li><li id="cce_faq_00224__li24942528521"><span>Choose <strong id="cce_faq_00224__b189750130475">Nodes</strong> from the navigation pane.</span></li><li id="cce_faq_00224__li133072217550"><span>Click the Nodes tab, locate the row containing the target node, and choose <strong id="cce_faq_00224__b148551937125020">More</strong> > <strong id="cce_faq_00224__b15370249135015">Reset Node</strong> in the <strong id="cce_faq_00224__b1144520506">Operation</strong> column.</span><p><div class="notice" id="cce_faq_00224__note093161765617"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="cce_faq_00224__p1315771818569">Resetting a node may make unavailable the node-specific resources (such as local storage and workloads scheduled to this node). Exercise caution when performing this operation to avoid impact on running services.</p>
|
|
</div></div>
|
|
</p></li><li id="cce_faq_00224__li0372105918556"><span>Click <strong id="cce_faq_00224__b446472655112">Yes</strong>.</span></li><li id="cce_faq_00224__li38415459464"><span>Reconfigure node parameters.</span><p><p id="cce_faq_00224__p1823115541465">If you need to adjust the container storage space, pay attention to the following configurations:</p>
|
|
<p id="cce_faq_00224__p15736830111319"><strong id="cce_faq_00224__b174806251917">Storage Settings</strong>: Click <strong id="cce_faq_00224__b44431201211">Expand</strong> next to the data disk to set the following parameters:</p>
|
|
<p id="cce_faq_00224__p760410529815"><strong id="cce_faq_00224__b1189853893318">Space Allocation for Pods</strong>: indicates the <span class="keyword" id="cce_faq_00224__keyword360416521088">base size</span> of a pod. It is the maximum size that a workload's pods (including the container images) can grow to in the disk space. Proper settings can prevent pods from taking all the disk space available and avoid service exceptions. It is recommended that the value is less than or equal to 80% of the container engine space. This parameter is related to the node OS and container storage rootfs and is not supported in some scenarios. For details, see <a href="cce_10_0341.html">Data Disk Space Allocation</a>.</p>
|
|
<p id="cce_faq_00224__p1285841220720"></p>
|
|
</p></li><li id="cce_faq_00224__li427018141128"><span>After the node is reset, log in to the node and run the following command to access the container and check whether the container storage capacity has been expanded:</span><p><p id="cce_faq_00224__p17270914525"><strong id="cce_faq_00224__b76172021151918">docker exec -it</strong> <em id="cce_faq_00224__i9617132119193">container_id</em><strong id="cce_faq_00224__b2617421171919"> /bin/sh</strong> or <strong id="cce_faq_00224__b161782141917">kubectl exec -it</strong> <em id="cce_faq_00224__i161719214190">container_id</em> <strong id="cce_faq_00224__b156171421121911">/bin/sh</strong></p>
|
|
<p id="cce_faq_00224__p12270131414213"><strong id="cce_faq_00224__b5270151414218">df -h</strong></p>
|
|
<p id="cce_faq_00224__p12704144214"><span><img id="cce_faq_00224__image9270141414215" src="en-us_image_0000001851585112.png"></span></p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_faq_00292.html">Reference</a></div>
|
|
</div>
|
|
</div>
|
|
|