12. Kubernetes CSI Driver for PanFS
This chapter explains how to configure and use the Container Storage Interface (CSI) with PanFS. It contains the following sections:
- The PanFS CSI Driver
- Installation, Configuration, and Diagnostics
- Plan Upgrades for Kubernetes Clusters
12.1 The PanFS CSI Driver
Modern containerized workloads often require persistent storage that remains available beyond the lifecycle of individual pods. Kubernetes provides a standardized mechanism for managing such storage through the Container Storage Interface (CSI), an open, community-driven specification that allows any compliant storage system to integrate seamlessly with the Kubernetes ecosystem.
With CSI, Kubernetes takes full responsibility for orchestrating the storage lifecycle, including creating volumes when PersistentVolumeClaims (PVCs) are submitted, attaching them to the appropriate worker nodes, mounting them into workload pods, and later detaching or deleting them as needed. This eliminates manual intervention at the storage backend, enabling developers and operators to define storage requirements declaratively while letting the cluster handle the details.
In this model, the CSI driver serves as the bridge between Kubernetes and the underlying storage system, translating Kubernetes CSI API calls into the native operations required by the backend. Importantly, when using the PanFS/DFC CSI driver, there is no need to pre-create volumes manually within the PanFS realm; the driver will dynamically create and configure them on demand, based on the parameters defined in each PVC.
By implementing a CSI driver for PanFS storage, Kubernetes workloads can take full advantage of the performance, scalability, and reliability of the backend without custom scripts or manual configuration, aligning the storage experience with Kubernetes’ native workflows and best practices.
The PanFS CSI Driver integrates Kubernetes with the PanFS/DirectFlow Client storage backend, enabling seamless, Kubernetes-native dynamic provisioning, attachment, and lifecycle management of volumes without manual creation in the PanFS realm.
12.2 Installation, Configuration, and Diagnostics
The most recent files and documentation can be found at the links below.
IMPORTANT: A GitHub Personal Access Token (PAT) is required for Kubernetes to authenticate with the GitHub container registry. Follow the instructions described in GitHub’s documentation to create a PAT with at least read permissions.
Basic information to get started:
https://github.com/panasasinc/panfs-container-storage-interface-oss
PanFS CSI Driver Architecture Overview:
https://github.com/panasasinc/panfs-container-storage-interface-oss/blob/main/docs/Overview.md
CSI Driver Installation - Quick Start:
PanFS CSI Driver & StorageClass Deployment Guide:
https://github.com/panasasinc/panfs-container-storage-interface-oss/tree/main/deploy/k8s
PanFS CSI Driver Diagnostic Commands Reference:
https://github.com/panasasinc/panfs-container-storage-interface-oss/blob/main/docs/Diagnostic.md
PanFS CSI Driver Upgrade Guide:
https://github.com/panasasinc/panfs-container-storage-interface-oss/blob/main/docs/Upgrade.md
Kernel Module Management (KMM) Guide:
https://github.com/panasasinc/panfs-container-storage-interface-oss/blob/main/docs/KMM.md
PanFS CSI Driver Volume Encryption Guide:
https://github.com/panasasinc/panfs-container-storage-interface-oss/blob/main/docs/Encryption.md
SELinux Configuration Reference for Kubernetes CSI Drivers:
https://github.com/panasasinc/panfs-container-storage-interface-oss/blob/main/docs/SELinux.md
PanFS CSI Driver Usage Guide:
https://github.com/panasasinc/panfs-container-storage-interface-oss/blob/main/docs/Usage-Guide.md
12.3 Plan Upgrades for Kubernetes Clusters
Upgrades of a realm that is used with the CSI driver must be planned and coordinated with VDURA, so that the correct DirectFlow Client software is available for your Kubernetes nodes.
The DirectFlow Client is loaded on Kubernetes nodes through Kernel Module Management (KMM), which needs a DirectFlow Client/KMM image for each Linux kernel version in your cluster. When a new DirectFlow Client release is ready, the process is as follows.
Gather the Linux kernel versions that your cluster uses. Run the following command and send the output to VDURA:
kubectl get nodes -o wideThe output shows the kernel in use on each node.
VDURA builds the DirectFlow Client/KMM images and makes sure that a custom port is available for every kernel version in use.
After each DirectFlow Client build, VDURA gives you the list of supported Linux kernels, the DirectFlow Client/KMM images, and other configuration details. It includes a Kubernetes deployment manifest generated for that release.
Use this information, including the deployment manifest, as the reference for deploying or upgrading to that DirectFlow Client release in your Kubernetes environment.