Setting Up Storage for Kubernetes Clusters
Container storage via a container's root file system is ephemeral, and can disappear upon container deletion and creation. To provide a durable location to prevent data from being lost, you can create and use persistent volumes to store data outside of containers.
A persistent volume offers persistent storage that enables your data to remain intact, regardless of whether the containers to which the storage is connected are terminated.
A persistent volume claim (PVC) is a request for storage, which is met by binding the PVC to a persistent volume (PV). A PVC provides an abstraction layer to the underlying storage.
With Oracle Cloud Infrastructure, you can provision persistent volume claims:
- By attaching volumes from the Oracle Cloud Infrastructure Block Volume service. The volumes are connected to clusters created by Container Engine for Kubernetes using FlexVolume and CSI (Container Storage Interface) volume plugins deployed on the clusters. See Provisioning PVCs on the Block Volume Service.
- By mounting file systems in the Oracle Cloud Infrastructure File Storage service. The File Storage service file systems are mounted inside containers running on clusters created by Container Engine for Kubernetes using a CSI (Container Storage Interface) volume plugin deployed on the clusters. See Provisioning PVCs on the File Storage Service.
By default, Oracle encrypts customer data at rest in persistent storage. Oracle manages this default encryption with no action required on your part.
For more information about persistent volumes, persistent volume claims, and volume plugins, see the Kubernetes documentation.
The information in this section only applies to managed node pools and managed nodes, and not to virtual node pools and virtual nodes. Containers running on virtual nodes cannot access persistent storage.