Browse Source
Add Retry for Applying PriorityClass (#10469)
Signed-off-by: hang.jiang <hang.jiang@daocloud.io>
pull/10480/head
蔣 航
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
roles/kubernetes-apps/cluster_roles/tasks/main.yml
|
|
@ -80,4 +80,8 @@ |
|
|
|
resource: "PriorityClass" |
|
|
|
filename: "{{ kube_config_dir }}/k8s-cluster-critical-pc.yml" |
|
|
|
state: latest |
|
|
|
register: result |
|
|
|
until: result is succeeded |
|
|
|
retries: 10 |
|
|
|
delay: 6 |
|
|
|
when: inventory_hostname == groups['kube_control_plane'] | last |