mirror of
				https://github.com/geerlingguy/ansible-role-kubernetes.git
				synced 2025-10-24 11:16:22 +02:00 
			
		
		
		
	wait for api to become available
This commit is contained in:
		
							parent
							
								
									8eef1aabd6
								
							
						
					
					
						commit
						57a3880428
					
				| @ -9,7 +9,13 @@ | ||||
| - name: Allow pods on control plane (if configured). | ||||
|   command: "kubectl taint nodes {{ inventory_hostname_short }} node-role.kubernetes.io/control-plane-" | ||||
|   register: taint_removed | ||||
|   changed_when: "'removed' in taint_removed.stdout" | ||||
|   until: > | ||||
|     ("untainted" in taint_removed.stdout) or | ||||
|     ("not found" in taint_removed.stdout) | ||||
|   changed_when: "'untainted' in taint_removed.stdout" | ||||
|   failed_when: false | ||||
|   retries: 100 | ||||
|   delay: 5 | ||||
|   when: | ||||
|     - kubernetes_allow_pods_on_control_plane | bool | ||||
|     - join_ctrl_plane.changed | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user