From 10e7902a12bdca973aa67b5eaeec2ebf707cc045 Mon Sep 17 00:00:00 2001 From: Vishnu kannan Date: Mon, 6 Feb 2017 11:47:48 -0800 Subject: [PATCH] make fluentd a critical pod Signed-off-by: Vishnu kannan --- cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml | 5 +++++ cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml | 5 +++++ cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml b/cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml index 2e02cbdb5e..07fb013efa 100644 --- a/cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml +++ b/cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml @@ -14,6 +14,11 @@ spec: k8s-app: fluentd-es kubernetes.io/cluster-service: "true" version: v1.22 + # This annotation ensures that fluentd does not get evicted if the node + # supports critical pod annotation based priority scheme. + # Note that this does not guarantee admission on the nodes (#40573). + annotations: + scheduler.alpha.kubernetes.io/critical-pod: '' spec: containers: - name: fluentd-es diff --git a/cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml b/cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml index e897dfbc13..045e0824b8 100644 --- a/cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml +++ b/cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml @@ -15,6 +15,11 @@ spec: k8s-app: fluentd-gcp kubernetes.io/cluster-service: "true" version: v1.35 + # This annotation ensures that fluentd does not get evicted if the node + # supports critical pod annotation based priority scheme. + # Note that this does not guarantee admission on the nodes (#40573). + annotations: + scheduler.alpha.kubernetes.io/critical-pod: '' spec: containers: - name: fluentd-gcp diff --git a/cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml b/cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml index fa4d0433e4..2bdd1f8e25 100644 --- a/cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml +++ b/cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml @@ -6,6 +6,11 @@ metadata: namespace: kube-system labels: k8s-app: fluentd-logging + # This annotation ensures that fluentd does not get evicted if the node + # supports critical pod annotation based priority scheme. + # Note that this does not guarantee admission on the nodes (#40573). + annotations: + scheduler.alpha.kubernetes.io/critical-pod: '' spec: dnsPolicy: Default containers: