Helm/Grafana: Difference between revisions
Jump to navigation
Jump to search
Line 102: | Line 102: | ||
---- | ---- | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
* [https://grafana.com/docs/grafana/latest/setup-grafana/installation/helm/ Grafana » Helm » Install] | * [https://grafana.com/docs/grafana/latest/setup-grafana/installation/helm/ Grafana » Helm » Install] | ||
* [https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/ Grafana » K8s » Install] | * [https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/ Grafana » K8s » Install] | ||
* [https://grafana.com/grafana/dashboards/ Grafana » Dashboards] | |||
* [https://grafana.com/grafana/ Grafana] | * [https://grafana.com/grafana/ Grafana] | ||
| valign="top" | | |||
| valign="top" | | | valign="top" | | ||
Line 126: | Line 117: | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
* [https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ K8s » Configure Service Accounts for Pods] | |||
* [https://spacelift.io/blog/restart-kubernetes-pods-with-kubectl K8s » Restart Pods With Kubectl] | |||
* [https://medium.com/@pczarkowski/kubernetes-tip-run-an-interactive-pod-d701766a12 K8s » Interactive Pod] | |||
* [https://spacelift.io/blog/restart-kubernetes-pods-with-kubectl K8s » Restart Pods] | |||
* [https://earthly.dev/blog/docker-and-makefiles/ Docker » Makefile] | |||
* [[Kubernetes]] | |||
* [[Minikube]] | |||
* [[Kubectl]] | |||
* [[CURL]] | |||
* [[K8s]] | |||
| valign="top" | | | valign="top" | |
Revision as of 08:34, 1 July 2024
helm repo add grafana https://grafana.github.io/helm-charts helm repo update helm repo list
Config
export KUBECONFIG="${HOME}/.kube/dev-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/gcp-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/config"
Install
kubectl create namespace grafana
cat <<YML | helm install -n grafana grafana grafana/grafana -f -
ingress:
enabled: true
hosts:
- grafana.k8s.local
YML
kubectl get secret -n grafana grafana -o json|jq -r '.data."admin-password"'|base64 -d;echo
kubectl get secret -n grafana grafana -o json|jq -r '.data."admin-user"'|base64 -d;echo
Uninstall
helm uninstall -n grafana grafana
helm delete -n grafana grafana
Playground
helm upgrade --install -f values.yaml grafana grafana/grafana
helm upgrade --install grafana grafana/grafana
helm show values grafana/grafana
|
kubectl exec -n grafana -it grafana-6fd8886fd4-4vwgh -- cat /etc/os-release
kubectl exec -n grafana -it grafana-6fd8886fd4-4vwgh -- bash
kubectl exec -n grafana -it grafana-6fd8886fd4-4vwgh -- sh
|
| |
kubectl delete all --all -n grafana
kubectl delete ing --all -n grafana
kubectl delete sts --all -n grafana
|
kubectl delete svc --all -n grafana
kubectl delete pvc --all -n grafana
kubectl delete pv --all -n grafana
|
| |
kubectl logs -f grafana-6fd8886fd4-4vwgh -n grafana
kubectl rollout restart deploy grafana -n grafana
kubectl rollout restart sts grafana -n grafana
kubectl logs -f grafana-hash -n grafana
|
kubectl config --kubeconfig=${HOME}/.kube/aws-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/dev-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/gcp-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/config view --flatten
|
References
| ||
| ||