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

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs