StatefulSet with volumeClaimTemplates is stuck in Pending

Solution Verified - Updated -

Issue

  • StatefulSet with volumeClaimTemplates is stuck in Pending
$ oc get sts prometheus-k8s -n openshift-monitoring -o yaml
...
  volumeClaimTemplates:
  - apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      creationTimestamp: null
      name: prometheus-k8s-db
    spec:
      accessModes:
      - ReadWriteOnce
      resources:
        requests:
          storage: 40Gi
      storageClassName: my-storage-class
      volumeMode: Filesystem
    status:
      phase: Pending
  • Why doesn't the StatefulSet's spec.volumeClaimTemplates.status.phase transition to another state?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content