mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Rename ansible groups to use _ instead of - (#7552)
* rename ansible groups to use _ instead of -
k8s-cluster -> k8s_cluster
k8s-node -> k8s_node
calico-rr -> calico_rr
no-floating -> no_floating
Note: kube-node,k8s-cluster groups in upgrade CI
need clean-up after v2.16 is tagged
* ensure old groups are mapped to the new ones
This commit is contained in:
@@ -11,9 +11,13 @@ instance-1
|
||||
[kube-master]
|
||||
instance-1
|
||||
|
||||
# TODO(cristicalin): Remove kube-node,k8s-cluster groups from this file after releasing v2.16.
|
||||
[kube-node]
|
||||
instance-2
|
||||
|
||||
[kube_node]
|
||||
instance-2
|
||||
|
||||
[etcd]
|
||||
instance-3
|
||||
{% elif mode is defined and mode in ["ha", "ha-scale"] %}
|
||||
@@ -28,6 +32,9 @@ instance-2
|
||||
[kube-node]
|
||||
instance-3
|
||||
|
||||
[kube_node]
|
||||
instance-3
|
||||
|
||||
[etcd]
|
||||
instance-1
|
||||
instance-2
|
||||
@@ -42,6 +49,9 @@ instance-1
|
||||
[kube-node]
|
||||
instance-2
|
||||
|
||||
[kube_node]
|
||||
instance-2
|
||||
|
||||
[etcd]
|
||||
instance-1
|
||||
{% elif mode == "aio" %}
|
||||
@@ -54,6 +64,9 @@ instance-1
|
||||
[kube-node]
|
||||
instance-1
|
||||
|
||||
[kube_node]
|
||||
instance-1
|
||||
|
||||
[etcd]
|
||||
instance-1
|
||||
{% elif mode == "ha-recover" %}
|
||||
@@ -68,6 +81,9 @@ instance-2
|
||||
[kube-node]
|
||||
instance-3
|
||||
|
||||
[kube_node]
|
||||
instance-3
|
||||
|
||||
[etcd]
|
||||
instance-3
|
||||
instance-1
|
||||
@@ -92,6 +108,9 @@ instance-2
|
||||
[kube-node]
|
||||
instance-3
|
||||
|
||||
[kube_node]
|
||||
instance-3
|
||||
|
||||
[etcd]
|
||||
instance-3
|
||||
instance-1
|
||||
@@ -111,6 +130,11 @@ kube-node
|
||||
kube-master
|
||||
calico-rr
|
||||
|
||||
[calico-rr]
|
||||
[k8s_cluster:children]
|
||||
kube_node
|
||||
kube_master
|
||||
calico_rr
|
||||
|
||||
[calico_rr]
|
||||
|
||||
[fake_hosts]
|
||||
|
||||
Reference in New Issue
Block a user