fix: update node IPs and correct SSH key path for sealos

This commit is contained in:
Haitao Pan 2025-06-26 13:06:03 +08:00
parent da36ace4e5
commit 042109c1ed
3 changed files with 5 additions and 6 deletions

View File

@ -1,8 +1,7 @@
[all]
ops-1 ansible_host=127.0.0.1 ansible_ssh_user=shenlan
k8s-1 ansible_host=3.115.13.153
k8s-2 ansible_host=35.78.97.10
k8s-3 ansible_host=35.77.230.131
k8s-1 ansible_host=43.207.228.137
k8s-2 ansible_host=57.182.251.106
k8s-3 ansible_host=18.179.59.49
[all:vars]
ansible_port=22

View File

@ -3,7 +3,7 @@
vars:
# Use the inventory hostname for delegation so Ansible
# applies the correct connection variables
ops_host: "ops-1"
ops_host: "k8s-1"
masters:
- "k8s-1"
nodes:

View File

@ -96,7 +96,7 @@
--masters {{ master_ips | join(',') }} \
--nodes {{ node_ips | join(',') }} \
--user {{ ssh_user }} \
--pk {{ ssh_private_key }} \
--pk /home/{{ ansible_user }}/.ssh/id_rsa \
--env '{{ sealos_cmd_env }}' \
--cmd "{{ kubeadm_init_cmd }}"
args: