Getting started with Kubernetes Persistent File Storage

I have recently created a number of blogs posts on running containerised Oracle databases on Kubernetes using the Pure Storage Container Storage Interface (CSI) Driver Pure Service Orchestrator (PSO) to provide persistent block storage to my Oracle database containers using the Pure Service Orchestrator.

In this Blog I am going to show how it’s equally easy to create persistent file storage using the Pure Service Orchestrator CSI Driver.

Persistent Volume Creation – NFS

Below is an extract from my persistent volume claim yaml file, this shows a mount point which I will be using to deliver an Oracle 19c database in a future blog post.

---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: ora-data193-nfs
  namespace: oracle-namespace
  labels:
    app: database
    version: 19.3.0.1
spec:
  storageClassName: pure-file
  accessModes:
    - ReadWriteMany
  resources:
    requests:
     storage: 20Gi
...
$ kubectl apply -f pvc-nfs.yaml -n oracle-namespace
persistentvolumeclaim/ora-data193-nfs created

We can review our persistent volume claims using kubectl get pvc

$ kubectl get pvc/ora-data193-nfs -n oracle-namespace
NAME            STATUS VOLUME                                 CAPACITY ACCESS MODES  STORAGECLASS
ora-data193-nfs Bound  pvc-43b05441-7699-4137-932f-2b258c3a75ea 20Gi     RWX            pure-file
Kubernets Dashboard – Persistent Volume Claims
FlashBlade File Systems

If you’re just getting started with Kubernetes, or have missed my previous posts, here you go.

One thought on “Getting started with Kubernetes Persistent File Storage

Add yours

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: