基本框架
This commit is contained in:
14
ansible/inventory.ini
Normal file
14
ansible/inventory.ini
Normal file
@@ -0,0 +1,14 @@
|
||||
[k3s_server]
|
||||
# root SSH 连接,setup-k3s-workers-ssh.sh 会配置所有节点(含控制节点)
|
||||
ylc61 ansible_host=192.168.2.61 ansible_ssh_private_key_file=~/.ssh/id_ed25519_k3s_192.168.2.61
|
||||
|
||||
[k3s_worker]
|
||||
# 使用 setup-k3s-workers-ssh.sh 生成的每节点密钥,路径需与控制机实际一致
|
||||
ylc62 ansible_host=192.168.2.62 ansible_ssh_private_key_file=~/.ssh/id_ed25519_k3s_192.168.2.62
|
||||
ylc63 ansible_host=192.168.2.63 ansible_ssh_private_key_file=~/.ssh/id_ed25519_k3s_192.168.2.63
|
||||
ylc64 ansible_host=192.168.2.64 ansible_ssh_private_key_file=~/.ssh/id_ed25519_k3s_192.168.2.64
|
||||
|
||||
[k3s_nodes:children]
|
||||
k3s_server
|
||||
k3s_worker
|
||||
|
||||
Reference in New Issue
Block a user