DEV Community

Agus Sudarmanto
Agus Sudarmanto

Posted on

1

Commands for RabbitMQ

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

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay