brew install kind # install kind for Mac
kind create cluster - name rabbitmq
kubectl config get-contexts
kubectl apply -f https://github.com/rabbitmq/cluster-operator/releases/latest/download/cluster-operator.yml
Enter fullscreen mode
Exit fullscreen mode
# rabbit-cluster.yaml
apiVersion : rabbitmq.com/v1beta1
kind : RabbitmqCluster
metadata :
name : rabbitmq-cluster
spec :
replicas : 2
rabbitmq :
additionalConfig : |
default_user=arnold
default_pass=password
Enter fullscreen mode
Exit fullscreen mode
kubectl apply -f rabbit-cluster.yaml
kubectl get pods -w
kubectl krew install rabbitmq # install rabbitmq plugin
kubectl rabbitmq list
kubectl rabbitmq get rabbitmq-cluster
kubectl rabbitmq manage rabbitmq-cluster
kubectl port-forward “service/rabbitmq-cluster” 15672
kubectl rabbitmq secrets rabbitmq-cluster
kubectl rabbitmq rabbitmq-perf-test rabbitmq-cluster # testing
kubectl delete pod/rabbitmq-perf-test
Enter fullscreen mode
Exit fullscreen mode
# download files from https://github.com/rabbitmq/cluster-operator/tree/main/observability
# run this if you need permission: chmod +x quickstart.sh
./quickstart.sh
Enter fullscreen mode
Exit fullscreen mode
Top comments (0)