File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ http_store_port: 8081
13
13
registry_host : " {{ groups['bastion'][0] }}"
14
14
registry_port : 5000
15
15
16
+ # Wait until cluster is stable vars
17
+ wait_until_cluster_stable : true
18
+ minimum_stable_period : 1m
19
+ wait_until_cluster_stable_timeout : 2m
20
+
16
21
# Deploy performance-dashboards
17
22
setup_performance_dashboards : false
18
23
Original file line number Diff line number Diff line change 26
26
- name : kubeconfig
27
27
dest : kubeconfig.backup
28
28
29
+ - name : Wait until cluster is stable
30
+ shell : |
31
+ KUBECONFIG={{ bastion_cluster_config_dir }}/kubeconfig oc adm wait-for-stable-cluster --minimum-stable-period={{ minimum_stable_period }} --timeout={{ wait_until_cluster_stable_timeout }}
32
+ when : wait_until_cluster_stable
33
+
29
34
- name : Apply a label to the worker node(s)
30
35
shell : |
31
36
KUBECONFIG={{ bastion_cluster_config_dir }}/kubeconfig oc label no --overwrite -l node-role.kubernetes.io/worker jetlag=true
Original file line number Diff line number Diff line change 5
5
assisted_installer_host : " {{ groups['bastion'][0] }}"
6
6
assisted_installer_port : 8090
7
7
8
+ # Wait until cluster is stable vars
9
+ wait_until_cluster_stable : true
10
+ minimum_stable_period : 1m
11
+ wait_until_cluster_stable_timeout : 2m
12
+
8
13
# Deploy openshift-gitops-operator
9
14
setup_openshift_gitops : false
10
15
gitops_channel : stable
Original file line number Diff line number Diff line change 27
27
- name : kubeconfig
28
28
dest : kubeconfig.backup
29
29
30
+ - name : Wait until cluster is stable
31
+ shell : |
32
+ KUBECONFIG={{ bastion_cluster_config_dir }}/{{ groups['sno'][0] }}/kubeconfig oc adm wait-for-stable-cluster --minimum-stable-period={{ minimum_stable_period }} --timeout={{ wait_until_cluster_stable_timeout }}
33
+ when : wait_until_cluster_stable
34
+
30
35
- name : Apply a label to the SNO node
31
36
shell : |
32
37
KUBECONFIG={{ bastion_cluster_config_dir }}/{{ groups['sno'][0] }}/kubeconfig oc label no --all --overwrite jetlag=true
You can’t perform that action at this time.
0 commit comments