Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 909 Bytes

File metadata and controls

30 lines (17 loc) · 909 Bytes

STO-007 PVC has no storage class

Summary

A PVC does not specify storageClassName and relies on the cluster default. If no default StorageClass is set, the PVC can remain Pending indefinitely; behavior also depends on cluster policy and reduces portability.

Severity

Warning

Example

N/A

Symptoms

  • Report shows: PVC <ns>/<name> has no storage class specified
  • PVC spec.storageClassName is empty

Resolution

  1. Set spec.storageClassName explicitly to a StorageClass that exists in the cluster
  2. Or set a default StorageClass in the cluster so unspecified PVCs use it
  3. For cross-environment deployment, specify StorageClass in the manifest for predictability

References