This validator detects a condition when a PersistentVolume is not used or referenced from PersistentVolumeClaim.
Affected Resources: Deployment, DaemonSet, StatefulSet, CronJob, Job, ReplicaSet, Pod
apiVersion: v1
kind: PersistentVolume
metadata:
name: pvc-00000000-0000-0000-0000-000000000000 # This PV is not used
...
apiVersion: v1
kind: PersistentVolumeClaim
spec:
resources:
requests:
storage: 8Gi
volumeMode: Filesystem
volumeName: pvc-00000000-0000-0000-0000-000000000000 # Reference here
accessModes:
- ReadWriteOnce
storageClassName: gp2
Please let us know if there are other built-in validation rules you would like to see in Kubevious to detect misconfigurations and violations to best practices. Optionally, you can provide your details so we can reach out to you with follow-up questions.