add inventory/gpu_k8s_cluster

This commit is contained in:
Haitao Pan 2025-06-25 20:07:36 +08:00
parent 9e55da5f7f
commit 071bb43821
2 changed files with 19 additions and 6 deletions

11
inventory/gpu_k8s_cluster Normal file
View File

@ -0,0 +1,11 @@
[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
[all:vars]
ansible_port=22
ansible_ssh_user=ubuntu
ansible_ssh_private_key_file=~/.ssh/id_rsa
ansible_host_key_checking=False

View File

@ -1,10 +1,12 @@
- hosts: all
become: true
vars:
ops_host: "172.16.11.120"
master_ips:
- "172.16.11.120"
node_ips:
- "172.16.11.152"
ops_host: "127.0.0.1"
masters:
- "k8s-1"
nodes:
- "k8s-2"
- "k8s-3"
roles:
- gpu-k8s
- roles/vhosts/gpu-k8s/
- roles/vhosts/common/