forked from docs/doc-exports
Reviewed-by: Gergo-Bence Lorincz <a200452876@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
326 lines
43 KiB
HTML
326 lines
43 KiB
HTML
<a name="cce_10_0630"></a><a name="cce_10_0630"></a>
|
|
|
|
<h1 class="topictitle1">Using an OBS Bucket Through a Dynamic PV</h1>
|
|
<div id="body0000001543222785"><p id="cce_10_0630__p209393354282">This section describes how to automatically create an OBS bucket. It is applicable when no underlying storage volume is available.</p>
|
|
<div class="section" id="cce_10_0630__section827014261483"><h4 class="sectiontitle">Constraints</h4><ul id="cce_10_0630__ul1587034719355"><li id="cce_10_0630__cce_10_0379_en-us_topic_0000001492103106_li979316226595">If OBS volumes are used, the owner group and permission of the mount point cannot be modified.</li><li id="cce_10_0630__cce_10_0379_li1299111662010">Every time an OBS volume is mounted to a workload through a PVC, a resident process is created in the backend. When a workload uses too many OBS volumes or reads and writes a large number of object storage files, resident processes will consume a significant amount of memory. To ensure stable running of the workload, make sure that the number of OBS volumes used does not exceed the requested memory. For example, if the workload requests for 4 GiB of memory, the number of OBS volumes should be <strong id="cce_10_0630__cce_10_0379_b1220021102510">no more than</strong> 4.</li><li id="cce_10_0630__cce_10_0379_li7185195718248">Secure containers do not support OBS volumes.</li><li id="cce_10_0630__cce_10_0379_li2033315508106">Hard links are not supported when common buckets are mounted.</li><li id="cce_10_0630__cce_10_0379_li2077765101318">Read-only is not supported when an OBS PVC is mounted to a workload.</li></ul>
|
|
<ul id="cce_10_0630__ul1376232219542"><li id="cce_10_0630__li1876232213543">OBS allows a single user to create a maximum of 100 buckets. If a large number of dynamic PVCs are created, the number of buckets may exceed the upper limit, and no more OBS buckets can be created. In this case, use OBS by calling its API or SDK and do not mount OBS buckets to workloads.</li></ul>
|
|
</div>
|
|
<div class="section" id="cce_10_0630__section59401538114911"><h4 class="sectiontitle">Automatically Creating an OBS Bucket Using the Console</h4><ol id="cce_10_0630__ol1579572174320"><li id="cce_10_0630__li330462393220"><span>Log in to the <span id="cce_10_0630__cce_10_0004_ph18314322182">CCE console</span> and click the cluster name to access the cluster console.</span></li><li id="cce_10_0630__li042113513325"><span>Dynamically create a PVC and PV.</span><p><ol type="a" id="cce_10_0630__ol389516452323"><li id="cce_10_0630__li0895104512322">Choose <strong id="cce_10_0630__b16804110426454"><span id="cce_10_0630__text3190102511214">Storage</span></strong> in the navigation pane. In the right pane, click the <strong id="cce_10_0630__b3694810456454">PVCs</strong> tab. Click <strong id="cce_10_0630__b6510775461112">Create PVC</strong> in the upper right corner. In the dialog box displayed, configure PVC parameters.
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="cce_10_0630__table1423952716344" frame="border" border="1" rules="all"><thead align="left"><tr id="cce_10_0630__row142398277349"><th align="left" class="cellrowborder" valign="top" width="22.88%" id="mcps1.3.3.2.2.2.1.1.4.1.3.1.1"><p id="cce_10_0630__p16239172723418">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="77.12%" id="mcps1.3.3.2.2.2.1.1.4.1.3.1.2"><p id="cce_10_0630__p4239182718345">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_10_0630__row16239202711348"><td class="cellrowborder" valign="top" width="22.88%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.1 "><p id="cce_10_0630__p1723918274344">PVC Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.12%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.2 "><p id="cce_10_0630__p6239827103419">In this example, select <strong id="cce_10_0630__b185361826183218">OBS</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row8239132753411"><td class="cellrowborder" valign="top" width="22.88%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.1 "><p id="cce_10_0630__p1223992716342">PVC Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.12%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.2 "><p id="cce_10_0630__p223952718349">Enter the PVC name, which must be unique in a namespace.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row92391527103416"><td class="cellrowborder" valign="top" width="22.88%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.1 "><p id="cce_10_0630__p11239427103414">Creation Method</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.12%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.2 "><ul id="cce_10_0630__ul4362710104217"><li id="cce_10_0630__li292851314423">If no underlying storage is available, select <strong id="cce_10_0630__b494443352410">Dynamically provision</strong> to create a PVC, PV, and underlying storage on the console in cascading mode.</li><li id="cce_10_0630__li1584162812449">If underlying storage is available, create a PV or use an existing PV to statically create a PVC. For details, see <a href="cce_10_0379.html">Using an Existing OBS Bucket Through a Static PV</a>.</li></ul>
|
|
<p id="cce_10_0630__p523992712340">In this example, select <span class="uicontrol" id="cce_10_0630__uicontrol7667147162412"><b>Dynamically provision</b></span>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row1623916276345"><td class="cellrowborder" valign="top" width="22.88%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.1 "><p id="cce_10_0630__p62391527133412">Storage Classes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.12%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.2 "><p id="cce_10_0630__p3239202773419">The default StorageClass of OBS volumes is <strong id="cce_10_0630__b3154205518230">csi-obs</strong>.</p>
|
|
<p id="cce_10_0630__p1527512238571">You can customize a StorageClass and configure its reclaim policy and binding mode. For details, see <a href="cce_10_0380.html#cce_10_0380__section1074117311660">Creating a StorageClass Through the Console</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row16492123061012"><td class="cellrowborder" valign="top" width="22.88%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.1 "><p id="cce_10_0630__p17474153115114">(Optional) Storage Volume Name Prefix</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.12%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.2 "><p id="cce_10_0630__p209633286599">Available only when the cluster version is v1.23.14-r0, v1.25.9-r0, v1.27.6-r0, v1.28.4-r0, or later, and Everest v2.4.15 or later is installed in the cluster.</p>
|
|
<p id="cce_10_0630__p104754314514">This parameter specifies the name of the underlying storage that is automatically created. The actual underlying storage name is in the format of "Storage volume name prefix + PVC UID". If this parameter is left blank, the default prefix <strong id="cce_10_0630__b1280020282353">pvc</strong> will be used.</p>
|
|
<p id="cce_10_0630__p463664845218">For example, if the storage volume name prefix is set to <strong id="cce_10_0630__b354543153511">test</strong>, the actual underlying storage name is <strong id="cce_10_0630__b35451431183520">test-</strong><em id="cce_10_0630__i654511317354">{UID}</em>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row18610125555617"><td class="cellrowborder" valign="top" width="22.88%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.1 "><p id="cce_10_0630__p161025514565">Instance Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.12%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.2 "><ul id="cce_10_0630__ul14154912175715"><li id="cce_10_0630__li20154312195712"><strong id="cce_10_0630__b11542584344">Parallel file system</strong>: a high-performance file system provided by OBS. It provides millisecond-level access latency, TB/s-level bandwidth, and million-level IOPS.</li><li id="cce_10_0630__li41541212165710"><strong id="cce_10_0630__b1056515012268">Object bucket</strong>: provides reliable, high-performance, secure, and budget-friendly storage for data. They have no restrictions on the quantity of files or storage capacity.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row199183375210"><td class="cellrowborder" valign="top" width="22.88%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.1 "><p id="cce_10_0630__p13918237121">OBS Class</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.12%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.2 "><div class="p" id="cce_10_0630__p13972124331514">You can select the following object bucket types:<ul id="cce_10_0630__ul43583460173158"><li id="cce_10_0630__li55534600173158"><strong id="cce_10_0630__b1010122114114">Standard</strong>: Applicable when a large number of hotspot files or small-sized files need to be accessed frequently (multiple times per month on average) and require fast access response.</li><li id="cce_10_0630__li4115988717327"><strong id="cce_10_0630__b1572265320416">Infrequent access</strong>: Applicable when data is not frequently accessed (fewer than 12 times per year on average) but requires fast access response.</li></ul>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row20240112753418"><td class="cellrowborder" valign="top" width="22.88%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.1 "><p id="cce_10_0630__p16240112710342">Access Mode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.12%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.2 "><p id="cce_10_0630__p17240627103415">OBS volumes support only <strong id="cce_10_0630__b159139417411">ReadWriteMany</strong>, indicating that a storage volume can be mounted to multiple nodes in read/write mode. For details, see <a href="cce_10_0378.html#cce_10_0378__section43881411172418">Volume Access Modes</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row5551145016216"><td class="cellrowborder" valign="top" width="22.88%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.1 "><p id="cce_10_0630__p165519501220">Access Key (AK/SK)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.12%" headers="mcps1.3.3.2.2.2.1.1.4.1.3.1.2 "><p id="cce_10_0630__p197051940173315"><strong id="cce_10_0630__b1843015243383">Custom</strong> (Recommended): Customize a secret if you want to assign different user permissions to different OBS storage devices. For details, see <a href="cce_10_0336.html">Using a Custom Access Key (AK/SK) to Mount an OBS Volume</a>.</p>
|
|
<div class="p" id="cce_10_0630__p17248162316275">Only secrets with the <strong id="cce_10_0630__b167666637582910">secret.kubernetes.io/used-by = csi</strong> label can be selected. The secret type is cfe/secure-opaque. If no secret is available, click <strong id="cce_10_0630__b4400203033818">Create Secret</strong> to create one.<ul id="cce_10_0630__ul15397829182818"><li id="cce_10_0630__li1546126182819"><strong id="cce_10_0630__b121091358184215">Name</strong>: Enter a secret name.</li><li id="cce_10_0630__li175485264285"><strong id="cce_10_0630__b109051410164316">Namespace</strong>: Select the namespace where the secret is.</li><li id="cce_10_0630__li19549132602819"><strong id="cce_10_0630__b121421138113818">Access Key (AK/SK)</strong>: Upload a key file in .csv format. For details, see <a href="cce_10_0336.html#cce_10_0336__section4633162355911">Obtaining an Access Key</a>.</li></ul>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="cce_10_0630__li1961514533327">Click <span class="uicontrol" id="cce_10_0630__uicontrol548666918103020"><b>Create</b></span> to create a PVC and a PV.<p id="cce_10_0630__p520611358112">You can choose <strong id="cce_10_0630__b14083177575840"><span id="cce_10_0630__text1689914504308">Storage</span></strong> in the navigation pane and view the created PVC and PV on the <strong id="cce_10_0630__b15323832765840">PVCs</strong> and <strong id="cce_10_0630__b5908506725840">PVs</strong> tabs, respectively.</p>
|
|
</li></ol>
|
|
</p></li><li id="cce_10_0630__li21791508334"><span>Create an application.</span><p><ol type="a" id="cce_10_0630__cce_10_0379_ol1384514421331"><li id="cce_10_0630__cce_10_0379_li693711404242">Choose <span class="uicontrol" id="cce_10_0630__cce_10_0379_uicontrol12599315235"><b>Workloads</b></span> in the navigation pane. In the right pane, click the <strong id="cce_10_0630__cce_10_0379_b4804748275858">Deployments</strong> tab.</li><li id="cce_10_0630__cce_10_0379_li245444614352">Click <strong id="cce_10_0630__cce_10_0379_b1091355314592">Create Workload</strong> in the upper right corner. On the displayed page, click <strong id="cce_10_0630__cce_10_0379_b1491314534593">Data Storage</strong> in the <strong id="cce_10_0630__cce_10_0379_b20913205311593">Container Information</strong> area under <strong id="cce_10_0630__cce_10_0379_b8913853105912">Container Settings</strong> and choose <strong id="cce_10_0630__cce_10_0379_b8913853175919">Add Volume</strong> > <strong id="cce_10_0630__cce_10_0379_b191325315591">PVC</strong>.<div class="p" id="cce_10_0630__cce_10_0379_en-us_topic_0000001543219893_p487515714493">Mount and use storage volumes. For details about the parameters, see <a href="#cce_10_0630__cce_10_0379_table2529244345">Table 1</a>. For other parameters, see <a href="cce_10_0046.html">Workloads</a>.
|
|
<div class="tablenoborder"><a name="cce_10_0630__cce_10_0379_table2529244345"></a><a name="cce_10_0379_table2529244345"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_10_0630__cce_10_0379_table2529244345" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Mounting a storage volume</caption><thead align="left"><tr id="cce_10_0630__cce_10_0379_row1529104412417"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.1"><p id="cce_10_0630__cce_10_0379_p552934417417">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="80%" id="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.2"><p id="cce_10_0630__cce_10_0379_p115295443412">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_10_0630__cce_10_0379_row12529244141"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.1 "><p id="cce_10_0630__cce_10_0379_p16570849104511">PVC</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.2 "><p id="cce_10_0630__cce_10_0379_p115702492454">Select an existing OBS volume.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__cce_10_0379_row12530344545"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.1 "><p id="cce_10_0630__cce_10_0379_p1440102414331">Mount Path</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.2 "><p id="cce_10_0630__cce_10_0379_p14401724153319">Enter a mount path, for example, <strong id="cce_10_0630__cce_10_0379_b184419012482841">/tmp</strong>.</p>
|
|
<div class="p" id="cce_10_0630__cce_10_0379_p5530744041">This parameter specifies a container path to which a data volume will be mounted. Do not mount the volume to a system directory such as <strong id="cce_10_0630__cce_10_0379_b76355509810642">/</strong> or <strong id="cce_10_0630__cce_10_0379_b158963524010642">/var/run</strong>. This may lead to container errors. Mount the volume to an empty directory. If the directory is not empty, ensure that there are no files that affect container startup. Otherwise, the files will be replaced, leading to container startup failures or workload creation failures.<div class="notice" id="cce_10_0630__cce_10_0379_note1553010441841"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><p id="cce_10_0630__cce_10_0379_p1253013441743">If a volume is mounted to a high-risk directory, use an account with minimum permissions to start the container. Otherwise, high-risk files on the host may be damaged.</p>
|
|
</div></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__cce_10_0379_row5275171712338"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.1 "><p id="cce_10_0630__cce_10_0379_p69401216191612">Subpath</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.2 "><p id="cce_10_0630__cce_10_0379_p636911131175">Enter the subpath of the storage volume and mount a path in the storage volume to the container. In this way, different folders of the same storage volume can be used in a single pod. <strong id="cce_10_0630__cce_10_0379_b1636823795010">tmp</strong>, for example, indicates that data in the mount path of the container is stored in the <strong id="cce_10_0630__cce_10_0379_b8368183775011">tmp</strong> folder of the storage volume. If this parameter is left blank, the root path will be used by default.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__cce_10_0379_row1252121863319"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.1 "><p id="cce_10_0630__cce_10_0379_p16243112481618">Permission</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.3.2.3.2.1.2.7.3.2.3.1.2 "><ul id="cce_10_0630__cce_10_0379_ul1353013442416"><li id="cce_10_0630__cce_10_0379_li9530154412418"><strong id="cce_10_0630__cce_10_0379_b306451995101013">Read-only</strong>: You can only read the data in the mounted volumes.</li><li id="cce_10_0630__cce_10_0379_li9530644846"><strong id="cce_10_0630__cce_10_0379_b1417845713101027">Read-write</strong>: You can modify the data volumes mounted to the path. Newly written data will not be migrated if the container is migrated, which may cause data loss.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p id="cce_10_0630__cce_10_0379_p12615154883613">In this example, the disk is mounted to the <strong id="cce_10_0630__cce_10_0379_b617954663416">/data</strong> path of the container. The container data generated in this path is stored in the OBS volume.</p>
|
|
<p id="cce_10_0630__cce_10_0379_p7286141313462"></p>
|
|
</li><li id="cce_10_0630__cce_10_0379_li687545719498">After the configuration, click <strong id="cce_10_0630__cce_10_0379_b0579141775415">Create Workload</strong>.<p id="cce_10_0630__cce_10_0379_p487515714493">After the workload is created, the data in the container mount directory will be persistently stored. Verify the storage by referring to <a href="cce_10_0379.html#cce_10_0379__section11593165910013">Verifying Data Persistence and Sharing</a>.</p>
|
|
</li></ol>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="cce_10_0630__section104927484275"><h4 class="sectiontitle">Automatically Creating an OBS Bucket Using kubectl</h4><ol id="cce_10_0630__ol139961017554"><li id="cce_10_0630__li189967015552"><span>Use kubectl to access the cluster.</span></li><li id="cce_10_0630__li786249273"><span>Use <strong id="cce_10_0630__b34652022145010">StorageClass</strong> to dynamically create a PVC and PV.</span><p><ol type="a" id="cce_10_0630__ol195321946182719"><li id="cce_10_0630__li463925619521">Create the <strong id="cce_10_0630__b23461851175010">pvc-obs-auto.yaml</strong> file.<pre class="screen" id="cce_10_0630__screen1881364111517">apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: pvc-obs-auto
|
|
namespace: default
|
|
annotations:
|
|
everest.io/obs-volume-type: <i><span class="varname" id="cce_10_0630__varname10713128437">STANDARD</span></i> # OBS
|
|
csi.storage.k8s.io/fstype: <i><span class="varname" id="cce_10_0630__varname457034064115">obsfs</span></i> # Instance type
|
|
csi.storage.k8s.io/node-publish-secret-name: <i><span class="varname" id="cce_10_0630__varname1131815811513"><your_secret_name></span></i> # Custom secret name
|
|
csi.storage.k8s.io/node-publish-secret-namespace: <i><span class="varname" id="cce_10_0630__varname1236195810511"><your_namespace></span></i> # Namespace of the custom secret
|
|
everest.io/csi.volume-name-prefix: <i><span class="varname" id="cce_10_0630__varname2298123124514">test</span></i> # (Optional) Storage volume name prefix of the automatically created underlying storage
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteMany # The value must be <strong id="cce_10_0630__b1328111487532">ReadWriteMany</strong> for OBS.
|
|
resources:
|
|
requests:
|
|
<strong id="cce_10_0630__b37161311546">storage: <i><span class="varname" id="cce_10_0630__varname1571673185410">1Gi</span></i></strong> # OBS volume capacity
|
|
<strong id="cce_10_0630__b105021913162612">storageClassName: csi-obs</strong> # The StorageClass is OBS.</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="cce_10_0630__table1819001615355" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Key parameters</caption><thead align="left"><tr id="cce_10_0630__row1519121663519"><th align="left" class="cellrowborder" valign="top" width="24%" id="mcps1.3.4.2.2.2.1.1.3.2.4.1.1"><p id="cce_10_0630__p18191161619356">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.4.2.2.2.1.1.3.2.4.1.2"><p id="cce_10_0630__p17488165718598">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.2.2.2.1.1.3.2.4.1.3"><p id="cce_10_0630__p1919116161353">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_10_0630__row28818302398"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.1 "><p id="cce_10_0630__p1497565093618">everest.io/obs-volume-type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.2 "><p id="cce_10_0630__p13167353155217">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.3 "><p id="cce_10_0630__p17175165413349">OBS StorageClass.</p>
|
|
<ul id="cce_10_0630__ul10665173614443"><li id="cce_10_0630__li4665103664415">If <strong id="cce_10_0630__b0500136135414">fsType</strong> is set to <strong id="cce_10_0630__b165002036125419">s3fs</strong>, standard buckets (<strong id="cce_10_0630__b12518291814">STANDARD</strong>) and infrequent access buckets (<strong id="cce_10_0630__b195192141817">WARM</strong>) are supported.</li><li id="cce_10_0630__li1665113614444">This parameter is invalid when <strong id="cce_10_0630__b1727450175416">fsType</strong> is set to <strong id="cce_10_0630__b167271150175416">obsfs</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row1251102919390"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.1 "><p id="cce_10_0630__p151629143911">csi.storage.k8s.io/fstype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.2 "><p id="cce_10_0630__p15794144011386">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.3 "><p id="cce_10_0630__p1542133510195">Instance type. The value can be <strong id="cce_10_0630__b5127559125412">obsfs</strong> or <strong id="cce_10_0630__b1412713593543">s3fs</strong>.</p>
|
|
<ul id="cce_10_0630__ul6315195541919"><li id="cce_10_0630__li9622106182011"><strong id="cce_10_0630__b200123426023018">obsfs</strong>: a parallel file system</li><li id="cce_10_0630__li1731525517197"><strong id="cce_10_0630__b8770244023034">s3fs</strong>: object bucket</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row55941125173912"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.1 "><p id="cce_10_0630__p205941225143910">csi.storage.k8s.io/node-publish-secret-name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.2 "><p id="cce_10_0630__p13176144710316">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.3 "><p id="cce_10_0630__p517619478317">Custom secret name.</p>
|
|
<p id="cce_10_0630__p390045034717">(Recommended) Select this option if you want to assign different user permissions to different OBS storage devices. For details, see <a href="cce_10_0336.html">Using a Custom Access Key (AK/SK) to Mount an OBS Volume</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row2722102319397"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.1 "><p id="cce_10_0630__p7722172353914">csi.storage.k8s.io/node-publish-secret-namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.2 "><p id="cce_10_0630__p10618049153117">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.3 "><p id="cce_10_0630__p126181949103115">Namespace of a custom secret.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row1372604231912"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.1 "><p id="cce_10_0630__p1652349835">everest.io/csi.volume-name-prefix</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.2 "><p id="cce_10_0630__p265217491539">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.3 "><p id="cce_10_0630__p515811391643">(Optional) This parameter is available only when the cluster version is v1.23.14-r0, v1.25.9-r0, v1.27.6-r0, v1.28.4-r0, or later, and Everest v2.4.15 or later is installed in the cluster.</p>
|
|
<p id="cce_10_0630__p21586396410">This parameter specifies the name of the underlying storage that is automatically created. The actual underlying storage name is in the format of "Storage volume name prefix + PVC UID". If this parameter is left blank, the default prefix <strong id="cce_10_0630__b169113541285">pvc</strong> will be used.</p>
|
|
<p id="cce_10_0630__p1998116101517">Enter 1 to 26 characters that cannot start or end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.</p>
|
|
<p id="cce_10_0630__p151589391949">For example, if the storage volume name prefix is set to <strong id="cce_10_0630__b42261241893">test</strong>, the actual underlying storage name is <strong id="cce_10_0630__b4226641797">test-</strong><em id="cce_10_0630__i1122612413910">{UID}</em>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row17990419846"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.1 "><p id="cce_10_0630__p2278122511288">storage</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.2 "><p id="cce_10_0630__p17947133220713">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.3 "><p id="cce_10_0630__p2968021194514">Requested capacity in the PVC, in Gi.</p>
|
|
<p id="cce_10_0630__p22266211339">For OBS, this parameter is only for verification. It must not be empty or <strong id="cce_10_0630__b260154015526">0</strong>, and its value is fixed at <strong id="cce_10_0630__b15896335250">1</strong>. Any value you set will not take effect.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row14666133924"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.1 "><p id="cce_10_0630__p12702102685115">storageClassName</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.2 "><p id="cce_10_0630__p89486321570">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.2.1.1.3.2.4.1.3 "><p id="cce_10_0630__p770232635117">StorageClass name, which is <strong id="cce_10_0630__b136521761917">csi-obs</strong> for an OBS volume.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="cce_10_0630__li3143165172719">Run the following command to create a PVC:<pre class="screen" id="cce_10_0630__screen1652193995617">kubectl apply -f pvc-obs-auto.yaml</pre>
|
|
</li></ol>
|
|
</p></li><li id="cce_10_0630__li167887292504"><span>Create an application.</span><p><ol type="a" id="cce_10_0630__ol1129955005611"><li id="cce_10_0630__li128415481561">Create a file named <strong id="cce_10_0630__b6451819582406">web-demo.yaml</strong>. In this example, the OBS volume is mounted to the <strong id="cce_10_0630__b345214602406">/data</strong> path.<pre class="screen" id="cce_10_0630__screen13581043204414">apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: web-demo
|
|
namespace: default
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: web-demo
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: web-demo
|
|
spec:
|
|
containers:
|
|
- name: container-1
|
|
image: nginx:latest
|
|
volumeMounts:
|
|
- name: pvc-obs-volume # Volume name, which must be the same as the volume name in the <strong id="cce_10_0630__b193111263112">volumes</strong> field
|
|
mountPath: /data # Location where the storage volume is mounted
|
|
imagePullSecrets:
|
|
- name: default-secret
|
|
volumes:
|
|
- name: pvc-obs-volume # Volume name, which can be customized
|
|
persistentVolumeClaim:
|
|
<strong id="cce_10_0630__b77551040118">claimName: pvc-obs-auto</strong> # Name of the created PVC</pre>
|
|
</li><li id="cce_10_0630__li18996190135511">Run the following command to create a workload to which the OBS volume is mounted:<pre class="screen" id="cce_10_0630__screen17928830155114">kubectl apply -f web-demo.yaml</pre>
|
|
<p id="cce_10_0630__p7996180185516">After the workload is created, you can try <a href="#cce_10_0630__section11593165910013">Verifying Data Persistence and Sharing</a>.</p>
|
|
</li></ol>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="cce_10_0630__section11593165910013"><a name="cce_10_0630__section11593165910013"></a><a name="section11593165910013"></a><h4 class="sectiontitle">Verifying Data Persistence and Sharing</h4><ol id="cce_10_0630__cce_10_0619_ol7206125220564"><li id="cce_10_0630__cce_10_0619_li122061852125612"><span>View the deployed application and files.</span><p><ol type="a" id="cce_10_0630__cce_10_0619_ol15446171295717"><li id="cce_10_0630__cce_10_0619_li1467620112574">Run the following command to view the created pod:<pre class="screen" id="cce_10_0630__cce_10_0619_screen156898195914">kubectl get pod -n <<em id="cce_10_0630__cce_10_0619_i82752310151">namespace</em>> | grep web-demo</pre>
|
|
<div class="p" id="cce_10_0630__cce_10_0619_p18257204595920">Expected output:<pre class="screen" id="cce_10_0630__cce_10_0619_screen7944553592">web-demo-846b489584-mjhm9 1/1 Running 0 46s
|
|
web-demo-846b489584-wvv5s 1/1 Running 0 46s</pre>
|
|
</div>
|
|
</li><li id="cce_10_0630__cce_10_0619_li13813174412619">Run the following commands in sequence to check the files in the <strong id="cce_10_0630__cce_10_0619_b20168102123116">/data</strong> path of the pods:<pre class="screen" id="cce_10_0630__cce_10_0619_screen1193373712">kubectl exec -n <<em id="cce_10_0630__cce_10_0619_i9340896152">namespace</em>> web-demo-846b489584-mjhm9 -- ls /data
|
|
kubectl exec -n <<em id="cce_10_0630__cce_10_0619_i146662121158">namespace</em>> web-demo-846b489584-wvv5s -- ls /data</pre>
|
|
<p id="cce_10_0630__cce_10_0619_p135314401577">If no result is returned for both pods, no file exists in the <strong id="cce_10_0630__cce_10_0619_b832324483613">/data</strong> path.</p>
|
|
</li></ol>
|
|
</p></li><li id="cce_10_0630__cce_10_0619_li12152125415716"><span>Run the following command to create a file named <strong id="cce_10_0630__cce_10_0619_b9766155112363">static</strong> in the <strong id="cce_10_0630__cce_10_0619_b3767451113613">/data</strong> path:</span><p><pre class="screen" id="cce_10_0630__cce_10_0619_screen17854195312819">kubectl exec -n <<em id="cce_10_0630__cce_10_0619_i76971922161519">namespace</em>> web-demo-846b489584-mjhm9 -- touch /data/static</pre>
|
|
</p></li><li id="cce_10_0630__cce_10_0619_li394318224918"><span>Run the following command to check the files in the <strong id="cce_10_0630__cce_10_0619_b83821363719">/data</strong> path:</span><p><pre class="screen" id="cce_10_0630__cce_10_0619_screen294319221595">kubectl exec -n <<em id="cce_10_0630__cce_10_0619_i487022561514">namespace</em>> web-demo-846b489584-mjhm9 -- ls /data</pre>
|
|
<p id="cce_10_0630__cce_10_0619_p594492216919">Expected output:</p>
|
|
<pre class="screen" id="cce_10_0630__cce_10_0619_screen119445221094"><strong id="cce_10_0630__cce_10_0619_b197361748495">static</strong></pre>
|
|
</p></li><li id="cce_10_0630__cce_10_0619_li2811105043518"><span><strong id="cce_10_0630__cce_10_0619_b196481752164016">Verify data persistence.</strong></span><p><ol type="a" id="cce_10_0630__cce_10_0619_ol946211793613"><li id="cce_10_0630__cce_10_0619_li559562171111">Run the following command to delete the pod named <strong id="cce_10_0630__cce_10_0619_b1829245193718">web-demo-846b489584-mjhm9</strong>:<pre class="screen" id="cce_10_0630__cce_10_0619_screen133094511113">kubectl delete pod -n <<em id="cce_10_0630__cce_10_0619_i1275210285153">namespace</em>> web-demo-846b489584-mjhm9</pre>
|
|
<p id="cce_10_0630__cce_10_0619_p1505114171119">Expected output:</p>
|
|
<pre class="screen" id="cce_10_0630__cce_10_0619_screen17374544201117">pod "web-demo-846b489584-mjhm9" deleted</pre>
|
|
<p id="cce_10_0630__cce_10_0619_p736319518363">After the deletion, the Deployment controller automatically creates a replica.</p>
|
|
</li><li id="cce_10_0630__cce_10_0619_li41241546163111">Run the following command to view the created pod:<pre class="screen" id="cce_10_0630__cce_10_0619_screen7124174616313">kubectl get pod -n <<em id="cce_10_0630__cce_10_0619_i1786193231516">namespace</em>> | grep web-demo</pre>
|
|
<div class="p" id="cce_10_0630__cce_10_0619_p1412410465315">The expected output is as follows, in which <strong id="cce_10_0630__cce_10_0619_b10724105883816">web-demo-846b489584-d4d4j</strong> is the newly created pod:<pre class="screen" id="cce_10_0630__cce_10_0619_screen8124194617316"><strong id="cce_10_0630__cce_10_0619_b167785819324">web-demo-846b489584-d4d4j</strong> 1/1 Running 0 110s
|
|
web-demo-846b489584-wvv5s 1/1 Running 0 7m50s</pre>
|
|
</div>
|
|
</li><li id="cce_10_0630__cce_10_0619_li92741427361">Run the following command to check whether the files in the <strong id="cce_10_0630__cce_10_0619_b12004883915">/data</strong> path of the new pod have been modified:<pre class="screen" id="cce_10_0630__cce_10_0619_screen3274329368">kubectl exec -n <<em id="cce_10_0630__cce_10_0619_i15568133811520">namespace</em>> web-demo-846b489584-d4d4j -- ls /data</pre>
|
|
<p id="cce_10_0630__cce_10_0619_p1327415223612">Expected output:</p>
|
|
<pre class="screen" id="cce_10_0630__cce_10_0619_screen1827416283615"><strong id="cce_10_0630__cce_10_0619_b18274162153617">static</strong></pre>
|
|
<p id="cce_10_0630__cce_10_0619_p1627413263615">The <strong id="cce_10_0630__cce_10_0619_b12628774011">static</strong> file is retained, indicating that the data in the file system can be stored persistently.</p>
|
|
</li></ol>
|
|
</p></li><li id="cce_10_0630__cce_10_0619_li131252261361"><span><strong id="cce_10_0630__cce_10_0619_b1424119399401">Verify data sharing.</strong></span><p><ol type="a" id="cce_10_0630__cce_10_0619_ol4156124117369"><li id="cce_10_0630__cce_10_0619_li115002043173817">Run the following command to view the created pod:<pre class="screen" id="cce_10_0630__cce_10_0619_screen135001243113812">kubectl get pod -n <<em id="cce_10_0630__cce_10_0619_i114981428152">namespace</em>> | grep web-demo</pre>
|
|
<div class="p" id="cce_10_0630__cce_10_0619_p15500144320389">Expected output:<pre class="screen" id="cce_10_0630__cce_10_0619_screen9500144353814">web-demo-846b489584-d4d4j 1/1 Running 0 7m
|
|
web-demo-846b489584-wvv5s 1/1 Running 0 13m</pre>
|
|
</div>
|
|
</li><li id="cce_10_0630__cce_10_0619_li1570613610346">Run the following command to create a file named <strong id="cce_10_0630__cce_10_0619_b12655216104110">share</strong> in the <strong id="cce_10_0630__cce_10_0619_b0657151624110">/data</strong> path of either pod: In this example, select the pod named <strong id="cce_10_0630__cce_10_0619_b181162554512">web-demo-846b489584-d4d4j</strong>.<pre class="screen" id="cce_10_0630__cce_10_0619_screen57061036183419">kubectl exec -n <<em id="cce_10_0630__cce_10_0619_i846174613159">namespace</em>> web-demo-846b489584-d4d4j -- touch /data/share</pre>
|
|
<div class="p" id="cce_10_0630__cce_10_0619_p839520214363">Check the files in the <strong id="cce_10_0630__cce_10_0619_b135049434457">/data</strong> path of the pod.<pre class="screen" id="cce_10_0630__cce_10_0619_screen19610111423610">kubectl exec -n <<em id="cce_10_0630__cce_10_0619_i2030250121518">namespace</em>> web-demo-846b489584-d4d4j -- ls /data</pre>
|
|
</div>
|
|
<p id="cce_10_0630__cce_10_0619_p36101814123615">Expected output:</p>
|
|
<pre class="screen" id="cce_10_0630__cce_10_0619_screen10610141415368"><strong id="cce_10_0630__cce_10_0619_b65651613395">share</strong>
|
|
static</pre>
|
|
</li><li id="cce_10_0630__cce_10_0619_li106333497362">Check whether the <strong id="cce_10_0630__cce_10_0619_b15176191964613">share</strong> file exists in the <strong id="cce_10_0630__cce_10_0619_b24338403468">/data</strong> path of another pod (<strong id="cce_10_0630__cce_10_0619_b15307144514481">web-demo-846b489584-wvv5s</strong>) as well to verify data sharing.<pre class="screen" id="cce_10_0630__cce_10_0619_screen1563394919362">kubectl exec -n <<em id="cce_10_0630__cce_10_0619_i49582539156">namespace</em>> web-demo-846b489584-wvv5s -- ls /data</pre>
|
|
<p id="cce_10_0630__cce_10_0619_p186335499367">Expected output:</p>
|
|
<pre class="screen" id="cce_10_0630__cce_10_0619_screen83001637173915"><strong id="cce_10_0630__cce_10_0619_b1130013373398">share</strong>
|
|
static</pre>
|
|
<p id="cce_10_0630__cce_10_0619_p563374943611">After you create a file in the <strong id="cce_10_0630__cce_10_0619_b174820548491">/data</strong> path of a pod, if the file is also created in the <strong id="cce_10_0630__cce_10_0619_b18342105114516">/data</strong> path of the other pod, the two pods share the same volume.</p>
|
|
</li></ol>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="cce_10_0630__section16505832153318"><h4 class="sectiontitle">Related Operations</h4><div class="p" id="cce_10_0630__p492184121317">You can also perform the operations listed in <a href="#cce_10_0630__table1619535674020">Table 3</a>.
|
|
<div class="tablenoborder"><a name="cce_10_0630__table1619535674020"></a><a name="table1619535674020"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_10_0630__table1619535674020" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Related operations</caption><thead align="left"><tr id="cce_10_0630__row17103718171311"><th align="left" class="cellrowborder" valign="top" width="13.81%" id="mcps1.3.6.2.2.2.4.1.1"><p id="cce_10_0630__p110320185130">Operation</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="27.79%" id="mcps1.3.6.2.2.2.4.1.2"><p id="cce_10_0630__p3426134118579">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="58.4%" id="mcps1.3.6.2.2.2.4.1.3"><p id="cce_10_0630__p51031018141311">Procedure</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_10_0630__row8494485211"><td class="cellrowborder" valign="top" width="13.81%" headers="mcps1.3.6.2.2.2.4.1.1 "><p id="cce_10_0630__p766183524217"><span class="keyword" id="cce_10_0630__keyword724215141126">Updating an access key</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.79%" headers="mcps1.3.6.2.2.2.4.1.2 "><p id="cce_10_0630__p1128313965812">Update the access key of object storage on the CCE console.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.4%" headers="mcps1.3.6.2.2.2.4.1.3 "><ol id="cce_10_0630__ol1238116919466"><li id="cce_10_0630__li1338117994616">Choose <strong id="cce_10_0630__b14553536366454"><span id="cce_10_0630__text16639130193118">Storage</span></strong> in the navigation pane. In the right pane, click the <strong id="cce_10_0630__b13655950626454">PVCs</strong> tab. Click <strong id="cce_10_0630__b1360415281437">More</strong> in the <strong id="cce_10_0630__b16046281735">Operation</strong> column of the target PVC and select <strong id="cce_10_0630__b186046283315">Update Access Key</strong>.</li><li id="cce_10_0630__li8399165264618">Upload a key file in .csv format. For details, see <a href="cce_10_0336.html#cce_10_0336__section4633162355911">Obtaining an Access Key</a>. Click <strong id="cce_10_0630__b174344027083142">OK</strong>.<div class="note" id="cce_10_0630__note159226165314"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="cce_10_0630__p1392211145319">After a global access key is updated, all pods mounted with the object storage that uses this access key can be accessed only after being restarted.</p>
|
|
</div></div>
|
|
</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row860410300559"><td class="cellrowborder" valign="top" width="13.81%" headers="mcps1.3.6.2.2.2.4.1.1 "><p id="cce_10_0630__p060503075517">Viewing events</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.79%" headers="mcps1.3.6.2.2.2.4.1.2 "><p id="cce_10_0630__p144271741175710">View event names, event types, number of occurrences, Kubernetes events, first occurrence time, and last occurrence time of the PVC or PV.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.4%" headers="mcps1.3.6.2.2.2.4.1.3 "><ol id="cce_10_0630__ol14471142010018"><li id="cce_10_0630__li13433174716116">Choose <strong id="cce_10_0630__b194081056652143"><span id="cce_10_0630__text1123324103112">Storage</span></strong> in the navigation pane. In the right pane, click the <strong id="cce_10_0630__b150785596952143">PVCs</strong> or <strong id="cce_10_0630__b29998386452143">PVs</strong> tab.</li><li id="cce_10_0630__li184711320904">Click <strong id="cce_10_0630__b9679650985228">View Events</strong> in the <strong id="cce_10_0630__b16539239455228">Operation</strong> column of the target PVC or PV to view events generated within one hour (events are retained for one hour).</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row176151232125516"><td class="cellrowborder" valign="top" width="13.81%" headers="mcps1.3.6.2.2.2.4.1.1 "><p id="cce_10_0630__p116151232175511">Viewing a YAML file</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.79%" headers="mcps1.3.6.2.2.2.4.1.2 "><p id="cce_10_0630__en-us_topic_0107283638_p11572397189">View, copy, or download the YAML file of a PVC or PV.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.4%" headers="mcps1.3.6.2.2.2.4.1.3 "><ol id="cce_10_0630__ol415620391221"><li id="cce_10_0630__li1156339726">Choose <strong id="cce_10_0630__b96107555452143"><span id="cce_10_0630__text125085710318">Storage</span></strong> in the navigation pane. In the right pane, click the <strong id="cce_10_0630__b104713843052143">PVCs</strong> or <strong id="cce_10_0630__b108211546652143">PVs</strong> tab.</li><li id="cce_10_0630__li61567391922">Click <strong id="cce_10_0630__b1339235915402">View YAML</strong> in the <strong id="cce_10_0630__b143921759194014">Operation</strong> column of the target PVC or PV to view, copy, or download the YAML.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_10_0630__row561514211297"><td class="cellrowborder" valign="top" width="13.81%" headers="mcps1.3.6.2.2.2.4.1.1 "><p id="cce_10_0630__p85313275177">Editing Reclaim Policy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.79%" headers="mcps1.3.6.2.2.2.4.1.2 "><p id="cce_10_0630__p13531132721718">Modify the reclaim policy of a PV.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.4%" headers="mcps1.3.6.2.2.2.4.1.3 "><ol id="cce_10_0630__ol15731161119197"><li id="cce_10_0630__cce_10_0614_li167321111131911">In the navigation pane, choose <strong id="cce_10_0630__cce_10_0614_b174961944184311"><span id="cce_10_0630__cce_10_0614_text149611448433">Storage</span></strong>. Then click the <span class="uicontrol" id="cce_10_0630__cce_10_0614_uicontrol5497154444310"><b>PVs</b></span> tab.</li><li id="cce_10_0630__cce_10_0614_li8732411151916">Locate the row containing the target PV and choose <strong id="cce_10_0630__cce_10_0614_b1854354964315">More</strong> > <strong id="cce_10_0630__cce_10_0614_b20543849174312">Edit Reclaim Policy</strong>.</li></ol>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_10_0160.html">OBS</a></div>
|
|
</div>
|
|
</div>
|
|
|