devsmall has "pod has unbound immediate PersistentVolumeClaims" on Docker Desktop?
kenyee opened this issue · 0 comments
kenyee commented
Anyone see this issue on Docker Desktop Mac?
Warning FailedScheduling default-scheduler pod has unbound immediate PersistentVolumeClaims
Looking at the logs, the Kafka can't get to /var/lib and then I looked at the yaml and found out it wanted a drive size of 200GB (only 80GB on docker desktop so not enough space).
I only want to fire up Kafka for test development which doesn't really need persistent storage (don't care if data is not saved when I shut off the containers), so I also tried running
kubectl apply -k github.com/Yolean/kubernetes-kafka/variants/scale-1-ephemeral
but then zookeeper can't get to it's drive, but it looked like the zookeeper yaml only wants 1GB of space.
[2020-05-21 21:51:08,233] ERROR Unable to access datadir, exiting abnormally (org.apache.zookeeper.server.ZooKeeperServerMain)
org.apache.zookeeper.server.persistence.FileTxnSnapLog$DatadirException: Unable to create snap directory /var/lib/zookeeper/data/version-2
at org.apache.zookeeper.server.persistence.FileTxnSnapLog.<init>(FileTxnSnapLog.java:147)
at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:124)
at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:106)
at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:64)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:128)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82)
Unable to access datadir, exiting abnormally