FEAT: replace bitnami prometheus/grafana chart with prometheus-community

This commit is contained in:
Sebastian Mark 2021-12-03 15:28:17 +01:00
parent 7e2bbf8111
commit 92296bf1ae
3 changed files with 17 additions and 38 deletions

View file

@ -4,6 +4,5 @@ Install:
* [NGINX Ingress Controller](https://kubernetes.github.io/ingress-nginx/)
* [cert-manager](https://cert-manager.io/)
* [metrics-server](https://github.com/bitnami/charts/tree/master/bitnami/metrics-server)
* [prometheus](https://github.com/bitnami/charts/tree/master/bitnami/kube-prometheus) and
[grafana](https://github.com/bitnami/charts/tree/master/bitnami/grafana) for ingress stats
* [prometheus and grafana](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)
* [keel](https://keel.sh)

View file

@ -1,26 +1,13 @@
---
apiVersion: v1
kind: Secret
metadata:
name: grafana-datasource
namespace: metrics
stringData:
grafana-datasource.yaml: |
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: server
url: http://prometheus-kube-prometheus-prometheus:9090
---
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana-dashboard
name: grafana-nginx-dashbaord
namespace: metrics
labels:
grafana_dashboard: "1"
data:
grafana-dashboard.json: |
nginx.json: |
{
"__inputs": [
{

View file

@ -1,5 +1,6 @@
---
helm_repos:
- { repo: prometheus-community, url: https://prometheus-community.github.io/helm-charts }
- { repo: bitnami, url: https://charts.bitnami.com/bitnami }
- { repo: ingress-nginx, url: https://kubernetes.github.io/ingress-nginx }
- { repo: jetstack, url: https://charts.jetstack.io }
@ -17,27 +18,19 @@ helm_charts:
kubelet-insecure-tls: true
kubelet-preferred-address-types: InternalIP
- chart: bitnami/kube-prometheus
name: prometheus
- chart: prometheus-community/kube-prometheus-stack
name: monitoring
namespace: metrics
vals:
prometheus:
persistence:
enabled: true
- chart: bitnami/grafana
name: grafana
namespace: metrics
vals:
persistence:
enabled: false
dashboardsProvider:
enabled: true
datasources:
secretName: grafana-datasource
dashboardsConfigMaps:
- configMapName: grafana-dashboard
fileName: grafana-dashboard.json
prometheusSpec:
storageSpec:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi
- chart: ingress-nginx/ingress-nginx
name: ingress-nginx
@ -52,7 +45,7 @@ helm_charts:
serviceMonitor:
enabled: true
additionalLabels:
app.kubernetes.io/instance: prometheus
release: monitoring # same as prometheus-community chart name
- chart: jetstack/cert-manager
name: cert-manager