From c0148296c4996972f2188566cbed259f396fb77f Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 19 Dec 2022 11:33:02 -0800 Subject: [PATCH] Add a temporary argument required to run collector on GKE Autopilot The argument is a no-op but required to run in GKE/Autopilot --- CHANGELOG.md | 4 ++++ helm-charts/splunk-otel-collector/templates/daemonset.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 505f9dc948..17da56b757 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## Unreleased +### Fixed + +- Make sure the daemonset can start in GKE Autopiot (#602) + ## [0.66.1] - 2022-12-08 ### Fixed diff --git a/helm-charts/splunk-otel-collector/templates/daemonset.yaml b/helm-charts/splunk-otel-collector/templates/daemonset.yaml index dbbd55aa30..90c8dcff61 100644 --- a/helm-charts/splunk-otel-collector/templates/daemonset.yaml +++ b/helm-charts/splunk-otel-collector/templates/daemonset.yaml @@ -221,6 +221,10 @@ spec: {{- else }} - /otelcol - --config=/conf/relay.yaml + {{- if eq .Values.distribution "gke/autopilot" }} + {{- /* Temporary no-op argument required to run collector on GKE Autopilot */}} + - --metrics-addr=0.0.0.0:8889 + {{- end }} {{- end }} {{- if .Values.agent.featureGates }} - --feature-gates={{ .Values.agent.featureGates }}