diff options
author | Michal Zegan <m.zegan@samsung.com> | 2019-06-03 14:58:20 +0200 |
---|---|---|
committer | Michal Zegan <m.zegan@samsung.com> | 2019-06-03 16:54:32 +0200 |
commit | 2f97acdcc45c70ee2fa022fdeb27b68a0f7e458b (patch) | |
tree | cf106a6d5403b98367c603fb21e64849a9ada296 /ansible/roles/rke/templates | |
parent | bfbb6e193f28e7e503e4c94e46017d40fd613872 (diff) |
Add etcd group support to rke role
Etcd cluster is now placed in members of kubernetes-etcd group instead
of kubernetes-node.
Due to defaults, it means infra is the only etcd
by default.
Change-Id: Iae05a42442849e4a248d73c2d78f5e2b0eae7255
Issue-ID: OOM-1778
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'ansible/roles/rke/templates')
-rw-r--r-- | ansible/roles/rke/templates/cluster.yml.j2 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/rke/templates/cluster.yml.j2 b/ansible/roles/rke/templates/cluster.yml.j2 index f28cff80..2012ab92 100644 --- a/ansible/roles/rke/templates/cluster.yml.j2 +++ b/ansible/roles/rke/templates/cluster.yml.j2 @@ -9,6 +9,8 @@ nodes: {% endif %} {% if node in groups['kubernetes-node'] %} - worker +{% endif %} +{% if node in groups['kubernetes-etcd'] %} - etcd {% endif %} hostname_override: "" |