You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The commands in the Quickstart section of the readme do not successfully spin up a Kafka cluster. kubectl create namespace kafka obviously works by itself, but in zsh, I get the following error when running the kubectl apply -k github.com/Yolean/kubernetes-kafka/variants/dev-small/?ref=v6.0.3 command:
❯ k apply -k github.com/Yolean/kubernetes-kafka/variants/dev-small/?ref=v6.0.3
zsh: no matches found: github.com/Yolean/kubernetes-kafka/variants/dev-small/?ref=v6.0.3
Solution to Problem 1
Adding quotes around the URL allows zsh to interpret the command correctly.
❯ k apply -k "github.com/Yolean/kubernetes-kafka/variants/dev-small/?ref=v6.0.3"
role.rbac.authorization.k8s.io/pod-labler created
clusterrole.rbac.authorization.k8s.io/node-reader created
rolebinding.rbac.authorization.k8s.io/kafka-pod-labler created
clusterrolebinding.rbac.authorization.k8s.io/kafka-node-reader created
configmap/broker-config created
configmap/zookeeper-config created
service/bootstrap created
service/broker created
service/pzoo created
service/zoo created
service/zookeeper created
statefulset.apps/kafka created
statefulset.apps/pzoo created
statefulset.apps/zoo created
However, there is a separate problem that occurs with config itself for the dev-small variant.
Problem 2
After the config is successfully applied, if you check the pods, you'll see that the Zookeeper pod is stuck in an unready state, which causes the Kafka pod to be stuck in a restart loop.
❯ kubectl get pods -n kafka
NAME READY STATUS RESTARTS AGE
kafka-0 0/1 Running 2 36s
pzoo-0 0/1 Running 0 36s
This appears to be due to a failing readiness probe
Environment Details
zsh 5.8 (x86_64-apple-darwin20.0)
Problem 1
The commands in the Quickstart section of the readme do not successfully spin up a Kafka cluster.
kubectl create namespace kafka
obviously works by itself, but in zsh, I get the following error when running thekubectl apply -k github.com/Yolean/kubernetes-kafka/variants/dev-small/?ref=v6.0.3
command:Solution to Problem 1
Adding quotes around the URL allows zsh to interpret the command correctly.
❯ k apply -k "github.com/Yolean/kubernetes-kafka/variants/dev-small/?ref=v6.0.3" role.rbac.authorization.k8s.io/pod-labler created clusterrole.rbac.authorization.k8s.io/node-reader created rolebinding.rbac.authorization.k8s.io/kafka-pod-labler created clusterrolebinding.rbac.authorization.k8s.io/kafka-node-reader created configmap/broker-config created configmap/zookeeper-config created service/bootstrap created service/broker created service/pzoo created service/zoo created service/zookeeper created statefulset.apps/kafka created statefulset.apps/pzoo created statefulset.apps/zoo created
However, there is a separate problem that occurs with config itself for the
dev-small
variant.Problem 2
After the config is successfully applied, if you check the pods, you'll see that the Zookeeper pod is stuck in an unready state, which causes the Kafka pod to be stuck in a restart loop.
This appears to be due to a failing readiness probe
Not sure how to resolve this one. Hoping someone has some insight! Would love to use this repo for Kafka development!
The text was updated successfully, but these errors were encountered: