Browse Source

Merge pull request #8126 from jcantrill/critical_pod

add critical pod annotation to fluent to avoid eviction
Scott Dodson 7 years ago
parent
commit
ebd1b73691

+ 2 - 0
roles/openshift_logging_fluentd/templates/2.x/fluentd.j2

@@ -22,6 +22,8 @@ spec:
         logging-infra: "{{ daemonset_component }}"
         provider: openshift
         component: "{{ daemonset_component }}"
+      annotations:
+        scheduler.alpha.kubernetes.io/critical-pod: ''
     spec:
       serviceAccountName: "{{ daemonset_serviceAccount }}"
       nodeSelector:

+ 2 - 0
roles/openshift_logging_fluentd/templates/5.x/fluentd.j2

@@ -22,6 +22,8 @@ spec:
         logging-infra: "{{ daemonset_component }}"
         provider: openshift
         component: "{{ daemonset_component }}"
+      annotations:
+        scheduler.alpha.kubernetes.io/critical-pod: ''
     spec:
       serviceAccountName: "{{ daemonset_serviceAccount }}"
       nodeSelector: