fix: update node IPs and correct SSH key path for sealos
This commit is contained in:
parent
2bbd367683
commit
453fd924e7
@ -1,8 +1,7 @@
|
|||||||
[all]
|
[all]
|
||||||
ops-1 ansible_host=127.0.0.1 ansible_ssh_user=shenlan
|
k8s-1 ansible_host=43.207.228.137
|
||||||
k8s-1 ansible_host=3.115.13.153
|
k8s-2 ansible_host=57.182.251.106
|
||||||
k8s-2 ansible_host=35.78.97.10
|
k8s-3 ansible_host=18.179.59.49
|
||||||
k8s-3 ansible_host=35.77.230.131
|
|
||||||
|
|
||||||
[all:vars]
|
[all:vars]
|
||||||
ansible_port=22
|
ansible_port=22
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
vars:
|
vars:
|
||||||
# Use the inventory hostname for delegation so Ansible
|
# Use the inventory hostname for delegation so Ansible
|
||||||
# applies the correct connection variables
|
# applies the correct connection variables
|
||||||
ops_host: "ops-1"
|
ops_host: "k8s-1"
|
||||||
masters:
|
masters:
|
||||||
- "k8s-1"
|
- "k8s-1"
|
||||||
nodes:
|
nodes:
|
||||||
|
|||||||
@ -96,7 +96,7 @@
|
|||||||
--masters {{ master_ips | join(',') }} \
|
--masters {{ master_ips | join(',') }} \
|
||||||
--nodes {{ node_ips | join(',') }} \
|
--nodes {{ node_ips | join(',') }} \
|
||||||
--user {{ ssh_user }} \
|
--user {{ ssh_user }} \
|
||||||
--pk {{ ssh_private_key }} \
|
--pk /home/{{ ansible_user }}/.ssh/id_rsa \
|
||||||
--env '{{ sealos_cmd_env }}' \
|
--env '{{ sealos_cmd_env }}' \
|
||||||
--cmd "{{ kubeadm_init_cmd }}"
|
--cmd "{{ kubeadm_init_cmd }}"
|
||||||
args:
|
args:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user