summaryrefslogtreecommitdiffstats
path: root/ansible/inventory/hosts.yml
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-06-24 15:11:58 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-24 15:11:58 +0000
commit4ea85321ebdd8b24b3cb732776e3847a03c993e7 (patch)
tree5934219c8be621893bffbb7b690de56a28b7ef93 /ansible/inventory/hosts.yml
parent70f9f3024318d7e85c3dabe430175dcf03540a0e (diff)
parent2f97acdcc45c70ee2fa022fdeb27b68a0f7e458b (diff)
Merge changes from topic "kubernetes-inventory-groups"
* changes: Add etcd group support to rke role Add kubernetes-etcd group Make rke to use new group structure Add kubernetes-node group for workers
Diffstat (limited to 'ansible/inventory/hosts.yml')
-rw-r--r--ansible/inventory/hosts.yml35
1 files changed, 22 insertions, 13 deletions
diff --git a/ansible/inventory/hosts.yml b/ansible/inventory/hosts.yml
index 37ae4e39..4a6b68cf 100644
--- a/ansible/inventory/hosts.yml
+++ b/ansible/inventory/hosts.yml
@@ -25,20 +25,29 @@ all:
# This is group of hosts which are/will be part of Kubernetes cluster.
kubernetes:
- hosts:
- kubernetes-node-1:
- ansible_host: 10.8.8.19
- #ip of the node that it uses for communication with k8s cluster.
- cluster_ip: 10.8.8.19
+ children:
+ # This is a group of hosts containing kubernetes worker nodes.
+ kubernetes-node:
+ hosts:
+ kubernetes-node-1:
+ ansible_host: 10.8.8.19
+ #ip of the node that it uses for communication with k8s cluster.
+ cluster_ip: 10.8.8.19
- # This is a group of hosts that are to be used as kubernetes control plane nodes.
- # This means they host kubernetes api server, controller manager and scheduler.
- # This example uses infra for this purpose, however note that any
- # other host could be used including kubernetes nodes.
- # cluster_ip needs to be set for hosts used as control planes.
- kubernetes-control-plane:
- hosts:
- infrastructure-server
+ # Group of hosts containing etcd cluster nodes.
+ # Defaults to infra.
+ kubernetes-etcd:
+ hosts:
+ infrastructure-server
+
+ # This is a group of hosts that are to be used as kubernetes control plane nodes.
+ # This means they host kubernetes api server, controller manager and scheduler.
+ # This example uses infra for this purpose, however note that any
+ # other host could be used including kubernetes nodes.
+ # cluster_ip needs to be set for hosts used as control planes.
+ kubernetes-control-plane:
+ hosts:
+ infrastructure-server
nfs-server:
hosts: