Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadmcrowell/c9b12f32e180a6ad3dc060cdd6d63f05 to your computer and use it in GitHub Desktop.
Save chadmcrowell/c9b12f32e180a6ad3dc060cdd6d63f05 to your computer and use it in GitHub Desktop.
Installing the Prometheus and Grafana Operator
# add bitnami repo for access to prometheus helm chart
helm repo add bitnami https://charts.bitnami.com/bitnami
# install prometheus operator via helm chart
helm install prometheus bitnami/kube-prometheus
# watch as pods are created
kubectl get po -w
# customize the helm chart for grafana dashboard
cat << EOF > ./values.yaml
grafana:
service:
type: NodePort
EOF
# install grafana operator via helm chart
helm install grafana -f values.yaml bitnami/grafana-operator
# watch pods as they are created
kubectl get po -w
# get the nodeport
kubectl get svc
# get the password to login to grafana
echo "Password: $(kubectl get secret grafana-admin-credentials -o jsonpath="{.data.GF_SECURITY_ADMIN_PASSWORD}" | base64 --decode)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment