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.shor
brew install helmOnce the installation process has been completed, initiate the Helm package manager by typing the following command:
helm initthen:
helm repo add stable https://charts.helm.sh/stableAll 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 rabbitWith 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-systemSTDOUT'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:5672To Access the RabbitMQ Management interface:
kubectl port-forward --namespace rabbit svc/mu-rabbit-rabbitmq 15672:15672