WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • Apple
You are here: Home / Kubernetes / Quick Tip - Access the RabbitMQ management UI when using the Kubernetes operator

Quick Tip - Access the RabbitMQ management UI when using the Kubernetes operator

12.03.2021 by William Lam // Leave a Comment

I was recently working with the RabbitMQ Cluster Kubernetes Operator, which provides an easy way to deploy and manage RabbitMQ clusters using Kubernetes (k8s). In fact, the VMware Event Broker Appliance (VEBA) solution also makes use of RabbitMQ operator as part of its backend infrastructure.

While troubleshooting my RabbitMQ deployment yesterday, I came to learn about a really useful tip in accessing the RabbitMQ management console UI which provides a number of useful pieces of information including resource utilization. Once logged in, we quickly found the issue which was due to memory pressure and once that was resolved, everything was working as expected.


I was not aware that RabbitMQ had this useful dashboard and that you could easily access it once you knew how to retrieve the credentials.

In my setup, I have the RabbitMQ cluster deployed in the vmware-functions k8s namespace and the name of the deployment is called veba-rabbit


Step 1 - Retrieve the username and password for your RabbitMQ cluster by running the following command and replace the namespace and deployment name with the one you used:

kubectl -n vmware-functions get secrets veba-rabbit-default-user -o json | jq -r '.data."default_user.conf"' | base64 -d


Step 2 - Enable port forwarding for the RabbitMQ Cluster on the default port 15672 by running the following command and replace the namespace and deployment name with the one you used:

kubectl -n vmware-functions port-forward services/veba-rabbit 15672


Step 3 - On your local computer, open a web browser to http://localhost:15672 and then login with the credentials from Step 1.

As mentioned earlier, VEBA also uses the RabbitMQ operator and if you wish to access the UI, mainly for educational and learning purposes, the instructions below can be used.

Step 1 - Enable TCP forwarding so that we can use SSH tunnel to access the RabbitMQ UI. SSH to VEBA appliance and edit /etc/ssh/sshd_config and comment AllowTcpForwarding no and then restart SSH by running systemctl restart sshd

Step 2 - Run the following to retrieve the RabbitMQ UI credentials:

kubectl -n vmware-system get secret veba-rabbit-default-user -o json | jq -r '.data."default_user.conf"' | base64 -d

Step 3 - Run the following command to port forward the RabbitMQ cluster:

kubectl -n vmware-system port-forward services/veba-rabbit 15672

Step 4 - On your local computer, open a new SSH session to your VEBA appliance specifying the following:

ssh *protected email* -L 15672:localhost:15672 -N

Note: Once you successfully enter your VEBA credentials, the terminal will look like it is hanging and this is expected

Step 5 - Open a web browser to http://localhost:15672 and then login with the credentials from Step 2.

More from my site

  • vSphere Event-Driven Automation using VMware Event Router on VMware Cloud on AWS with Knative or AWS EventBridge
  • Integrating VMware Event Broker Appliance (VEBA) with Zapier
  • How to configure Knative and containerd in VMware Event Broker Appliance (VEBA) to use a private registry?
  • VMware Event Broker Appliance (VEBA) v0.7.2
  • vSphere Event-Driven Automation using Tanzu Application Platform (TAP) on Tanzu Community Edition
Share this...
  • Twitter
  • Facebook
  • Linkedin
  • Reddit
  • Pinterest

Categories // Kubernetes, VMware Tanzu Tags // RabbitMQ, VMware Event Broker Appliance

Thanks for the comment! Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Support

Recent

  • A first look at the new vSphere+ & vSAN+ Cloud Service 07/01/2022
  • Quick Tip - Prepare VMware Photon OS for use with vSphere Guest OS Customization and cloud-init 06/29/2022
  • Using the new vSphere Guest OS Customization with cloud-init in vSphere 7.0 Update 3 06/27/2022
  • How to forcefully disconnect a vSphere VM Console session? 06/24/2022
  • Quick Tip - Using ESXi Scripted Installation (kickstart) to configure IPv6 networking 06/21/2022

Advertisment

Copyright WilliamLam.com © 2022

 

Loading Comments...