feat(inventory): add inventory template and update existing entries
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
c16e80e54a
commit
847a2c04ad
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
cluster/ansible/venv
|
cluster/ansible/venv
|
||||||
|
cluster/ansible/manifests/inventory.ini
|
||||||
@ -6,11 +6,11 @@ prod-usw2-k8s-freeleaps-master-03 ansible_host=prod-usw2-k8s-freeleaps-master-03
|
|||||||
[etcd:children]
|
[etcd:children]
|
||||||
kube_control_plane
|
kube_control_plane
|
||||||
|
|
||||||
|
; If you want to add more nodes to the cluster, you can add them to the [kube_node] group
|
||||||
[kube_node]
|
[kube_node]
|
||||||
prod-usw2-k8s-freeleaps-worker-01 ansible_host=prod-usw2-k8s-freeleaps-worker-01.mathmast.com ansible_user=zhenyus@mathmast.com
|
prod-usw2-k8s-freeleaps-worker-01 ansible_host=prod-usw2-k8s-freeleaps-worker-01.mathmast.com ansible_user=zhenyus@mathmast.com
|
||||||
prod-usw2-k8s-freeleaps-worker-02 ansible_host=prod-usw2-k8s-freeleaps-worker-02.mathmast.com ansible_user=zhenyus@mathmast.com
|
prod-usw2-k8s-freeleaps-worker-02 ansible_host=prod-usw2-k8s-freeleaps-worker-02.mathmast.com ansible_user=zhenyus@mathmast.com
|
||||||
prod-usw2-k8s-freeleaps-worker-03 ansible_host=prod-usw2-k8s-freeleaps-worker-03.mathmast.com ansible_user=zhenyus@mathmast.com
|
prod-usw2-k8s-freeleaps-worker-03 ansible_host=prod-usw2-k8s-freeleaps-worker-03.mathmast.com ansible_user=zhenyus@mathmast.com
|
||||||
prod-usw2-k8s-freeleaps-worker-04 ansible_host=prod-usw2-k8s-freeleaps-worker-04.mathmast.com ansible_user=zhenyus@mathmast.com
|
|
||||||
prod-usw2-k8s-freeleaps-ingress-worker-01 ansible_host=prod-usw2-k8s-freeleaps-worker-ingress-01.mathmast.com ansible_user=zhenyus@mathmast.com
|
prod-usw2-k8s-freeleaps-ingress-worker-01 ansible_host=prod-usw2-k8s-freeleaps-worker-ingress-01.mathmast.com ansible_user=zhenyus@mathmast.com
|
||||||
prod-usw2-k8s-freeleaps-ingress-worker-02 ansible_host=prod-usw2-k8s-freeleaps-worker-ingress-02.mathmast.com ansible_user=zhenyus@mathmast.com
|
prod-usw2-k8s-freeleaps-ingress-worker-02 ansible_host=prod-usw2-k8s-freeleaps-worker-ingress-02.mathmast.com ansible_user=zhenyus@mathmast.com
|
||||||
prod-usw2-k8s-freeleaps-ingress-worker-03 ansible_host=prod-usw2-k8s-freeleaps-worker-ingress-03.mathmast.com ansible_user=zhenyus@mathmast.com
|
prod-usw2-k8s-freeleaps-ingress-worker-03 ansible_host=prod-usw2-k8s-freeleaps-worker-ingress-03.mathmast.com ansible_user=zhenyus@mathmast.com
|
||||||
16
cluster/ansible/manifests/inventory.ini.tpl
Normal file
16
cluster/ansible/manifests/inventory.ini.tpl
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[kube_control_plane]
|
||||||
|
prod-usw2-k8s-freeleaps-master-01 ansible_host=prod-usw2-k8s-freeleaps-master-01.mathmast.com ansible_user=<your-username> etcd_member_name=freeleaps-etcd-01
|
||||||
|
prod-usw2-k8s-freeleaps-master-02 ansible_host=prod-usw2-k8s-freeleaps-master-02.mathmast.com ansible_user=<your-username> etcd_member_name=freeleaps-etcd-02
|
||||||
|
prod-usw2-k8s-freeleaps-master-03 ansible_host=prod-usw2-k8s-freeleaps-master-03.mathmast.com ansible_user=<your-username> etcd_member_name=freeleaps-etcd-03
|
||||||
|
|
||||||
|
[etcd:children]
|
||||||
|
kube_control_plane
|
||||||
|
|
||||||
|
; If you want to add more nodes to the cluster, you can add them to the [kube_node] group
|
||||||
|
[kube_node]
|
||||||
|
prod-usw2-k8s-freeleaps-worker-01 ansible_host=prod-usw2-k8s-freeleaps-worker-01.mathmast.com ansible_user=<your-username>
|
||||||
|
prod-usw2-k8s-freeleaps-worker-02 ansible_host=prod-usw2-k8s-freeleaps-worker-02.mathmast.com ansible_user=<your-username>
|
||||||
|
prod-usw2-k8s-freeleaps-worker-03 ansible_host=prod-usw2-k8s-freeleaps-worker-03.mathmast.com ansible_user=<your-username>
|
||||||
|
prod-usw2-k8s-freeleaps-ingress-worker-01 ansible_host=prod-usw2-k8s-freeleaps-worker-ingress-01.mathmast.com ansible_user=<your-username>
|
||||||
|
prod-usw2-k8s-freeleaps-ingress-worker-02 ansible_host=prod-usw2-k8s-freeleaps-worker-ingress-02.mathmast.com ansible_user=<your-username>
|
||||||
|
prod-usw2-k8s-freeleaps-ingress-worker-03 ansible_host=prod-usw2-k8s-freeleaps-worker-ingress-03.mathmast.com ansible_user=<your-username>
|
||||||
Loading…
Reference in New Issue
Block a user