Lightbits Kubernetes Configuration
This article discusses how to connect Lightbits to Kubernetes for use with persistent volumes.
Configuring Lightbits with Kubernetes
To configure Lightbits with Kubernetes:
Downloading and Installing Packages
Download the CSI plugin tarball and unpack (Note: Cross-check the latest version with Lightbits Support):
Create the Snapshot controller if not already available:
Create the CSI plugin with the discovery-client from the extracted yaml file:
Check the install:
Expect to see that all pods are in a Ready state and there are no errors.
Configuring the Secret And Storage Class
Grab JWT from the Lightbits cluster and export it:
Convert the JWT to base 64:
Copy the output and add it to the secrets file:
First, open the secrets file in examples/secrets-and-storage-class.yaml.
Next, paste in the JWT on the next line under jwt: |-, ensuring that the JWT is on one line and the pipe dash symbol stays as |-.
Finally, change the management IP addresses in the file.
The file should look like the example below:
Create the secrets and first storage class:
Check the status:
Testing the Configuration
The examples/filesystem-workload.yaml file provided with the supplementary package contains two manifests:
PVC named
example-fs-pvc, referencingexample-scStorageClass created above.POD named
example-fs-pod, binding toexample-fs-pvc.
Deploying PVC and POD
To deploy the PVC and the POD, run:
Verifying Deployment
Using the following command, we will see the PV, PVC resources in Bound status and POD in READY state.
If there are any errors, use the command below to view the logs:
Verify that the Lightbits volume (PersistentVolume) is mounted to/mnt/test. There should be files in the directory such as an output of the hostname.
Deleting PVC and POD
© 2026 Lightbits Labs™