...
Dynamic Provisioning (Deprecated)
Static Provisioning (preferred way)
Dynamic Provisioning
These steps describe how to create a dynamically provisioned volume using OCI Volume plugin.
Prepare a
storageclass.yaml
file with StorageClass manifest for OCI File Storage:
Code Block | ||
---|---|---|
| ||
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: fss-dyn-storage
provisioner: fss.csi.oraclecloud.com
parameters:
availabilityDomain: <availability_Domain>
mountTargetSubnetOcid: <mount_target_subnet_ocid from terraform output>
kmsKeyOcid: <kms_key_ocid from terraform output, omit if terraform output is empty> |
Note |
---|
|
Deploy the storage class
Code Block | ||
---|---|---|
| ||
kubectl apply -f storageclass.yaml |
For more information, please refer to the dynamic provisioning documentation.
Static Provisioning
These steps describe how to create a PVC by creating a PV backed by the new file system and then create the PVC and binds the PVC to the PV backed by the File Storage service.
...