Helm, the Kubernetes application package manager, can streamline the installation process and deploy resources throughout the cluster very quickly. To successfully deploy RabbitMQ, we will have to install the Helm package manager.
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
or
brew install helm
Once the installation process has been completed, initiate the Helm package manager by typing the following command:
helm init
then:
helm repo add stable https://charts.helm.sh/stable
All resources in Kubernetes are started in a namespace. Unless one is specified, the system uses the default namespace. To have better control over the deployment process use the following command to create a distinct namespace:
kubectl create namespace rabbit
With Helm successfully installed and a designated namespace you are ready to start the RabbitMQ deployment process. Enter the following command to apply a default stable/rabbitmq chart from a git repository:
helm install rabbit --set service.type=NodePort stable/rabbitmq --namespace rabbit-system
STDOUT'ta username'i goreceksiniz.
Username'in user
olmasi muhtemel.
- Password icin:
echo $(kubectl get secret --namespace rabbit mu-rabbit-rabbitmq -o jsonpath="{.data.rabbitmq-password}" | base64 --decode)
RabbitMQ can be accessed within the cluster on port at mu-rabbit-rabbitmq.rabbit.svc.cluster.local
kubectl port-forward --namespace rabbit svc/mu-rabbit-rabbitmq 5672:5672
To Access the RabbitMQ Management interface:
kubectl port-forward --namespace rabbit svc/mu-rabbit-rabbitmq 15672:15672