~/Desktop helm install rabbitmq--test -f rabbitmq.values.yaml stable/rabbitmq -n rabbitmq-test
NAME: rabbitmq-test
LAST DEPLOYED: Thu Apr 1 12:59:26 2021
NAMESPACE: rabbitmq-test
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
** Please be patient while the chart is being deployed **
Credentials:
echo "Username : rabbitmq-admin"
echo "Password : $(kubectl get secret --namespace rabbitmq-test rabbitmq-test -o jsonpath="{.data.rabbitmq-password}" | base64 --decode)"
echo "ErLang Cookie : $(kubectl get secret --namespace rabbitmq-test rabbitmq-test -o jsonpath="{.data.rabbitmq-erlang-cookie}" | base64 --decode)"
RabbitMQ can be accessed within the cluster on port at rabbitmq-test.rabbitmq-test.svc.
To access for outside the cluster, perform the following steps:
To Access the RabbitMQ AMQP port:
echo "URL : amqp://127.0.0.1:5672/"
kubectl port-forward --namespace rabbitmq-test svc/rabbitmq-test 5672:5672
To Access the RabbitMQ Management interface:
echo "URL : http://127.0.0.1:15672/"
kubectl port-forward --namespace rabbitmq-test svc/rabbitmq-test 15672:15672
To access the RabbitMQ Prometheus metrics, get the RabbitMQ Prometheus URL by running:
kubectl port-forward --namespace rabbitmq-test svc/rabbitmq-test 9419:9419 &
echo "Prometheus Metrics URL: http://127.0.0.1:9419/metrics"
Then, open the obtained URL in a browser.
~/Desktop kubectl get secret --namespace rabbitmq-test rabbitmq-test -o jsonpath="{.data.rabbitmq-password}" | base64 --decode
rabbitmq-admin.com%
~/Desktop
-
« 上一篇:
安装kubectl客户端