question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to change dashboard / grafana login credentials?

See original GitHub issue

Please run microk8s.inspect and attach the generated tarball to this issue.

We appreciate your feedback. Thank you for using microk8s. https://127.0.0.1:16443/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy

It prompts for username/password…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
keltik85commented, Apr 4, 2019

Hi, I did the following to get microk8s running (using this guide):

root@my-pc~# sudo snap install microk8s --classic
root@my-pc~# microk8s.enable dns dashboard

root@my-pc:/home/myuser/Downloads/microservices-demo# kubectl cluster-info
Kubernetes master is running at https://127.0.0.1:16443
Heapster is running at https://127.0.0.1:16443/api/v1/namespaces/kube-system/services/heapster/proxy
KubeDNS is running at https://127.0.0.1:16443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Grafana is running at https://127.0.0.1:16443/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy
InfluxDB is running at https://127.0.0.1:16443/api/v1/namespaces/kube-system/services/monitoring-influxdb:http/proxy

Problem is I cant access the Grafana Board at https://127.0.0.1:16443/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy , because i don’t know where to look up the username/password that is generated by default.

EDIT:

OK I found the default username/password in the file: /var/snap/microk8s/current/credentials/basic_auth.csv

4reactions
ktsakalozoscommented, Mar 27, 2019

Right now this username/password are random strings created at MicroK8s install time. You should be able to add more uses in /var/snap/microk8s/current/credentials/basic_auth.csv. You can read more here: https://kubernetes.io/docs/reference/access-authn-authz/authentication/#static-password-file

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Grafana authentication
Grafana of course has a built in user authentication system with password authentication enabled by default. You can disable authentication by enabling ...
Read more >
Manage user preferences | Grafana documentation
Sign in to Grafana. Hover your mouse over the user icon in the lower-left corner of the page. Click Change Password. Grafana opens...
Read more >
Sign in to Grafana | Grafana documentation
On the signin page, enter admin for username and password. Click Sign in. If successful, you will see a prompt to change the...
Read more >
Configure authentication | Grafana documentation
Grafana of course has a built in user authentication system with password authentication enabled by default. You can disable authentication by enabling ...
Read more >
Server user management | Grafana documentation
Update name, email, or username, Is the user notified of these changes?. Click Save after you make a change. Change the user's password,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found