Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-65000

Add a recording rule that will report suspected orphaned PVCs

XMLWordPrintable

    • Product / Portfolio Work
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None

      We need a way to identify the PVC that their VMs were deleted.
      They might be eligible for deletion.

      I believe this query can report the list of Suspected as Orphaned PVCs:

      ((
        kube_persistentvolumeclaim_info
        unless on(namespace,persistentvolumeclaim)
          (
            kube_pod_spec_volumes_persistentvolumeclaims
            or
            kubevirt_vm_disk_allocated_size_bytes
          )
      )
      * on(namespace,persistentvolumeclaim) group_left()
        kube_persistentvolumeclaim_resource_requests_storage_bytes)

              sradco Shirly Radco
              sradco Shirly Radco
              Krzysztof Majcher Krzysztof Majcher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: