pulsar-manager icon indicating copy to clipboard operation
pulsar-manager copied to clipboard

Question:how to change the default login account and password

Open VINO42 opened this issue 5 years ago • 7 comments

I‘m a newer of Pulsar,so as the pulsar-manger, I deploy my pulsar server on the K8S, But I don't want to use the default pulsar-manger login account:pulsar and the password pulsar, I saw the doc like this:

https://github.com/apache/pulsar-manager/blob/master/src/main/resources/application.properties

So how could I change the default login password and account?

VINO42 avatar May 07 '20 11:05 VINO42

sorry about my english

VINO42 avatar May 07 '20 11:05 VINO42

You can try this image https://hub.docker.com/layers/streamnative/pulsar-manager/0.3.0/images/sha256-56fd8cd6fb5fcc3db4e50c216216b1fbb50533339ea20db6d2048eae98b6ee69?context=explore and use this command to initialize the account and password after deployment.

curl 
    -H "Content-Type: application/json" \
    -X PUT http://backend-service:7750/pulsar-manager/users/superuser \
    -d '{"name": "admin", "password": "apachepulsar", "description": "test", "email": "[email protected]"}'

Reference: https://github.com/apache/pulsar-manager#access-pusar-manager
@Andreby42

tuteng avatar May 08 '20 02:05 tuteng

thank u . I will try it

VINO42 avatar May 08 '20 04:05 VINO42

This port is the port of that service

lijialin-code avatar May 08 '20 06:05 lijialin-code

This port is the port of that service

Do U mean which service does the port belongs to?

VINO42 avatar May 09 '20 05:05 VINO42

we need a better way(besides running curl) to set default use and password.

mingfang avatar Oct 18 '20 07:10 mingfang

For this issue you can deploy a pulsar-manager-batch-job.yaml file which will fix or change the login access in backend-service in this link

After this batch job, you can access your pulsar-manager via dashboard. Thank you.

andik101 avatar May 18 '21 15:05 andik101