Created
October 10, 2023 15:07
-
-
Save chadmcrowell/c9b12f32e180a6ad3dc060cdd6d63f05 to your computer and use it in GitHub Desktop.
Installing the Prometheus and Grafana Operator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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