@ -4,6 +4,7 @@
- hosts : bastion[0]
- hosts : bastion[0]
gather_facts : False
gather_facts : False
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
- { role: bastion-ssh-config, tags : [ "localhost" , "bastion" ] }
- { role: bastion-ssh-config, tags : [ "localhost" , "bastion" ] }
@ -12,6 +13,7 @@
strategy : linear
strategy : linear
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
gather_facts : false
gather_facts : false
environment : "{{ proxy_disable_env }}"
vars:
vars:
# Need to disable pipelining for bootstrap-os as some systems have requiretty in sudoers set, which makes pipelining
# Need to disable pipelining for bootstrap-os as some systems have requiretty in sudoers set, which makes pipelining
# fail. bootstrap-os fixes this on these systems, so in later plays it can be enabled.
# fail. bootstrap-os fixes this on these systems, so in later plays it can be enabled.
@ -28,6 +30,7 @@
hosts : kube-master[0]
hosts : kube-master[0]
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role: kubespray-defaults, when : "not skip_downloads and download_run_once and not download_localhost" }
- { role: kubespray-defaults, when : "not skip_downloads and download_run_once and not download_localhost" }
- { role: kubernetes/preinstall, tags: preinstall, when : "not skip_downloads and download_run_once and not download_localhost" }
- { role: kubernetes/preinstall, tags: preinstall, when : "not skip_downloads and download_run_once and not download_localhost" }
@ -37,6 +40,7 @@
hosts : k8s-cluster:etcd:calico-rr
hosts : k8s-cluster:etcd:calico-rr
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
- { role: kubernetes/preinstall, tags : preinstall }
- { role: kubernetes/preinstall, tags : preinstall }
@ -46,6 +50,7 @@
hosts : etcd:calico-rr:!k8s-cluster
hosts : etcd:calico-rr:!k8s-cluster
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
serial : "{{ serial | default('20%') }}"
serial : "{{ serial | default('20%') }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
@ -54,6 +59,7 @@
- hosts : etcd
- hosts : etcd
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
- role : etcd
- role : etcd
@ -66,6 +72,7 @@
- hosts : k8s-cluster
- hosts : k8s-cluster
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
- role : etcd
- role : etcd
@ -79,6 +86,7 @@
gather_facts : False
gather_facts : False
hosts : kube-master
hosts : kube-master
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
serial : 1
serial : 1
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
@ -97,6 +105,7 @@
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
serial : "{{ serial | default('20%') }}"
serial : "{{ serial | default('20%') }}"
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
- { role: kubernetes-apps/external_cloud_controller, tags : external-cloud-controller }
- { role: kubernetes-apps/external_cloud_controller, tags : external-cloud-controller }
@ -108,6 +117,7 @@
hosts : kube-node:calico-rr:!kube-master
hosts : kube-node:calico-rr:!kube-master
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
serial : "{{ serial | default('20%') }}"
serial : "{{ serial | default('20%') }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
@ -121,6 +131,7 @@
- hosts : kube-master[0]
- hosts : kube-master[0]
gather_facts : False
gather_facts : False
any_errors_fatal : true
any_errors_fatal : true
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
- { role: kubernetes-apps/rotate_tokens, tags: rotate_tokens, when : "secret_changed|default(false)" }
- { role: kubernetes-apps/rotate_tokens, tags: rotate_tokens, when : "secret_changed|default(false)" }
@ -129,6 +140,7 @@
- hosts : calico-rr
- hosts : calico-rr
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
- { role: network_plugin/calico/rr, tags : network }
- { role: network_plugin/calico/rr, tags : network }
@ -136,6 +148,7 @@
- hosts : kube-master
- hosts : kube-master
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
- { role: kubernetes-apps, tags : apps }
- { role: kubernetes-apps, tags : apps }
@ -143,6 +156,7 @@
- hosts : k8s-cluster
- hosts : k8s-cluster
gather_facts : False
gather_facts : False
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
any_errors_fatal : "{{ any_errors_fatal | default(true) }}"
environment : "{{ proxy_disable_env }}"
roles:
roles:
- { role : kubespray-defaults }
- { role : kubespray-defaults }
- { role: kubernetes/preinstall, when : "dns_mode != 'none' and resolvconf_mode == 'host_resolvconf'" , tags : resolvconf }
- { role: kubernetes/preinstall, when : "dns_mode != 'none' and resolvconf_mode == 'host_resolvconf'" , tags : resolvconf }