Versions Compared

Key

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

...

These steps describe how to create a dynamically provisioned volume created through OCI File Storage access points and a corresponding persistent volume claim (PVC)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>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

...