为什么 Keycloak 无法在我使用 Rook 的一个 Master 和一个 Worker Kubernetes 集群中正常运行?

为什么 Keycloak 无法在我使用 Rook 的一个 Master 和一个 Worker Kubernetes 集群中正常运行?

车问题 | PVC

目前,Rook 似乎无法正常工作,但需要注意的是,我只有一个 Master 和一个 worker,这只是为了测试目的。

以下是我遵循的步骤:

kubectl create -f crds.yaml -f common.yaml -f operator.yaml
kubectl create -f cluster.yaml
│ NAMESPACE↑     NAME                                               PF   READY  RESTARTS STATUS IP      NODE│
│ default        keycloak-0                                         ●    0/1    0 Init:0/2  Pending  worker1│
│ default        keycloak-postgresql-0                              ●    0/0    0 Pending   Pending  n/a    │
│ rook-ceph      csi-cephfsplugin-provisioner-84cc595b78-js849      ●    5/5    0 Running   *.*.*.*  master │
│ rook-ceph      csi-cephfsplugin-provisioner-84cc595b78-ssqtr      ●    5/5    0 Running   *.*.*.*  worker1│
│ rook-ceph      csi-cephfsplugin-rpg29                             ●    2/2    0 Running   *.*.*.*  master │
│ rook-ceph      csi-cephfsplugin-zx49b                             ●    2/2    0 Running   *.*.*.*  worker1│
│ rook-ceph      csi-rbdplugin-fcdc2                                ●    2/2    0 Running   *.*.*.*  worker1│
│ rook-ceph      csi-rbdplugin-mqtfr                                ●    2/2    0 Running   *.*.*.*  master │
│ rook-ceph      csi-rbdplugin-provisioner-6f6b6b8cd6-9gnr5         ●    5/5    0 Running   *.*.*.*  master │
│ rook-ceph      csi-rbdplugin-provisioner-6f6b6b8cd6-ddxgh         ●    5/5    0 Running   *.*.*.*  worker1│
│ rook-ceph      rook-ceph-crashcollector-worker1-76cbf45f6d-8j62n  ●    1/1    0 Running   *.*.*.*  worker1│
│ rook-ceph      rook-ceph-mgr-a-5cc5d765cc-ghzl7                   ●    2/2    0 Running   *.*.*.*  worker1│
│ rook-ceph      rook-ceph-mon-a-6579b556bc-r28sm                   ●    2/2    0 Running   *.*.*.*  worker1│
│ rook-ceph      rook-ceph-operator-8559cbbf59-x8hlk                ●    1/1    0 Running   *.*.*.*  worker1│
│ rook-ceph      rook-ceph-osd-prepare-master-4c9fp                 ●    0/1    0 Completed *.*.*.*  master │
│ rook-ceph      rook-ceph-osd-prepare-worker1-6r85f                ●    0/1    0 Completed *.*.*.*  worker1│

虽然我的根 pod 看起来没问题,但我遇到了 Keycloak 无法正常运行的问题。以下是相关事件信息:

│   Type     Reason            Age                   From               Message
│   Warning  FailedScheduling  94s (x2 over 7m4s)  default-scheduler  0/2 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/2 nodes are available: 2 No preemption victims found for incoming pod..     │

此外,在PersistentVolumeClaim(PVC)中,我遇到了以下事件:


│ Events:                                                                                                                                                                                                                                  │
│   Type    Reason         Age                    From                         Message                                                                                                                                                     │
│   ----    ------         ----                   ----                         -------                                                                                                                                                     │
│   Normal  FailedBinding  2m50s (x26 over 9m2s)  persistentvolume-controller  no persistent volumes available for this claim and no storage class is set  ```

相关内容