How to Annotate Third-Party Storage Capabilities
With the growing use of both public and private cloud environments, third-party storage integration has become increasingly important. This guide walks you through how to annotate third-party storage capabilities using a ConfigMap so your platform can recognize and surface those capabilities automatically.
TOC
Step 1: Open Storage Class Configuration
- Go to Platform Management in your platform's UI.
- From the left sidebar, navigate to Storage Management > Storage Classes.
- Click Create Storage Class to start defining a new storage class.
Step 2: Fill in Storage Class Information
Provide the following details in the form:
Step 3: Annotate Storage Capabilities with a ConfigMap
To enable capability annotations, create a ConfigMap in the kube-public namespace with the appropriate label and data format.
Example YAML:
Key Points:
- metadata.name: Must begin with
sd-, e.g.,sd-configmap1. - metadata.namespace: Must be
kube-public. - metadata.labels: Include
features.alauda.io/type = StorageDescription. - data:
- Each key corresponds to the
provisionerfield in the storage class. - Each value is a YAML string describing the storage's supported capabilities.
- Each key corresponds to the
Step 4: Understand Supported Storage Capability Fields
Here are the supported fields you can define in the ConfigMap:
Step 5: Finalize the Storage Class
Once the above details are set:
- Click Create to save your storage class.
- The platform will automatically match the
provisionerwith the ConfigMap and annotate the storage class with the defined capabilities.
Optional: Create a PVC Using the Annotated Storage Class
When you create a Persistent Volume Claim (PVC) via the form UI, only the supported capabilities from the annotated ConfigMap will be available. Unsupported options will not appear.