diff --git a/charts/k8s-cloudwatch-adapter/Chart.yaml b/charts/k8s-cloudwatch-adapter/Chart.yaml index 911d712..cd1981b 100644 --- a/charts/k8s-cloudwatch-adapter/Chart.yaml +++ b/charts/k8s-cloudwatch-adapter/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: k8s-cloudwatch-adapter description: Helm chart for Kubernetes metrics adapter for Amazon CloudWatch type: application -version: 0.2.1 +version: 0.2.2 appVersion: 0.10.0 diff --git a/charts/k8s-cloudwatch-adapter/templates/deployment.yaml b/charts/k8s-cloudwatch-adapter/templates/deployment.yaml index 884ae82..a101bdb 100644 --- a/charts/k8s-cloudwatch-adapter/templates/deployment.yaml +++ b/charts/k8s-cloudwatch-adapter/templates/deployment.yaml @@ -44,6 +44,11 @@ spec: {{- range $key, $val := .Values.args }} - --{{ $key }}={{ $val }} {{- end }} + env: + {{- range $map := .Values.env }} + - name: {{ $map.name }} + value: {{ $map.value }} + {{- end }} ports: - containerPort: 6443 name: https diff --git a/charts/k8s-cloudwatch-adapter/values.yaml b/charts/k8s-cloudwatch-adapter/values.yaml index 45423d4..c5f2206 100644 --- a/charts/k8s-cloudwatch-adapter/values.yaml +++ b/charts/k8s-cloudwatch-adapter/values.yaml @@ -20,6 +20,11 @@ args: logtostderr: true v: 2 +## Pod environment variables +env: + # e.g. - name: AWS_REGION + # e.g. value: eu-west-1 + replicaCount: 1 ## Labels to be added to the adapter Deployment