<p>I am trying to learn more about Kubernetes in my spare time.</p>

<p>At the moment I am trying to setup RabbitMQ, so I went here: <a href="https://github.com/bitnami/charts/tree/master/bitnami/RabbitMQ" rel="nofollow noreferrer">https://github.com/bitnami/charts/tree/master/bitnami/RabbitMQ</a>.  I have done this:</p>

<pre><code>helm install my-release --set rabbitmq.username=admin,rabbitmq.password=secretpassword,rabbitmq.erlangCookie=secretcookie bitnami/rabbitmq
</code></pre>

<p>then:</p>

<pre><code>kubectl port-forward --namespace default svc/my-release-rabbitmq 15672:15672
</code></pre>

<p>I can then browse to <a href="http://localhost:15672/" rel="nofollow noreferrer">http://localhost:15672/</a> </p>

<p>Powershell says this:</p>

<p><a href="https://i.stack.imgur.com/x5UJx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x5UJx.png" alt="enter image description here"></a></p>

<p>I am interested in this (from Poweshell):</p>

<pre><code>echo "Password      : $(kubectl get secret --namespace default my-release-rabbitmq -o jsonpath="{.data.rabbitmq-password}" | base64 --decode)"
</code></pre>

<p>How do I get the password?</p>

<p>This has worked for me:</p>

<p>1)     <code>helm install release --set rabbitmq.username=admin,rabbitmq.password=secretpassword,rabbitmq.erlangCookie=secretcookie bitnami/rabbitmq</code></p>

<p>2) <code>kubectl port-forward --namespace default svc/my-release-rabbitmq 15672:15672</code></p>

<p>3) browse to: <code>localhost:15672</code></p>

<p>4) login as: <code>admin/secretpassword</code></p>

<p>I am using Helm 3 so I had to say: <code>helm install release</code> instead of just <code>helm install</code> i.e. I had to specify a name.</p>

<p>Also note that I had to change the name to release instead of my-release as it does not like the dash (in step 1 and step 2).  I am using Windows (Docker for Windows with Linux containers if that makes a difference).</p>
