diff --git a/gitops/kustomization.yml b/gitops/kustomization.yml index ebeb8f9..6694f00 100644 --- a/gitops/kustomization.yml +++ b/gitops/kustomization.yml @@ -43,6 +43,7 @@ resources: - grafana-external-secret.yml - cert-manager-argo.yml - loki.yml + - promtail.yml # ELK stack — commented out to avoid resource exhaustion; uncomment to deploy: # - elasticsearch-argo.yml # - logstash-argo.yml diff --git a/gitops/loki.yml b/gitops/loki.yml index c797269..8cee27b 100644 --- a/gitops/loki.yml +++ b/gitops/loki.yml @@ -9,42 +9,60 @@ spec: project: default source: repoURL: 'https://grafana.github.io/helm-charts' - chart: loki-stack - targetRevision: 2.10.2 + chart: loki + targetRevision: 6.7.4 helm: values: | + deploymentMode: SingleBinary + loki: - enabled: true + auth_enabled: false + commonConfig: + replication_factor: 1 + storage: + type: filesystem + schemaConfig: + configs: + - from: "2024-04-01" + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: loki_index_ + period: 24h + + singleBinary: + replicas: 1 resources: requests: - cpu: 50m - memory: 64Mi + cpu: 100m + memory: 128Mi limits: - cpu: 100m - memory: 128Mi - persistence: - enabled: false # prod: true, storageClassName: default, size: 10Gi - config: - table_manager: - retention_deletes_enabled: true - retention_period: 168h # 7 days - promtail: - enabled: true - resources: - requests: - cpu: 25m - memory: 32Mi - limits: - cpu: 50m - memory: 64Mi - grafana: + cpu: 200m + memory: 256Mi + + read: + replicas: 0 + write: + replicas: 0 + backend: + replicas: 0 + + chunksCache: + enabled: false + resultsCache: + enabled: false + + minio: + enabled: false + + gateway: enabled: false - sidecar: - datasources: - isDefaultDatasource: false - prometheus: + + test: enabled: false - fluent-bit: + + lokiCanary: enabled: false destination: server: 'https://kubernetes.default.svc' diff --git a/gitops/promtail.yml b/gitops/promtail.yml new file mode 100644 index 0000000..4986a21 --- /dev/null +++ b/gitops/promtail.yml @@ -0,0 +1,34 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: promtail + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "3" +spec: + project: default + source: + repoURL: 'https://grafana.github.io/helm-charts' + chart: promtail + targetRevision: 6.16.6 + helm: + values: | + config: + clients: + - url: http://loki-stack:3100/loki/api/v1/push + resources: + requests: + cpu: 25m + memory: 32Mi + limits: + cpu: 50m + memory: 64Mi + destination: + server: 'https://kubernetes.default.svc' + namespace: monitoring + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true