Browse Source
Factorize some identical playbooks steps into their own sub-playbooks (#10633)
Factorize some identical playbooks steps into their own sub-playbooks (#10633)
* Factorize identical playboooks steps in sub-playbooks * Copy legacy_groups.yml into its sole userpull/10667/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 57 additions and 137 deletions
Unified View
Diff Options
-
13playbooks/boilerplate.yml
-
45playbooks/cluster.yml
-
31playbooks/install_etcd.yml
-
15playbooks/recover_control_plane.yml
-
15playbooks/remove_node.yml
-
15playbooks/reset.yml
-
15playbooks/scale.yml
-
45playbooks/upgrade_cluster.yml
@ -0,0 +1,31 @@ |
|||||
|
--- |
||||
|
- name: Install etcd |
||||
|
hosts: etcd:kube_control_plane |
||||
|
gather_facts: False |
||||
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
||||
|
environment: "{{ proxy_disable_env }}" |
||||
|
roles: |
||||
|
- { role: kubespray-defaults } |
||||
|
- role: etcd |
||||
|
tags: etcd |
||||
|
vars: |
||||
|
etcd_cluster_setup: true |
||||
|
etcd_events_cluster_setup: "{{ etcd_events_cluster_enabled }}" |
||||
|
when: etcd_deployment_type != "kubeadm" |
||||
|
|
||||
|
- name: Install etcd certs on nodes if required |
||||
|
hosts: k8s_cluster |
||||
|
gather_facts: False |
||||
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
||||
|
environment: "{{ proxy_disable_env }}" |
||||
|
roles: |
||||
|
- { role: kubespray-defaults } |
||||
|
- role: etcd |
||||
|
tags: etcd |
||||
|
vars: |
||||
|
etcd_cluster_setup: false |
||||
|
etcd_events_cluster_setup: false |
||||
|
when: |
||||
|
- etcd_deployment_type != "kubeadm" |
||||
|
- kube_network_plugin in ["calico", "flannel", "canal", "cilium"] or cilium_deploy_additionally | default(false) | bool |
||||
|
- kube_network_plugin != "calico" or calico_datastore == "etcd" |
Write
Preview
Loading…
Cancel
Save