From 7d1208b61649a9661ae9a723a7995e4fa611e096 Mon Sep 17 00:00:00 2001 From: hobord Date: Fri, 11 Oct 2024 15:01:16 +0200 Subject: [PATCH] support additional env variables like GOMEMLIMIT --- charts/doit-eks-lens/Chart.yaml | 2 +- charts/doit-eks-lens/templates/doit-otelcol.yaml | 4 ++++ charts/doit-eks-lens/values.yaml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/doit-eks-lens/Chart.yaml b/charts/doit-eks-lens/Chart.yaml index 8d7f03e..a4b5ec0 100644 --- a/charts/doit-eks-lens/Chart.yaml +++ b/charts/doit-eks-lens/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: doit-eks-lens description: A Helm chart for DoiT EKS lens type: application -version: 1.0.3 +version: 1.0.4 appVersion: "0.0.1" diff --git a/charts/doit-eks-lens/templates/doit-otelcol.yaml b/charts/doit-eks-lens/templates/doit-otelcol.yaml index e2f5601..1f46c72 100644 --- a/charts/doit-eks-lens/templates/doit-otelcol.yaml +++ b/charts/doit-eks-lens/templates/doit-otelcol.yaml @@ -394,6 +394,10 @@ spec: fieldPath: metadata.namespace - name: KUBERNETES_CLUSTER_DOMAIN value: "cluster.local" + {{- range .Values.collector.otelcol.env }} + - name: {{ .name }} + value: {{ .value }} + {{- end }} image: {{ .Values.collector.otelcol.image.repository }}:{{ .Values.collector.otelcol.image.tag }} imagePullPolicy: IfNotPresent livenessProbe: diff --git a/charts/doit-eks-lens/values.yaml b/charts/doit-eks-lens/values.yaml index d8e46fd..83d49dd 100644 --- a/charts/doit-eks-lens/values.yaml +++ b/charts/doit-eks-lens/values.yaml @@ -26,6 +26,9 @@ collector: check_interval: 1s limit_percentage: 70 spike_limit_percentage: 30 + env: + # - name: "GOMEMLIMIT" + # value: "2750MiB" metricsDeploymentId: xxxxxxxxx s3_bucket: "doitintl-eks-metrics-xxxxxxxx-us-east-1"