Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created November 25, 2018 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vfarcic/b94b3b220aab815946d34af1655733cb to your computer and use it in GitHub Desktop.
Save vfarcic/b94b3b220aab815946d34af1655733cb to your computer and use it in GitHub Desktop.
cd k8s-specs
git pull
helm inspect values stable/grafana
cat mon/grafana-values-bare.yml
GRAFANA_ADDR="grafana.$LB_IP.nip.io"
helm install stable/grafana \
--name grafana \
--namespace metrics \
--version 1.17.5 \
--set ingress.hosts="{$GRAFANA_ADDR}" \
--values mon/grafana-values-bare.yml
kubectl -n metrics \
rollout status deployment grafana
open "http://$GRAFANA_ADDR"
kubectl -n metrics \
get secret grafana \
-o jsonpath="{.data.admin-password}" \
| base64 --decode; echo
open "https://grafana.com/dashboards"
open "http://docs.grafana.org/features/datasources/prometheus/#query-variable"
helm delete grafana --purge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment