Grafana stack
Let's see how to run Grafana stack (GitHub) in a Kubernetes cluster, from a custom chart based on the community repository.
Repository
Make sure to have the devpro Helm repository:
bash
helm repo add devpro https://devpro.github.io/helm-charts
helm repo updateConfiguration
Create the values.yaml file to override default parameters.
yaml
# https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml
grafana:
ingress:
enabled: true
ingressClassName: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
hosts:
- grafana.somedomain
tls:
- secretName: grafana-tls
hosts:
- grafana.somedomainDeployment
Install the application:
bash
helm upgrade --install grafana-stack devpro/grafana-stack -f values.yaml --namespace grafana --create-namespaceWatch objects being created:
bash
kubectl get pod -n grafanaClean-up
Uninstall the application and delete the namespace:
bash
helm uninstall grafana-stack -n grafana
kubectl delete ns grafana