Expose grafana as NodePort service and open it on k3d #655
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In order to improve the ux for Grafana, this PR exposes the grafana service as NodePort (
30030
-> pod's3000
) and then on the k3d side we open port3000 -> 30030
(similarly as for Prometheus, b/c there is a restriction that30k < 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 toadmin:admin
, the web ui will ask to change it (before the change one had to runkubectl 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