Managing Storage
You can create and manage storage for use with Kubernetes Engine. Storage is created and managed for each PVC, PV, and StorageClass.
PVC, PV, and storage class services are set by default to the cluster (namespace) selected when creating the service. Even if you select a different item in the list, the default cluster (namespace) setting is retained.
- To select a different cluster (namespace), click the gear button on the right side of the list. * Cluster/Namespace Settings In the popup window, select the cluster and namespace to change, and click the Confirm button. * You can view the services created in the selected cluster/namespace.
The items associated with each storage type are as follows.
| type | Detailed description |
|---|---|
| Block storage | Supports a storage class that uses the volume of the Block storage product within Virtual Server. |
| Object Storage | Can be integrated with Samsung Cloud Platform products or external Object Storage
|
| File storage | Supports storage classes for NFS and CIFS protocol volumes in conjunction with the File Storage product
|
Managing PVC
Persistent Volume Claim(PVC) is an object defined to allocate the required storage capacity. PVC provides high usability through abstraction and can prevent the problem of data being deleted when the container lifecycle (Container Lifecycle) expires (maintaining Data Persistence).
Create PVC
To create a PVC, follow the steps below.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click PVC under the Storage menu. 2. Go to the PVC List page.
- PVC List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Enter the object information in the Object Creation Popup and click the Confirm button.
Check PVC detailed information
To view detailed PVC information, follow the steps below.
- Click the All Services > Container > Kubernetes Engine menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click PVC under the Storage menu. 2. PVC List Navigate to the page.
- On the PVC List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the item you want to view detailed information for on the PVC List page. 4. PVC Details Go to the page.
- If you select Show system objects at the top of the list, all items except the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed descriptionStatus display Displays the current status of the PVC. - Bound: Normal connection
Delete PVC Delete PVC Detailed Information Detailed PVC information can be viewed YAML The PVC resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, you can click the Diff button to view the changed content
event Check events that occurred within the PVC Account Information Check basic information about the Account, such as name, location, creation time, etc. Metadata Information Check the PVC metadata information Object Information Check the PVC object information Table. PVC detailed information items
Delete PVC
To delete a PVC, follow the steps below.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click PVC under the Storage menu. 2. PVC List go to the page.
- On the PVC List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- PVC List page, select the items you want to delete. 4. Go to the PVC Details page.
- On the PVC Details page, click Delete PVC.
- When the notification confirmation window appears, click the Confirm button.
On the PVC list page, after selecting the item you want to delete, click Delete to delete the selected PVC.
- Before deleting the PVC, verify that the PV and volume to be deleted are backed up.
Manage PV
Persistent Volume (PV) refers to the physical disk that a system administrator creates in Kubernetes Engine.
Create PV
To create a PV, follow the steps below.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click PV under the Storage menu. 2. Go to the PV List page.
- On the PV List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Enter the object information in the Object Creation Popup and click the Confirm button.
Check PV detailed information
To view detailed PV information, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click PV under the Storage menu. 2. Navigate to the PV list page.
- PV List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- On the PV List page, select the item for which you want to view detailed information. 4. Navigate to the PV Details page.
- If you select Show system objects at the top of the list, all items except the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed description Status display Displays the current status of the PV. - Bound: Normal connection
Delete PV Delete PV Detailed Information Detailed information of the PV can be viewed YAML The PV’s resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, you can click the Diff button to view the changes
event Check events that occurred within the PV Account Information Check basic information about the Account, such as name, location, creation time, etc. Metadata Information Check the PV metadata information Object Information Check PV object information Table. PV detailed information items
Delete PV
To delete a PV, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click PV under the Storage menu. 2. Go to the PV List page.
- On the PV List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the item you want to delete on the PV list page. 4. Go to the PV Details page.
- Click Delete PV on the PV Details page.
- When the notification dialog appears, click the Confirm button.
Managing StorageClass
Storage Class (Storage Class) is a Kubernetes resource that defines the type, performance, and other levels of storage.
Kubernetes Engine provides the nfs-subdir-external-sc and bs-sc storage classes by default, and has the following characteristics.
- The nfs-subdir-external-sc storage class shares and uses the file storage attached to the cluster.
- Access mode: RWX - ReadWriteMany Reclaim policy: Delete(deletes the PV and stored data when the PVC is deleted), Retain(keeps the PV and stored data when the PVC is deleted) Capacity expansion: individual PVC expansion not allowed / entire file storage expansion allowed
- The bs-sc storage class supports using SSD-type volumes in conjunction with block storage products.
- Access mode: RWO - ReadWriteOnce Reclaim policy: Delete (deletes PV and stored data when PVC is deleted), Retain (keeps PV and stored data when PVC is deleted)
- Capacity expansion support: individual PVC expansion support (automatic volume expansion in 8 Gi increments)
Predefined storage class
| Storage class | Reclaim Policy* | Allow volume expansion** | Mount options | Remarks |
|---|---|---|---|---|
| nfs-subdir-external-sc (default) | Delete | Not supported | nfsvers=3, noresvport | Basic Volume (NFS) configuration and integration |
| nfs-subdir-external-sc-retain | Retain | Not supported | nfsvers=3, noresvport | Basic Volume (NFS) configuration and integration |
| bs-sc | Delete | Support | - | VirtualServer > Integration with BlockStorage product |
| bs-sc-retain | Retain | Support | - | VirtualServer > Integration with BlockStorage product |
- (*) To use a storage class other than the default, you need to specify the storage class name in PVC’s spec.storageClassName.
- (**) Users can directly change the default storage class (adjust the storageclass.kubernetes.io/is-default-class: “true” annotation)
The characteristics of the reclamation policy are as follows.
- Delete: Deleting the PVC also deletes the associated PV and physical data.
- Retain: Even if the PVC is deleted, the associated PV and physical data are not deleted and are retained. * Physical data not used by the workload may remain in storage, so careful capacity management is required.
When using volume expansion, consider the following.
- nfs-subdir-external-sc storage class
- Cannot resize the PVC. * (Volume expansion not supported)
- All PVs share the total capacity of the File Storage volume, so individual PVC volume expansion is not required.
- bs-sc storage class
- You can expand the PVC capacity. * (Zoom function not supported)
- The requested capacity of a PVC does not guarantee that the corresponding PV will have that amount of capacity. * (support expansion in 8 Gi increments)
Creating a StorageClass
To create a storage class, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Storage Class under the Storage menu. 2. Navigate to the StorageClass List page.
- StorageClass list on the page, select the cluster and namespace from the top‑left gear button, then click Create Object.
- Enter the object information in the Object Creation Popup and click the Confirm button.ReferenceFor detailed information on the concept of storage classes and object creation, please refer to 쿠버네티스 공식 문서 > 스토리지 클래스.
View detailed storage class information
To view detailed information about the storage class, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click StorageClass under the Storage menu. 2. Navigate to the StorageClass List page.
- On the StorageClass List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the item you want to view detailed information for on the StorageClass List page. 4. Navigate to the StorageClass Details page.
- If you select Show system objects at the top of the list, all items except the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed descriptionDelete StorageClass Delete the StorageClass Detailed Information Detailed information of the storage class can be viewed YAML The resource file of the StorageClass can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, click the Diff button to view the changes
event Check events that occurred within the storage class Account information Check basic information about the Account, such as name, location, and creation time. Metadata Information Check the metadata information of the StorageClass Object Information Check the object information of the storage class Table. StorageClass detailed information items
Delete StorageClass
To delete a storage class, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click StorageClass under the Storage menu. 2. Navigate to the StorageClass List page.
- StorageClass list page, select the cluster and namespace from the top-left gear button, then click Confirm.
- On the StorageClass List page, select the items you want to delete. 4. Navigate to the StorageClass Details page.
- On the StorageClass Details page, click Delete StorageClass.
- When the notification dialog appears, click the Confirm button.CautionOn the storage class list page, after selecting the item you want to delete, click Delete to delete the selected storage class.