Add Retry for Applying PriorityClass (#10469)

Signed-off-by: hang.jiang <hang.jiang@daocloud.io>
pull/10480/head
蔣 航 2023-09-25 10:54:56 +08:00 committed by GitHub
parent 2c132dccba
commit c6ab6406c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -80,4 +80,8 @@
resource: "PriorityClass" resource: "PriorityClass"
filename: "{{ kube_config_dir }}/k8s-cluster-critical-pc.yml" filename: "{{ kube_config_dir }}/k8s-cluster-critical-pc.yml"
state: latest state: latest
register: result
until: result is succeeded
retries: 10
delay: 6
when: inventory_hostname == groups['kube_control_plane'] | last when: inventory_hostname == groups['kube_control_plane'] | last