From 32dafbe0c6103d955704cb7110eb80a675697abc Mon Sep 17 00:00:00 2001 From: Sanjev Moganadas Date: Thu, 13 Dec 2018 03:30:54 +1100 Subject: [PATCH] Added ability to configure daemonset update strategy (#9911) Signed-off-by: sanjevsunder --- incubator/fluentd-cloudwatch/Chart.yaml | 2 +- incubator/fluentd-cloudwatch/README.md | 1 + incubator/fluentd-cloudwatch/templates/daemonset.yaml | 2 ++ incubator/fluentd-cloudwatch/values.yaml | 3 +++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/incubator/fluentd-cloudwatch/Chart.yaml b/incubator/fluentd-cloudwatch/Chart.yaml index 9e81696737..c63e61d687 100644 --- a/incubator/fluentd-cloudwatch/Chart.yaml +++ b/incubator/fluentd-cloudwatch/Chart.yaml @@ -1,5 +1,5 @@ name: fluentd-cloudwatch -version: 0.5.3 +version: 0.6.3 appVersion: v0.12.43-cloudwatch description: A Fluentd CloudWatch Helm chart for Kubernetes. home: https://www.fluentd.org/ diff --git a/incubator/fluentd-cloudwatch/README.md b/incubator/fluentd-cloudwatch/README.md index ed1d0d791c..fec16b7172 100644 --- a/incubator/fluentd-cloudwatch/README.md +++ b/incubator/fluentd-cloudwatch/README.md @@ -67,6 +67,7 @@ The following table lists the configurable parameters of the Fluentd Cloudwatch | `rbac.serviceAccountName` | existing ServiceAccount to use (ignored if rbac.create=true) | `default` | | `tolerations` | Add tolerations | `[]` | | `extraVars` | Add pod environment variables (must be specified as a single line object) | `[]` | +| `updateStrategy` | Define daemonset update strategy | `OnDelete` | Starting with fluentd-kubernetes-daemonset v0.12.43-cloudwatch, the container runs as user fluentd. To be able to write pos files to the host system, you'll need to run fluentd as root. Add the following extraVars value to run as root. diff --git a/incubator/fluentd-cloudwatch/templates/daemonset.yaml b/incubator/fluentd-cloudwatch/templates/daemonset.yaml index cdc399f8cf..778603572c 100644 --- a/incubator/fluentd-cloudwatch/templates/daemonset.yaml +++ b/incubator/fluentd-cloudwatch/templates/daemonset.yaml @@ -85,3 +85,5 @@ spec: tolerations: {{ toYaml .Values.tolerations | indent 6 }} {{- end }} + updateStrategy: +{{ toYaml .Values.updateStrategy | indent 4 }} \ No newline at end of file diff --git a/incubator/fluentd-cloudwatch/values.yaml b/incubator/fluentd-cloudwatch/values.yaml index 3e699bc62e..ebc8dc25be 100644 --- a/incubator/fluentd-cloudwatch/values.yaml +++ b/incubator/fluentd-cloudwatch/values.yaml @@ -43,6 +43,9 @@ rbac: extraVars: [] # - "{ name: NODE_NAME, valueFrom: { fieldRef: { fieldPath: spec.nodeName } } }" +updateStrategy: + type: OnDelete + fluentdConfig: | type null