瀏覽代碼

Merge pull request #8397 from wjiangjay/master

fix descheduler pod should be critical pod
Vadim Rutkovsky 6 年之前
父節點
當前提交
8ad38a687b
共有 1 個文件被更改,包括 2 次插入2 次删除
  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: