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

Expose grafana as NodePort service and open it on k3d #655

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

jkremser
Copy link
Member

In order to improve the ux for Grafana, this PR exposes the grafana service as NodePort (30030 -> pod's 3000) and then on the k3d side we open port 3000 -> 30030 (similarly as for Prometheus, b/c there is a restriction that 30k < nodeport < ~32k).
Also changing the order in makefile: 1st deploy the grafana w/ the side-car that watches the configmaps and only then create the configmap (now w/ explicitly set namespace), because sometimes I hit a case when it wasn't picked up correctly

result: no need to run the kubectl port-forward and also setting the credentials to admin:admin, the web ui will ask to change it (before the change one had to run kubectl get secret --namespace k8gb grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo)

cc @kuritka this is the follow-up we were talking about, I didn't want to complicate the previous PR w/ it

Signed-off-by: Jirka Kremser jiri.kremser@gmail.com

Signed-off-by: Jirka Kremser <jiri.kremser@gmail.com>
@k0da
Copy link
Collaborator

k0da commented Oct 14, 2021

That reminds me we should probably finally switch to LB by default in Local setup

@jkremser jkremser merged commit 0953697 into k8gb-io:master Oct 14, 2021
@jkremser jkremser deleted the grafana-expose branch October 14, 2021 16:11
@kuritka
Copy link
Collaborator

kuritka commented Oct 15, 2021

@somaritane , I think it closes #120, WDYT ?

@somaritane
Copy link
Contributor

@kuritka the idea of #120 was to have a publicly available dashboard for k8gb, published on https://grafana.com/grafana/dashboards/?orderBy=name&direction=asc with sample data.

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

Successfully merging this pull request may close these issues.

5 participants