RabbitMQ pod Web用户名和密码? [英] RabbitMQ pod web username and password?

查看:1042
本文介绍了RabbitMQ pod Web用户名和密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在业余时间学习有关Kubernetes的更多信息.

此刻我正在尝试设置RabbitMQ,所以我去了这里: https://github.com/bitnami/charts/tree/master/bitnami/RabbitMQ .我已经做到了:

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

然后:

kubectl port-forward --namespace default svc/my-release-rabbitmq 15672:15672

然后我可以浏览到 http://localhost:15672/

Powershell这样说:

我对此感兴趣(来自Poweshell):

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

如何获取密码?

解决方案

这对我有用:

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

2)kubectl port-forward --namespace default svc/my-release-rabbitmq 15672:15672

3)浏览至:localhost:15672

4)登录为:admin/secretpassword

我正在使用Helm 3,所以我不得不说:helm install release而不只是helm install,即我必须指定一个名称.

还请注意,由于不喜欢破折号(在第1步和第2步中),我不得不将其名称更改为release而不是my-release.我正在使用Windows(如果有作用,则将Docker for Windows与Linux容器配合使用).

I am trying to learn more about Kubernetes in my spare time.

At the moment I am trying to setup RabbitMQ, so I went here: https://github.com/bitnami/charts/tree/master/bitnami/RabbitMQ. I have done this:

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

then:

kubectl port-forward --namespace default svc/my-release-rabbitmq 15672:15672

I can then browse to http://localhost:15672/

Powershell says this:

I am interested in this (from Poweshell):

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

How do I get the password?

解决方案

This has worked for me:

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

2) kubectl port-forward --namespace default svc/my-release-rabbitmq 15672:15672

3) browse to: localhost:15672

4) login as: admin/secretpassword

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

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).

这篇关于RabbitMQ pod Web用户名和密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆