CKA lab · Bind a static volume to a claim
A lab workload needs a 1 GiB claim without dynamic provisioning.

Initial conditions
Use a disposable single-node cluster with a /tmp/ep-data directory on the node. Apply the manifest as storage.yaml.
Objective
Create matching static resources. Use an explicit empty storage class and retain the backing data on claim deletion.
Hint
Match storage class, capacity and access modes.
Solution manifest
apiVersion: v1
kind: PersistentVolume
metadata:
name: ep-static
spec:
capacity:
storage: 2Gi
accessModes: [ReadWriteOnce]
persistentVolumeReclaimPolicy: Retain
storageClassName: ""
hostPath:
path: /tmp/ep-data
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ep-claim
spec:
accessModes: [ReadWriteOnce]
storageClassName: ""
volumeName: ep-static
resources:
requests:
storage: 1GiSolution commands
kubectl apply -f storage.yamlValidate the result
kubectl get pv ep-static
kubectl get pvc ep-claim -o jsonpath="{.status.phase}"Bound is expected. The request fits the volume and volumeName explicitly selects it. This hostPath example is for a single-node lab.
Common mistakes
A default storage class can cause a mismatch. Retain leaves backing data for manual cleanup.
Free official documentation · Verified 26 November 2026
Use your own disposable Kubernetes environment.
