我正在通过 statefulset 部署 stolon(默认来自 stolon repo)。我在 statefulset 配置中定义了
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: stolon-local-storage
resources:
requests:
storage: 1Gi
这是我的存储类:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: stolon-local-storage
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
statefulset 创建得很好,但 pod 有错误: pod has unbound immediate PersistentVolumeClaims
我该如何解决?