6fa44458db
* Implement kubeadm init,join for Debian OS family (PoC) with the external etcd option set. * Make certs/tokens management optional and depending on the use_kubeadm var * Do not delegate static pods and config management to kubeadm and remove produced artifacts to be regenerated by ansible. * Add new set of system pods manifests templates based on that kubeadm produces by default and parametrize it by ansible vars * Fix apiserver container logging to follow 12-factor apps and scheduler/controller-manager logging setup Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
18 lines
795 B
YAML
18 lines
795 B
YAML
---
|
|
# TODO(bogdando) kubeadm init/join/taint on RedHat/CoreOS
|
|
- name: join workers to the initialized kubernetes cluster
|
|
command: "kubeadm join --token {{ init_token }} {{ first_kube_master }}"
|
|
when: (ansible_os_family in ["Debian"]) and ({{ use_kubeadm|bool }})
|
|
|
|
# NOTE(bogdando) we want ansible to control manifests instead of kubeadm, yet
|
|
- name: purge kube manifests created by kubeadm
|
|
file: path="{{ kube_manifest_dir }}/{{ item }}.json" state=absent
|
|
with_items: [ "kube-proxy" ]
|
|
|
|
- name: allow all nodes to be picked by schedulers
|
|
command: "kubectl taint nodes --all dedicated-"
|
|
when: (ansible_os_family in ["Debian"]) and ({{ use_kubeadm|bool }})
|
|
ignore_errors: true
|
|
|
|
- include: kubeadm-system-pods.yml
|
|
when: (ansible_os_family in ["Debian"]) and ({{ use_kubeadm|bool }})
|