1 | initial version |
kubectl get pods -n kube-prometheus-stack | grep grafana
kubectl exec -it <pod-name> -n kube-prometheus-stack sh
Replace <pod-name> with the name of the Grafana pod you found in step 1.
cd /etc/grafana
vi grafana.ini
Make the necessary modifications to the file and save your changes.
Exit the Grafana pod:
exit
kubectl delete pod <pod-name> -n kube-prometheus-stack
Replace <pod-name> with the name of the Grafana pod you found in step 1.
The pod will automatically be restarted with the new configuration settings applied.