From 2435ad905abd5c94df2be8dd2f995f0353e0e459 Mon Sep 17 00:00:00 2001 From: makefunstuff Date: Sat, 29 Jun 2024 18:10:42 +0300 Subject: eck operator --- cd/tools.yaml | 4 +- tools/eck-operator/Chart.yaml | 12 ++++ tools/eck-operator/values.yaml | 0 tools/loki-promtail/Chart.yaml | 12 ---- tools/loki-promtail/values.yaml | 90 -------------------------- tools/prometheus/Chart.yaml | 10 --- tools/prometheus/templates/network-policy.yaml | 21 ------ tools/prometheus/values.yaml | 11 ---- 8 files changed, 14 insertions(+), 146 deletions(-) create mode 100644 tools/eck-operator/Chart.yaml create mode 100644 tools/eck-operator/values.yaml delete mode 100644 tools/loki-promtail/Chart.yaml delete mode 100644 tools/loki-promtail/values.yaml delete mode 100644 tools/prometheus/Chart.yaml delete mode 100644 tools/prometheus/templates/network-policy.yaml delete mode 100644 tools/prometheus/values.yaml diff --git a/cd/tools.yaml b/cd/tools.yaml index 093dbb8..3283d1c 100644 --- a/cd/tools.yaml +++ b/cd/tools.yaml @@ -11,8 +11,8 @@ spec: path: tools/grafana - chart: prometheus path: tools/prometheus - - chart: loki-promtail - path: tools/loki-promtail + - chart: eck-operator + path: tools/eck-operator template: metadata: name: '{{chart}}' diff --git a/tools/eck-operator/Chart.yaml b/tools/eck-operator/Chart.yaml new file mode 100644 index 0000000..cba80ba --- /dev/null +++ b/tools/eck-operator/Chart.yaml @@ -0,0 +1,12 @@ +apiVersion: v2 +name: eck-operator +description: A Helm chart for deploying my application with ECK operator +type: application +version: 0.1.0 +appVersion: "1.0.0" + +dependencies: + - name: eck-operator + version: "2.13.0" + repository: "https://helm.elastic.co" + diff --git a/tools/eck-operator/values.yaml b/tools/eck-operator/values.yaml new file mode 100644 index 0000000..e69de29 diff --git a/tools/loki-promtail/Chart.yaml b/tools/loki-promtail/Chart.yaml deleted file mode 100644 index 4b039ea..0000000 --- a/tools/loki-promtail/Chart.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v2 -name: loki-promtail -description: A Helm chart for deploying Loki and Promtail -version: 0.1.0 -dependencies: - - name: loki - version: 6.6.4 - repository: "https://grafana.github.io/helm-charts" - - name: promtail - version: 6.16.2 - repository: "https://grafana.github.io/helm-charts" - diff --git a/tools/loki-promtail/values.yaml b/tools/loki-promtail/values.yaml deleted file mode 100644 index e04ea55..0000000 --- a/tools/loki-promtail/values.yaml +++ /dev/null @@ -1,90 +0,0 @@ -loki: - networkPolicy: - enabled: true - namespaceSelector: - matchLabels: - name: monitoring - deploymentMode: SingleBinary - loki: - auth_enabled: false - analytics: - reporting_enabled: false - commonConfig: - replication_factor: 1 - ingester: - chunk_encoding: snappy - storage: - type: filesystem - schemaConfig: - configs: - - from: "2024-06-29" - store: tsdb - object_store: filesystem - schema: v13 - index: - prefix: loki_index_ - period: 24h - limits_config: - retention_period: 14d - mminio: - enabled: true - serviceAccount: - name: "minio-sa-loki" - - singleBinary: - replicas: 1 - limits: - cpu: 3 - memory: 4Gi - requests: - cpu: 2 - memory: 2Gi - extraEnv: - # Keep a little bit lower than memory limits - - name: GOMEMLIMIT - value: 3750MiB - gateway: - replicas: 0 - backend: - replicas: 0 - read: - replicas: 0 - write: - replicas: 0 - chunksCache: - enabled: false - resultsCache: - enabled: false - lokiCanary: - enabled: false - test: - enabled: false -promtail: - fullnameOverride: promtail - config: - clients: - - url: http://loki:3100/loki/api/v1/push - positions: - filename: /run/promtail/positions.yaml - scrape_configs: - - job_name: system - static_configs: - - targets: - - localhost - labels: - job: varlogs - __path__: /var/log/*log - resources: - requests: - cpu: "50m" - memory: "128Mi" - limits: - cpu: "200m" - memory: "256Mi" - persistence: - enabled: true - storageClassName: "standard" - accessModes: - - ReadWriteOnce - size: 5Gi - diff --git a/tools/prometheus/Chart.yaml b/tools/prometheus/Chart.yaml deleted file mode 100644 index 12854a2..0000000 --- a/tools/prometheus/Chart.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v2 -name: prometheus -description: A Helm chart for deploying Prometheus and kube-prometheus-stack -version: 0.1.0 -appVersion: "2.26.0" -dependencies: - - name: prometheus - version: 25.22.0 - repository: "https://prometheus-community.github.io/helm-charts" - diff --git a/tools/prometheus/templates/network-policy.yaml b/tools/prometheus/templates/network-policy.yaml deleted file mode 100644 index 981d050..0000000 --- a/tools/prometheus/templates/network-policy.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: allow-grafana-to-prometheus - namespace: monitoring -spec: - podSelector: - matchLabels: - app.kubernetes.io/name: prometheus - policyTypes: - - Ingress - ingress: - - from: - - podSelector: - matchLabels: - app.kubernetes.io/name: grafana - ports: - - protocol: TCP - port: 9090 - - protocol: TCP - port: 80 diff --git a/tools/prometheus/values.yaml b/tools/prometheus/values.yaml deleted file mode 100644 index ae09083..0000000 --- a/tools/prometheus/values.yaml +++ /dev/null @@ -1,11 +0,0 @@ -prometheus: - alertmanager: - enabled: true - - pushgateway: - enabled: true - - server: - enabled: true - prometheus-node-exporter: - enabled: false -- cgit 1.4.1-2-gfad0