From b8d48fcae50b16df17f3443906f60718f45a7978 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Wed, 19 Mar 2025 10:52:34 +0800 Subject: [PATCH] chore: update inventory and configuration for new cluster nodes and remove deprecated DNS settings Signed-off-by: zhenyus --- cluster/ansible/manifests/group_vars/all/all.yml | 6 +++--- cluster/ansible/manifests/inventory.ini | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cluster/ansible/manifests/group_vars/all/all.yml b/cluster/ansible/manifests/group_vars/all/all.yml index b4135a90..97af981a 100644 --- a/cluster/ansible/manifests/group_vars/all/all.yml +++ b/cluster/ansible/manifests/group_vars/all/all.yml @@ -36,9 +36,9 @@ loadbalancer_apiserver_healthcheck_port: 8081 # disable_host_nameservers: false ## Upstream dns servers -upstream_dns_servers: - - 8.8.8.8 - - 8.8.4.4 +#upstream_dns_servers: +# - 8.8.8.8 +# - 8.8.4.4 ## There are some changes specific to the cloud providers ## for instance we need to encapsulate packets with some network plugins diff --git a/cluster/ansible/manifests/inventory.ini b/cluster/ansible/manifests/inventory.ini index 5afb0e47..486f7145 100644 --- a/cluster/ansible/manifests/inventory.ini +++ b/cluster/ansible/manifests/inventory.ini @@ -8,6 +8,7 @@ kube_control_plane ; If you want to add more nodes to the cluster, you can add them to the [kube_node] group [kube_node] +; Belows are the original nodes for the cluster, removed from cluster prod-usw2-k8s-freeleaps-worker-ingress-01 ansible_host=10.10.0.6 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-ingress-01 prod-usw2-k8s-freeleaps-worker-ingress-02 ansible_host=10.10.0.7 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-ingress-02 prod-usw2-k8s-freeleaps-worker-ingress-03 ansible_host=10.10.0.5 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-ingress-03 @@ -15,6 +16,9 @@ prod-usw2-k8s-freeleaps-worker-01 ansible_host=10.10.0.10 ansible_user=wwwadmin@ prod-usw2-k8s-freeleaps-worker-02 ansible_host=10.10.0.11 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-02 prod-usw2-k8s-freeleaps-worker-03 ansible_host=10.10.0.12 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-03 prod-usw2-k8s-freeleaps-worker-04 ansible_host=10.10.0.13 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-04 -prod-usw2-k8s-freeleaps-worker-05 ansible_host=10.10.0.14 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-05 prod-usw2-k8s-freeleaps-worker-06 ansible_host=10.10.0.15 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-06 - +; Belows are the newly added nodes for the cluster to reduce cost +prod-usw2-k8s-freeleaps-worker-nodes-01 ansible_host=10.10.0.16 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-nodes-01 +prod-usw2-k8s-freeleaps-worker-nodes-02 ansible_host=10.10.0.17 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-nodes-02 +; Belows are the CI/CD dedicated nodes for the cluster +prod-usw2-k8s-freeleaps-worker-05 ansible_host=10.10.0.14 ansible_user=wwwadmin@mathmast.com host_name=prod-usw2-k8s-freeleaps-worker-05 \ No newline at end of file