Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth for https services #383

Open
xrpn opened this issue Mar 26, 2019 · 3 comments · Fixed by canonical-web-and-design/tutorials.ubuntu.com#959
Open

auth for https services #383

xrpn opened this issue Mar 26, 2019 · 3 comments · Fixed by canonical-web-and-design/tutorials.ubuntu.com#959

Comments

@xrpn
Copy link

@xrpn xrpn commented Mar 26, 2019

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

We appreciate your feedback. Thank you for using microk8s.

after installing 1.14/stable the following holds:

[inspection-report-20190326_111105.tar.gz](https://github.com/ubuntu/microk8s/files/3009574/inspection-report-20190326_111105.tar.gz)


~$ microk8s.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

(note the https;// ). Available documentation shows http:// and appears not to mention what credentials to use. In /var/snap/microk8s/484/credentials there are some hints, e.g. perhaps user admin, pw admin, but

https://127.0.0.1:16443/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy

trying that and other combinations from basic_auth.csv in the same directory keeps yielding

kind | "Status"
-- | --
apiVersion | "v1"
metadata | {}
status | "Failure"
message | "Unauthorized"
reason | "Unauthorized"
code | 401
@kobaltz

This comment has been minimized.

Copy link

@kobaltz kobaltz commented Mar 26, 2019

The username is admin and the password can be found with microk8s.config. At the very bottom, you should see password: XXXXX

@ktsakalozos

This comment has been minimized.

Copy link
Member

@ktsakalozos ktsakalozos commented Mar 27, 2019

Hi @xrpn

After doing a microk8s.kubectl proxy you should be able to reach grafana from the URL you see with microk8s.kubectl cluster-info.

Available documentation shows http://

We need to do a better job with our docs. Where did you see the http:// reference?

Thanks

@mrmowgli

This comment has been minimized.

Copy link

@mrmowgli mrmowgli commented Apr 13, 2019

The tutorial at https://tutorials.ubuntu.com/tutorial/install-a-local-kubernetes-with-microk8s#4 needs to include this information, otherwise there is no way to access the pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.