Yolean/kubernetes-kafka

Pod has unbound immediate PersistentVolumeClaims (repeated 3 times)

jiangtao7 opened this issue · 3 comments

Hi folks,

I set up a Kafka cluster failed with this error,

pod has unbound immediate PersistentVolumeClaims (repeated 3 times)
AttachVolume.Attach failed for volume "pvc-2724854c-d725-11e9-8f7a-06b2d39a49ea" : "Error attaching EBS volume \"vol-024a5a1b5b7f1d23c\"" to instance "i-063eabeax5810fdc5" since volume is in "creating" state
Back-off restarting failed container

check pods stauts,

 $ kubectl get pods --namespace kafka
NAME                            READY   STATUS                  RESTARTS   AGE
kafka-0                         0/1     Init:CrashLoopBackOff   7          11m
kafka-1                         0/1     Init:CrashLoopBackOff   7          11m
kafka-2                         0/1     Init:CrashLoopBackOff   7          11m
kafka-manager-58597f449-rdm97   1/1     Running                 0          130m
pzoo-0                          1/1     Running                 0          43m
pzoo-1                          1/1     Running                 0          43m
pzoo-2                          1/1     Running                 0          43m
zoo-0                           1/1     Running                 0          43m
zoo-1                           1/1     Running                 0          43m

Check the volumes, that looks fine,

 $ kubectl get pv
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                STORAGECLASS      REASON   AGE
pvc-2724854c-d725-11e9-8f7a-06b2d39a49ea   10Gi       RWO            Retain           Bound    kafka/data-kafka-0   kafka-broker               26m
pvc-2725a437-d725-11e9-8f7a-06b2d39a49ea   10Gi       RWO            Retain           Bound    kafka/data-kafka-1   kafka-broker               26m
pvc-27270e00-d725-11e9-8f7a-06b2d39a49ea   10Gi       RWO            Retain           Bound    kafka/data-kafka-2   kafka-broker               26m
pvc-a1a79252-d720-11e9-8f7a-06b2d39a49ea   1Gi        RWO            Retain           Bound    kafka/data-pzoo-0    kafka-zookeeper            59m
pvc-a1a8a5cb-d720-11e9-8f7a-06b2d39a49ea   1Gi        RWO            Retain           Bound    kafka/data-pzoo-1    kafka-zookeeper            59m
pvc-a1aa9cba-d720-11e9-8f7a-06b2d39a49ea   1Gi        RWO            Retain           Bound    kafka/data-pzoo-2    kafka-zookeeper            59m
pvc-a1c138d5-d720-11e9-8f7a-06b2d39a49ea   1Gi        RWO            Retain           Bound    kafka/data-zoo-0     kafka-zookeeper            58m
pvc-a1c289f6-d720-11e9-8f7a-06b2d39a49ea   1Gi        RWO            Retain           Bound    kafka/data-zoo-1     kafka-zookeeper            58m

Any thoughts on what is going on here? Any help is appreciated.

role access issue, resolved.

Would had been interested to know how exactly did you resolved it. So it is RBAC issue, but how how was it solved.?

same