Skip to content

Commit

Permalink
Add RUN_IN_AWS Environment Variable (#51)
Browse files Browse the repository at this point in the history
* feat(aws): Add RUN_IN_AWS to avoid onPrem detection when IMDS does not respond

* Bump chart version

---------

Co-authored-by: Robin Bourne <[email protected]>
  • Loading branch information
Bourne-ID and Bourne-ID-Work authored Jun 20, 2024
1 parent e476049 commit 678f901
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/cloudzero-cloudwatch-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
name: cloudzero-cloudwatch-metrics
description: A Helm chart to deploy cloudzero-cloudwatch-metrics project

version: 0.0.29
version: 0.0.30
appVersion: "0.0.23"

home: https://cloudzero.github.io/cloudzero-k8s-charts/
Expand Down
4 changes: 4 additions & 0 deletions stable/cloudzero-cloudwatch-metrics/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ spec:
value: "k8s/1.3.0"
- name: TRACK_REPLICA_SETS
value: {{ printf "%v" .Values.trackReplicaSets | default true | quote }}
{{- if .Values.runInAws }}
- name: RUN_IN_AWS
value: "True"
{{- end }}
# Please don't change the mountPath
volumeMounts:
- name: cwagentconfig
Expand Down
3 changes: 3 additions & 0 deletions stable/cloudzero-cloudwatch-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ daemonsetLabels: {}
#openshift: true

metricsCollectionInterval: 120

# For AWS EC2 use - Avoids the use of IMDS for discovery
#runInAws: true

0 comments on commit 678f901

Please sign in to comment.