|
@ -32,36 +32,42 @@ |
|
|
tags: rkt |
|
|
tags: rkt |
|
|
when: "'rkt' in [etcd_deployment_type, kubelet_deployment_type, vault_deployment_type]" |
|
|
when: "'rkt' in [etcd_deployment_type, kubelet_deployment_type, vault_deployment_type]" |
|
|
- { role: download, tags: download, skip_downloads: false } |
|
|
- { role: download, tags: download, skip_downloads: false } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: etcd:k8s-cluster:vault |
|
|
- hosts: etcd:k8s-cluster:vault |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
roles: |
|
|
roles: |
|
|
- { role: kubespray-defaults, when: "cert_management == 'vault'" } |
|
|
- { role: kubespray-defaults, when: "cert_management == 'vault'" } |
|
|
- { role: vault, tags: vault, vault_bootstrap: true, when: "cert_management == 'vault'" } |
|
|
- { role: vault, tags: vault, vault_bootstrap: true, when: "cert_management == 'vault'" } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: etcd |
|
|
- hosts: etcd |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
roles: |
|
|
roles: |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubespray-defaults} |
|
|
- { role: etcd, tags: etcd, etcd_cluster_setup: true } |
|
|
- { role: etcd, tags: etcd, etcd_cluster_setup: true } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: k8s-cluster |
|
|
- hosts: k8s-cluster |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
roles: |
|
|
roles: |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubespray-defaults} |
|
|
- { role: etcd, tags: etcd, etcd_cluster_setup: false } |
|
|
- { role: etcd, tags: etcd, etcd_cluster_setup: false } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: etcd:k8s-cluster:vault |
|
|
- hosts: etcd:k8s-cluster:vault |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
roles: |
|
|
roles: |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubespray-defaults} |
|
|
- { role: vault, tags: vault, when: "cert_management == 'vault'"} |
|
|
- { role: vault, tags: vault, when: "cert_management == 'vault'"} |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: k8s-cluster |
|
|
- hosts: k8s-cluster |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
roles: |
|
|
roles: |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubernetes/node, tags: node } |
|
|
- { role: kubernetes/node, tags: node } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: kube-master |
|
|
- hosts: kube-master |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
@ -70,6 +76,7 @@ |
|
|
- { role: kubernetes/master, tags: master } |
|
|
- { role: kubernetes/master, tags: master } |
|
|
- { role: kubernetes/client, tags: client } |
|
|
- { role: kubernetes/client, tags: client } |
|
|
- { role: kubernetes-apps/cluster_roles, tags: cluster-roles } |
|
|
- { role: kubernetes-apps/cluster_roles, tags: cluster-roles } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: k8s-cluster |
|
|
- hosts: k8s-cluster |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
@ -77,6 +84,7 @@ |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubernetes/kubeadm, tags: kubeadm, when: "kubeadm_enabled" } |
|
|
- { role: kubernetes/kubeadm, tags: kubeadm, when: "kubeadm_enabled" } |
|
|
- { role: network_plugin, tags: network } |
|
|
- { role: network_plugin, tags: network } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: kube-master |
|
|
- hosts: kube-master |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
@ -85,12 +93,14 @@ |
|
|
- { 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)" } |
|
|
- { role: kubernetes-apps/network_plugin, tags: network } |
|
|
- { role: kubernetes-apps/network_plugin, tags: network } |
|
|
- { role: kubernetes-apps/policy_controller, tags: policy-controller } |
|
|
- { role: kubernetes-apps/policy_controller, tags: policy-controller } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: calico-rr |
|
|
- hosts: calico-rr |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
roles: |
|
|
roles: |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubespray-defaults} |
|
|
- { role: network_plugin/calico/rr, tags: network } |
|
|
- { role: network_plugin/calico/rr, tags: network } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: k8s-cluster |
|
|
- hosts: k8s-cluster |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
@ -98,9 +108,11 @@ |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubespray-defaults} |
|
|
- { role: dnsmasq, when: "dns_mode == 'dnsmasq_kubedns'", tags: dnsmasq } |
|
|
- { role: dnsmasq, when: "dns_mode == 'dnsmasq_kubedns'", tags: dnsmasq } |
|
|
- { 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 } |
|
|
|
|
|
environment: "{{proxy_env}}" |
|
|
|
|
|
|
|
|
- hosts: kube-master[0] |
|
|
- hosts: kube-master[0] |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" |
|
|
roles: |
|
|
roles: |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubespray-defaults} |
|
|
- { role: kubernetes-apps, tags: apps } |
|
|
- { role: kubernetes-apps, tags: apps } |
|
|
|
|
|
environment: "{{proxy_env}}" |