# cd kafka # ./run.sh persistentvolume "datadir-kafka-0" created persistentvolume "datadir-kafka-1" created persistentvolume "datadir-kafka-2" created persistentvolume "datadir-kafka-3" created namespace "kafka" created service "zookeeper" created service "zoo" created statefulset "zoo" created persistentvolumeclaim "datadir-kafka-0" created persistentvolumeclaim "datadir-kafka-1" created persistentvolumeclaim "datadir-kafka-2" created persistentvolumeclaim "datadir-kafka-3" created service "broker" created service "kafka" created statefulset "kafka" created Deploying Kafka and Zookeeper finished. # kubectl get pod --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kafka kafka-0 1/1 Running 5 18m kafka kafka-1 1/1 Running 2 18m kafka kafka-2 1/1 Running 0 12m kafka kafka-3 1/1 Running 0 12m kafka zoo-0 1/1 Running 0 19m kafka zoo-1 1/1 Running 0 18m kafka zoo-2 1/1 Running 0 17m kafka zoo-3 1/1 Running 0 16m kafka zoo-4 1/1 Running 0 15m
等待 kafka Running。后边的步骤和上篇部署章节完全一致。
清除集群
先按上篇方法清除 Fabric 集群,然后:
1 2 3
# cd kafka # ./delete.sh # sudorm -rf /opt/data/kafka