From 02b7ed329104207cf8cb21ebcd6a7a9f53889bcc Mon Sep 17 00:00:00 2001 From: Ling Huang Date: Mon, 12 Nov 2018 13:19:29 -0500 Subject: [PATCH] Upgrade Stackdriver Logging Agent addon image to 0.6-1.6.0-1 to use Fluentd v1.2. --- .../fluentd-gcp-configmap-old.yaml | 22 ++++++++++--------- .../fluentd-gcp/fluentd-gcp-configmap.yaml | 22 ++++++++++--------- cluster/gce/config-default.sh | 4 ++-- cluster/gce/config-test.sh | 4 ++-- cluster/gce/gci/configure-helper.sh | 4 ++-- 5 files changed, 30 insertions(+), 26 deletions(-) diff --git a/cluster/addons/fluentd-gcp/fluentd-gcp-configmap-old.yaml b/cluster/addons/fluentd-gcp/fluentd-gcp-configmap-old.yaml index 88125d1fa3f..248a2584c9e 100644 --- a/cluster/addons/fluentd-gcp/fluentd-gcp-configmap-old.yaml +++ b/cluster/addons/fluentd-gcp/fluentd-gcp-configmap-old.yaml @@ -61,16 +61,18 @@ data: # reform.var.log.containers.__-.log tag reform.* read_from_head true - format multi_format - - format json - time_key time - time_format %Y-%m-%dT%H:%M:%S.%NZ - - - format /^(? + + @type multi_format + + format json + time_key time + time_format %Y-%m-%dT%H:%M:%S.%NZ + + + format /^(? + diff --git a/cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml b/cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml index f35eab968c8..2f8a07d31dd 100644 --- a/cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml +++ b/cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml @@ -64,16 +64,18 @@ data: # reform.var.log.containers.__-.log tag reform.* read_from_head true - format multi_format - - format json - time_key time - time_format %Y-%m-%dT%H:%M:%S.%NZ - - - format /^(? + + @type multi_format + + format json + time_key time + time_format %Y-%m-%dT%H:%M:%S.%NZ + + + format /^(? + diff --git a/cluster/gce/config-default.sh b/cluster/gce/config-default.sh index 671c1a5db7b..ffb4356649a 100755 --- a/cluster/gce/config-default.sh +++ b/cluster/gce/config-default.sh @@ -406,8 +406,8 @@ fi # Fluentd requirements # YAML exists to trigger a configuration refresh when changes are made. -FLUENTD_GCP_YAML_VERSION="v3.1.0" -FLUENTD_GCP_VERSION="${FLUENTD_GCP_VERSION:-0.5-1.5.36-1-k8s}" +FLUENTD_GCP_YAML_VERSION="v3.2.0" +FLUENTD_GCP_VERSION="${FLUENTD_GCP_VERSION:-0.6-1.6.0-1}" FLUENTD_GCP_MEMORY_LIMIT="${FLUENTD_GCP_MEMORY_LIMIT:-}" FLUENTD_GCP_CPU_REQUEST="${FLUENTD_GCP_CPU_REQUEST:-}" FLUENTD_GCP_MEMORY_REQUEST="${FLUENTD_GCP_MEMORY_REQUEST:-}" diff --git a/cluster/gce/config-test.sh b/cluster/gce/config-test.sh index c9ce3694c5c..c17a6de1f94 100755 --- a/cluster/gce/config-test.sh +++ b/cluster/gce/config-test.sh @@ -418,8 +418,8 @@ fi # Fluentd requirements # YAML exists to trigger a configuration refresh when changes are made. -FLUENTD_GCP_YAML_VERSION="v3.1.0" -FLUENTD_GCP_VERSION="${FLUENTD_GCP_VERSION:-0.5-1.5.36-1-k8s}" +FLUENTD_GCP_YAML_VERSION="v3.2.0" +FLUENTD_GCP_VERSION="${FLUENTD_GCP_VERSION:-0.6-1.6.0-1}" FLUENTD_GCP_MEMORY_LIMIT="${FLUENTD_GCP_MEMORY_LIMIT:-}" FLUENTD_GCP_CPU_REQUEST="${FLUENTD_GCP_CPU_REQUEST:-}" FLUENTD_GCP_MEMORY_REQUEST="${FLUENTD_GCP_MEMORY_REQUEST:-}" diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index f57f0ba6b6a..1137e086e0d 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -2323,10 +2323,10 @@ function setup-fluentd { fluentd_gcp_configmap_name="fluentd-gcp-config-old" fi sed -i -e "s@{{ fluentd_gcp_configmap_name }}@${fluentd_gcp_configmap_name}@g" "${fluentd_gcp_yaml}" - fluentd_gcp_yaml_version="${FLUENTD_GCP_YAML_VERSION:-v3.1.0}" + fluentd_gcp_yaml_version="${FLUENTD_GCP_YAML_VERSION:-v3.2.0}" sed -i -e "s@{{ fluentd_gcp_yaml_version }}@${fluentd_gcp_yaml_version}@g" "${fluentd_gcp_yaml}" sed -i -e "s@{{ fluentd_gcp_yaml_version }}@${fluentd_gcp_yaml_version}@g" "${fluentd_gcp_scaler_yaml}" - fluentd_gcp_version="${FLUENTD_GCP_VERSION:-0.5-1.5.36-1-k8s}" + fluentd_gcp_version="${FLUENTD_GCP_VERSION:-0.6-1.6.0-1}" sed -i -e "s@{{ fluentd_gcp_version }}@${fluentd_gcp_version}@g" "${fluentd_gcp_yaml}" update-daemon-set-prometheus-to-sd-parameters ${fluentd_gcp_yaml} start-fluentd-resource-update ${fluentd_gcp_yaml}