Skip to content

Monitor Stack

Thanks TechnoTim

Create a Kubernetes Namespace

kubectl create namespace monitoring

username and password

echo -n 'adminuser' > ./admin-user
echo -n 'p@ssword!' > ./admin-password

Create a Kubernetes Secret

 kubectl create secret generic grafana-admin-credentials --from-file=./admin-user --from-file=admin-password -n monitoring

Verify your secret

kubectl describe secret -n monitoring grafana-admin-credentials

You should see

Name:         grafana-admin-credentials
Namespace:    monitoring
Labels:       <none>
Annotations:  <none>

Type:  Opaque

Data
====
admin-password:  9 bytes
admin-user:      9 bytes

Create a values file

Copy values

Github

nano values.yaml

Install helm chart

helm install -n monitoring prometheus prometheus-community/kube-prometheus-stack -f values.yaml