Storage Management
You can create and manage storage to use when using Kubernetes Engine. Storage is created and then managed for each of PVC, PV, and StorageClass items.
PVC, PV, storage class service is set by default to the cluster (namespace) selected when creating the service. Even if you select other items 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 popup, 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 linked by storage type are as follows.
| Type | Detailed Description |
|---|---|
| Block Storage | Supports a storage class that uses the product’s volume in conjunction with the Block storage product within Virtual Server |
| Object Storage | Can be linked with Samsung Cloud Platform products or external Object Storage
|
| File Storage | Supports storage classes of NFS and CIFS protocol volumes in conjunction with the File Storage product
|
PVC manage
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 where data disappears together when the container lifecycle expires (maintaining Data Persistence).
Create PVC
To create a PVC, follow the steps below.
- All Services > Container > Kubernetes Engine Click the menu. Navigate to the Service Home page of Kubernetes Engine.
- Service Home page, click Storage under the PVC menu. Navigate to the PVC List page.
- On the PVC List page, after selecting the cluster and namespace from the top left gear button, click Create Object.
- In the Object Creation Popup, enter the object information and click the Confirm button.
Check PVC detailed information
To check the detailed PVC information, follow the steps below.
- All Services > Container > Kubernetes Engine menu. Go to the Service Home page of Kubernetes Engine.
- Click PVC under the Storage menu on the Service Home page. You will be taken to the PVC List page.
- On the PVC List page, select the cluster and namespace from the top left gear button, then click Confirm.
- Select the item you want to view detailed information for on the PVC List page. You will be taken to the PVC Details page.
- If you select Show System Objects at the top of the list, items other than the Kubernetes object entries will be displayed.
- Click each tab to view service information.
Category Detailed descriptionStatus Display Displays the current status of the PVC. - Bound: Normal connection
Delete PVC Delete PVC Detailed Information PVC detailed information can be viewed YAML PVC resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Save button to apply changes
- When editing content, click the Diff button to view the changed content
Event Check events that occurred within PVC Account Information Check basic information about the Account such as Account name, location, creation date, etc. Metadata Information Check PVC metadata information Object Information Check PVC object information Table. PVC detailed information items
Delete PVC
To delete PVC, follow the steps below.
- All Services > Container > Kubernetes Engine menu를 클릭하세요. Kubernetes Engine의 Service Home 페이지로 이동합니다.
- Click PVC under the Storage menu on the Service Home page. Navigate to the PVC List page.
- PVC list page, select the cluster and namespace from the top left gear button, then click Confirm.
- PVC List Select the item you want to delete on the page. PVC Details Navigate to the page.
- Click Delete PVC on the PVC Details page.
- Notification confirmation window appears, click the Confirm button.
After selecting the item you want to delete on the PVC list page, you can delete the selected PVC by clicking Delete.
- Check the backup status of the PV and volume to be deleted before deleting the PVC.
PV Management
Persistent Volume (PV) refers to the physical disk created by the system administrator in Kubernetes Engine.
Create PV
To create a PV, follow the steps below.
- All Services > Container > Kubernetes Engine Click the menu. Navigate to the Service Home page of Kubernetes Engine.
- Click PV under the Storage menu on the Service Home page. It navigates to the PV List page.
- PV list page, select the cluster and namespace from the top left gear button, then click Create Object.
- In the Object Creation Popup에서 오브젝트 정보를 입력하고 Confirm 버튼을 클릭하세요.
Check PV detailed information
To view the detailed PV information, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. Navigate to the Service Home page of Kubernetes Engine.
- Service Home page, click Storage under the PV menu. 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.
- Select the item you want to view detailed information for on the PV List page. You will be taken to the PV Details page.
- If you select Show System Objects at the top of the list, items other than the Kubernetes object entries will be displayed.
- Click each tab to view service information.
Category Detailed description Status Display Displays the current status of the PV. - Bound: Normal connection
PV Delete Delete PV Detailed Information PV detailed information can be viewed YAML PV’s resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Save button to apply changes
- When editing content, click the Diff button to view the changed content
Event Check events that occurred within PV Account Information Check basic information about the Account such as Account name, location, creation date and time Metadata Information Check PV’s metadata information Object Information Check PV’s object information Table. PV detailed information items
PV Delete
To delete PV, follow the steps below.
- All Services > Container > Kubernetes Engine Click the menu. Navigate to the Service Home page of Kubernetes Engine.
- Click PV under the Storage menu on the Service Home page. You will be taken 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.
- PV List page, select the item you want to delete. Go to the PV Details page.
- Click Delete PV on the PV Details page.
- Notification confirmation window appears, click the Confirm button.
Managing StorageClass
Storage Class is a Kubernetes resource that defines the level of storage type, performance, etc.
Kubernetes Engine provides the nfs-subdir-external-sc and bs-sc storage classes by default, and has the following features.
- nfs-subdir-external-sc storage class shares and uses file storage connected to the cluster.
- Access mode: RWX - ReadWriteMany
- Reclaim policy: Delete (when PVC is deleted, delete PV and stored data together), Retain (when PVC is deleted, keep PV and stored data)
- 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(when PVC is deleted, delete PV and stored data together), Retain(when PVC is deleted, retain PV and stored data)
- Capacity expansion support: individual PVC expansion support (automatic volume expansion in 8 Gi increments)
Predefined Storage Class
| Storage Class | Reclaim Policy* | Volume Expansion Allowed** | Mount Options | Remarks |
|---|---|---|---|---|
| nfs-subdir-external-sc (default) | Delete | Not supported | nfsvers=3, noresvport | Linked with default Volume (NFS) settings |
| nfs-subdir-external-sc-retain | Retain | Not supported | nfsvers=3, noresvport | Linked with default Volume (NFS) settings |
| bs-sc | Delete | Support | - | VirtualServer > BlockStorage product integration |
| bs-sc-retain | Retain | Support | - | VirtualServer > BlockStorage product integration |
- (*) To use a storage class other than the default, you need to specify the storage class name in PVC’s spec.storageClassName
- (**) User can directly change the default storage class (storageclass.kubernetes.io/is-default-class: “true” annotation adjustment)
The features of the reclaim policy are as follows.
- Delete: If you delete the PVC, the associated PV and physical data will also be deleted.
- Retain: Even if the PVC is deleted, the corresponding PV and physical data are not deleted and are retained. Since physical data not used by the workload may remain in storage, careful capacity management is required.
Consider the following when using volume expansion.
- nfs-subdir-external-sc storage class
- Cannot adjust the capacity of PVC. (Volume expansion not supported)
- All PVs share the total capacity of the File Storage volume, so volume expansion for each PVC is not required.
- bs-sc storage class
- You can expand the PVC capacity. (Shrink function not supported)
- The capacity of the PV is not guaranteed to be as much as requested by the PVC. (Supports expansion in 8 Gi units)
Create StorageClass
To create a storage class, follow the steps below.
- All Services > Container > Kubernetes Engine Click the menu. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click StorageClass under the Storage menu. Navigate to the StorageClass list page.
- StorageClass List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- In the Object Creation Popup, enter the object information and click the Confirm button.ReferenceFor detailed information on the concept of storage classes and object creation, refer to the Kubernetes official documentation > Storage Class.
Check storage class detailed information
To view detailed storage class information, follow the steps below.
- All Services > Container > Kubernetes Engine Click the menu. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Storage under the StorageClass menu. You will be taken 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.
- StorageClass List page, select the item you want to view detailed information for. Navigate to the StorageClass Details page.
- If you select Show System Objects at the top of the list, items other than the Kubernetes object entries will be displayed.
- Click each tab to view service information.
Category Detailed descriptionDelete StorageClass Delete the StorageClass Detailed Information Can view detailed information of storage class YAML Resource files of the storage class can be edited in the YAML editor - Click the Edit button and modify the resource, then click the Save button to apply the changes
- When editing content, click the Diff button to view the changed content
Event Check events that occurred within the storage class Account Information Check basic information about the Account such as Account name, location, creation date, etc. Metadata Information Check the metadata information of the storage class Object Information Check the object information of the storage class Table. StorageClass detailed information items
Delete StorageClass
To delete the storage class, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. Navigate to the Service Home page of Kubernetes Engine.
- From the Service Home page, click Storage Class under the Storage menu. You will be taken to the Storage Class List page.
- On the StorageClass List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- StorageClass List page, select the item you want to delete. Navigate to the StorageClass Details page.
- Click Delete StorageClass on the StorageClass Details page.
- When the notification confirmation window 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.