Add kubernetes-node group for workers 91/88691/2
authorMichal Zegan <m.zegan@samsung.com>
Tue, 28 May 2019 15:05:01 +0000 (17:05 +0200)
committerMichal Zegan <m.zegan@samsung.com>
Mon, 3 Jun 2019 12:49:32 +0000 (14:49 +0200)
commit81a5673727746e4975ff77bde3503ac0319a95a4
tree5dfeee6cfa047d461b06d6998fefdaf8ceb81b7f
parent1ec19b0598382aa45258ed630ee26cba4fb3a7e5
Add kubernetes-node group for workers

Moved all kubernetes nodes from the kubernetes to kubernetes-node group,
and made the kubernetes group a parent of both kubernetes-node and
kubernetes-control-plane.
The reason is that we still need to have separate groups for
control planes and for nodes, but some
operations are performed equally on any kind of kubernetes
cluster member, and currently one would need to separately include all
related groups one by one. Example of
such common operation is installation of docker, that was not
performed for kubernetes-control-plane group, so that
docker was not installed on control planes that were neither infra nor nodes.
The side effect of this change is that if infrastructure
server is also a cluster member, it lands in a kubernetes group by default,
and node specific setup would be performed on it.
For that reason, playbook is modified to perform this setup on all
kubernetes cluster members except the infra server.

Change-Id: Ic827002d28e535334dbab7e5ad4aed8aa95c97a9
Issue-ID: OOM-1778
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
ansible/infrastructure.yml
ansible/inventory/hosts.yml