From df9a7cfe7e6b83fb85ae0e53ba0c59ef1731a811 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Mon, 19 Dec 2022 17:53:24 -0800 Subject: [PATCH] Fix log collection in GKE Autopilot with fluentd (#609) This change starts the transition towards assuming that containerd is the container engine used by default instead of trying to detect it. We are confident that at least GKE Autopilot don't use the docker engine anymore so we can exclude the autodection for that distribution. We will be adding other distributions to the exclusion list going forward, and eventually we can drop support of docker engine. --- CHANGELOG.md | 3 +- .../templates/configmap-fluentd-cri.yaml | 51 ------------------- .../templates/configmap-fluentd.yaml | 36 +++++++++++++ .../templates/daemonset.yaml | 17 +++---- .../logs-only/configmap-fluentd-cri.yaml | 51 ------------------- .../logs-only/configmap-fluentd.yaml | 31 +++++++++++ rendered/manifests/logs-only/daemonset.yaml | 14 ++--- 7 files changed, 80 insertions(+), 123 deletions(-) delete mode 100644 helm-charts/splunk-otel-collector/templates/configmap-fluentd-cri.yaml delete mode 100644 rendered/manifests/logs-only/configmap-fluentd-cri.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 17da56b757..5b9c12fb08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed -- Make sure the daemonset can start in GKE Autopiot (#602) +- Make sure the daemonset can start in GKE Autopiot (#608) +- Make containerd engine default in for fluentd logs and use always use it in GKE Autopiot (#609) ## [0.66.1] - 2022-12-08 diff --git a/helm-charts/splunk-otel-collector/templates/configmap-fluentd-cri.yaml b/helm-charts/splunk-otel-collector/templates/configmap-fluentd-cri.yaml deleted file mode 100644 index 85ef3bb6f1..0000000000 --- a/helm-charts/splunk-otel-collector/templates/configmap-fluentd-cri.yaml +++ /dev/null @@ -1,51 +0,0 @@ -{{ $agent := fromYaml (include "splunk-otel-collector.agent" .) }} -{{- if and (eq (include "splunk-otel-collector.logsEnabled" .) "true") $agent.enabled (eq .Values.logsEngine "fluentd") }} -{{/* -Fluentd config parts applied only to clusters with containerd/cri-o runtime. -*/}} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ template "splunk-otel-collector.fullname" . }}-fluentd-cri - labels: - {{- include "splunk-otel-collector.commonLabels" . | nindent 4 }} - app: {{ template "splunk-otel-collector.name" . }} - chart: {{ template "splunk-otel-collector.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -data: - - source.containers.parse.conf: |- - @type regexp - expression /^(?