Browse Source

Merge pull request #8397 from wjiangjay/master

fix descheduler pod should be critical pod
Vadim Rutkovsky 6 years ago
parent
commit
8ad38a687b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      roles/openshift_descheduler/templates/descheduler-cronjob.yaml.j2

+ 2 - 2
roles/openshift_descheduler/templates/descheduler-cronjob.yaml.j2

@@ -3,14 +3,14 @@ kind: CronJob
 metadata:
   name: "{{ openshift_descheduler_cronjob_name }}"
   namespace: openshift-descheduler
-  annotations:
-    scheduler.alpha.kubernetes.io/critical-pod: ''
 spec:
   schedule: "{{ openshift_descheduler_cronjob_schedule }}"
   jobTemplate:
     spec:
       template:
         metadata:
+          annotations:
+            scheduler.alpha.kubernetes.io/critical-pod: ''
           name: "{{ openshift_descheduler_cronjob_name }}"
         spec:
           containers: