summaryrefslogtreecommitdiffstats
path: root/ansible/rke.yml
diff options
context:
space:
mode:
authorPetr Ospalý <p.ospaly@partner.samsung.com>2019-04-20 00:53:01 +0200
committerPetr Ospalý <p.ospaly@partner.samsung.com>2019-05-17 08:08:11 +0000
commitfe49ee9006e9396c79f90365b9e814ee70c9fcee (patch)
tree5c324db6678a5429d34061160872da13addaf15d /ansible/rke.yml
parent280ef8da90cf2bab9ddf7b3df78b12a3b2cf6040 (diff)
Add support for RKE kubernetes implementation
Added a new playbook rke.yml and role rke which uses rancher RKE: https://github.com/rancher/rke It's an implementation of the kubernetes from rancher.com folks and it is an alternative to the official kubernetes tool: kubeadm. NOTE: Rancher has a notion of a 'control plane' which cannot run with etcd on all nodes in a multi-node setup. Control-plane node is the first kubernetes node from the inventory (as of now). Change-Id: I0bf669442a5183efa20d44fb1cac823e7ce54348 Issue-ID: OOM-1778 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'ansible/rke.yml')
-rw-r--r--ansible/rke.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/ansible/rke.yml b/ansible/rke.yml
new file mode 100644
index 00000000..81e964d9
--- /dev/null
+++ b/ansible/rke.yml
@@ -0,0 +1,26 @@
+---
+- name: Gather facts for all hosts
+ hosts: all
+
+- name: Configure kubernetes cluster (RKE)
+ hosts: infrastructure
+ roles:
+ - role: rke
+ vars:
+ mode: config
+
+- name: Prepare kubernetes nodes (RKE)
+ hosts:
+ - kubernetes
+ - kubernetes-control-plane
+ roles:
+ - role: rke
+ vars:
+ mode: node
+
+- name: Deploy kubernetes cluster (RKE)
+ hosts: infrastructure
+ roles:
+ - role: rke
+ vars:
+ mode: deploy