From e63ad3ad429513a731778f118283092e9efab83f Mon Sep 17 00:00:00 2001 From: makefunstuff Date: Fri, 28 Jun 2024 00:50:06 +0300 Subject: grafana --- helmfile.yaml | 3 ++- third-party/gitea/gitea_values.yaml | 30 ------------------------------ third-party/gitea/helmfile.yaml | 12 ------------ third-party/grafana/helmfile.yaml | 10 ++++++++++ third-party/grafana/values.yaml | 31 +++++++++++++++++++++++++++++++ third-party/prometheus/helmfile.yaml | 11 +++++++++++ third-party/prometheus/values.yaml | 8 ++++++++ 7 files changed, 62 insertions(+), 43 deletions(-) delete mode 100644 third-party/gitea/gitea_values.yaml delete mode 100644 third-party/gitea/helmfile.yaml create mode 100644 third-party/grafana/helmfile.yaml create mode 100644 third-party/grafana/values.yaml create mode 100644 third-party/prometheus/helmfile.yaml create mode 100644 third-party/prometheus/values.yaml diff --git a/helmfile.yaml b/helmfile.yaml index 66b7593..c1b6ea8 100644 --- a/helmfile.yaml +++ b/helmfile.yaml @@ -1,2 +1,3 @@ helmfiles: - - path: ./third-party/gitea/helmfile.yaml + - path: ./third-party/prometheus/helmfile.yaml + - path: ./third-party/grafana/helmfile.yaml diff --git a/third-party/gitea/gitea_values.yaml b/third-party/gitea/gitea_values.yaml deleted file mode 100644 index 4979b60..0000000 --- a/third-party/gitea/gitea_values.yaml +++ /dev/null @@ -1,30 +0,0 @@ -replicaCount: 1 - -image: - registry: docker.io - repository: bitnami/gitea - tag: 1.14.2 - -service: - type: LoadBalancer - port: 3000 - -ingress: - enabled: true - hostname: gitea.localhost - path: / - tls: false - -gitea: - admin: - username: admin - password: adminpassword - email: admin@example.com - -resources: - requests: - memory: 512Mi - cpu: 250m - limits: - memory: 1Gi - cpu: 500m diff --git a/third-party/gitea/helmfile.yaml b/third-party/gitea/helmfile.yaml deleted file mode 100644 index 4471d47..0000000 --- a/third-party/gitea/helmfile.yaml +++ /dev/null @@ -1,12 +0,0 @@ -repositories: - - name: gitea - url: https://charts.bitnami.com/bitnami - -releases: - - name: gitea - namespace: gitea - chart: gitea/gitea - version: 2.2.0 - values: - - ./gitea_values.yaml - - ../../shared-values/common_values.yaml diff --git a/third-party/grafana/helmfile.yaml b/third-party/grafana/helmfile.yaml new file mode 100644 index 0000000..3c98528 --- /dev/null +++ b/third-party/grafana/helmfile.yaml @@ -0,0 +1,10 @@ +repositories: + - name: grafana + url: https://grafana.github.io/helm-charts + +releases: + - name: grafana + namespace: monitoring + chart: grafana/grafana + values: + - ./values.yaml diff --git a/third-party/grafana/values.yaml b/third-party/grafana/values.yaml new file mode 100644 index 0000000..fb6a2e0 --- /dev/null +++ b/third-party/grafana/values.yaml @@ -0,0 +1,31 @@ +adminUser: admin +adminPassword: secret +persistence: + enabled: true + size: 5Gi +datasources: + datasources.yaml: + apiVersion: 1 + datasources: + - name: Prometheus + type: prometheus + url: http://prometheus-server + access: proxy + isDefault: true +service: + type: ClusterIP + port: 80 +ingress: + enabled: true + annotations: + traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" + traefik.ingress.kubernete.io/router.tls.certresolver: default + traefik.ingress.kubernetes.io/router.tls.domains.0.main: topkek.cloud + traefik.ingress.kubernetes.io/router.tls.domains.0.sans: grafana.topkek.cloud + labels: {} + hosts: + - grafana.topkek.cloud + path: / + pathType: Prefix diff --git a/third-party/prometheus/helmfile.yaml b/third-party/prometheus/helmfile.yaml new file mode 100644 index 0000000..3b3fae3 --- /dev/null +++ b/third-party/prometheus/helmfile.yaml @@ -0,0 +1,11 @@ +repositories: + - name: prometheus-community + url: https://prometheus-community.github.io/helm-charts + +releases: + - name: prometheus + namespace: monitoring + chart: prometheus-community/prometheus + version: 14.11.1 + values: + - ./values.yaml diff --git a/third-party/prometheus/values.yaml b/third-party/prometheus/values.yaml new file mode 100644 index 0000000..3da4c7e --- /dev/null +++ b/third-party/prometheus/values.yaml @@ -0,0 +1,8 @@ +server: + persistentVolume: + enabled: true + size: 10Gi +alertmanager: + persistentVolume: + enabled: true + size: 2Gi -- cgit 1.4.1-2-gfad0