VerneMQ cluster with auto-discovery using the unmodified image of vernemq backed by kubernetes 1.5 new StatefulSets Controller
- Create vernemq namespace
kubectl create namespace vernemq
- Create the service and statefulset
kubectl create -f vernemq-ss.yaml
kubectl get pods --namespace vernemq
NAME READY STATUS RESTARTS AGE
vernemq-0 1/1 Running 0 11h
vernemq-1 1/1 Running 0 11h
vernemq-2 1/1 Running 0 11h
kubectl exec -it vernemq-0 --namespace vernemq vmq-admin cluster status
+--------------------+-------+
| Node |Running|
+--------------------+-------+
|[email protected] | true |
|[email protected]| true |
|[email protected]| true |
+--------------------+-------+