Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Dynamic Provisioning

These steps describe how to create a dynamically provisioned volume using OCI Volume plugin.

  1. Prepare a storageclass.yaml file with StorageClass manifest for OCI File Storage:

Code Block
languageyaml
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

kmsKeyOcid property is optional and can be omitted if data is encrypted at rest using encryption keys managed by Oracle. Only specify if user managed encryption key is used, i.e., kms_key_ocid from terraform output isn't empty.

  1. Deploy the storage class

Code Block
languagebash
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.

...