Skip to content

Commit d38ae61

Browse files
authored
Add environmental variable to determine the agent's cluster name (#167) (#171)
1 parent bcacaf3 commit d38ae61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

charts/amazon-cloudwatch-observability/templates/linux/cloudwatch-agent-custom-resource.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ spec:
191191
valueFrom:
192192
fieldRef:
193193
fieldPath: metadata.namespace
194+
- name: K8S_CLUSTER_NAME
195+
value: {{ $.Values.clusterName }}
194196
{{- with $.Values.tolerations }}
195197
tolerations: {{- toYaml . | nindent 2}}
196198
{{- end }}

0 commit comments

Comments
 (0)