Skip to content

Latest commit

 

History

History
 
 

rabbitmq

Katana ML Skipper RabbitMQ Service

RabbitMQ is open source message broker service, it enables services communication and workflow operations. Katana ML Skipper communication service runs on top of RabbitMQ.

Author

Katana ML, Andrej Baranovskij

Instructions

To run all services, check instructions in main README

Running RabbitMQ service locally

  1. Run Docker Compose script
docker-compose up --build -d
  1. RabbitMQ dashboard
http://localhost:15672 (skipper/welcome1)

Build and run Kubernetes Pod

Instructions are based on content explained by That DevOps Guy

  1. Create namespace
kubectl create ns rabbits
  1. Check storage class
kubectl get storageclass
  1. Define RabbitMQ role mappings
kubectl apply -n rabbits -f rabbit-rbac.yaml
  1. Define RabbitMQ secret
kubectl apply -n rabbits -f rabbit-secret.yaml
  1. Define RabbitMQ configs
kubectl apply -n rabbits -f rabbit-configmap.yaml
  1. Create RabbitMQ cluster and pods
kubectl apply -n rabbits -f rabbit-statefulset.yaml
  1. Verify pods
kubectl -n rabbits get pods
  1. Verify assigned persistence volumes
kubectl -n rabbits get pvc
  1. Open external access, to access RabbitMQ UI
kubectl -n rabbits port-forward rabbitmq-0 15672:15672
  1. RabbitMQ UI URL
http://localhost:15672/ (skipper/welcome1)
  1. Scale RabbitMQ cluster
kubectl scale -n rabbits statefulsets rabbitmq --replicas=2
  1. Delete all resources
kubectl delete all --all -n rabbits

Structure

.
├── Dockerfile
├── init.sh
├── rabbit-configmap.yaml
├── rabbit-rbac.yaml
├── rabbit-secret.yaml
├── rabbit-statefulset.yaml
└── README.MD

License

Licensed under the Apache License, Version 2.0. Copyright 2020-2021 Katana ML, Andrej Baranovskij. Copy of the license.