do-community / doks-monitoring

DigitalOcean Kubernetes Cluster Monitoring Quickstart
Apache License 2.0
112 stars 69 forks source link

Grafana admin password not set correctly #8

Open dewey opened 4 years ago

dewey commented 4 years ago

It looks like this is related to #1, I just set everything up with the provided manifests and I just can't log into Grafana without getting a "Invalid username or password" error.

data:
  # By default, admin-user is set to `admin`
  admin-user: admin
  admin-password: "admin"

That's also what I see when I do a:

kubectl get secret monitoring-grafana -o yaml

When I exec into the pod and set it manually it seems to work but I still can't log in with it. Anyone else with a similar problem?

grafana@monitoring-grafana-0:/usr/share/grafana$ grafana-cli admin reset-admin-password newadminpassword
INFO[01-23|20:27:32] Connecting to DB                         logger=sqlstore dbtype=sqlite3
INFO[01-23|20:27:32] Starting DB migration                    logger=migrator

Admin password changed successfully ✔

grafana@monitoring-grafana-0:/usr/share/grafana$ exit

thanks!