Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created December 14, 2019 17:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vfarcic/74bb5cca71123db9be2c81e413d5bfe4 to your computer and use it in GitHub Desktop.
Save vfarcic/74bb5cca71123db9be2c81e413d5bfe4 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 grafana \
stable/grafana \
--namespace metrics \
--version 4.1.3 \
--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 \
--namespace metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment