我使用 nfs-subdir-external-provisioner 作为我的 promethues 的自动 pv 供应器(通过 promethues-operator )我已经成功创建了我们的 sts、pod、pvc、pv,一切看起来都很好。但是如果我使用 kubectl get sts -o yaml ,状态仍然是“阶段:待定”....有人知道吗?
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
name: prometheus-k8s-db
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: managed-nfs-storage
volumeMode: Filesystem
status:
phase: Pending
NAME READY AGE
prometheus-k8s 2/2 26m
NAME READY STATUS RESTARTS AGE
prometheus-k8s-0 2/2 Running 0 28m
prometheus-k8s-1 2/2 Running 0 28m
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
prometheus-k8s-db-prometheus-k8s-0 Bound pvc-77c8035e-fe32-4c0d-8302-930b39979fc1 5Gi RWO managed-nfs-storage 3h57m
prometheus-k8s-db-prometheus-k8s-1 Bound pvc-21989d64-cc89-4aed-bed5-30bd22c0ae35 5Gi RWO managed-nfs-storage 3h57m