parent
ed980f816f
commit
92e4b3bb27
|
@ -12,6 +12,7 @@ k3s:
|
||||||
ips:
|
ips:
|
||||||
- 192.168.20.21
|
- 192.168.20.21
|
||||||
- 192.168.20.24
|
- 192.168.20.24
|
||||||
|
- 192.168.20.30
|
||||||
loadbalancer:
|
loadbalancer:
|
||||||
ip: 192.168.20.22
|
ip: 192.168.20.22
|
||||||
default_port: 6443
|
default_port: 6443
|
||||||
|
@ -24,4 +25,4 @@ k3s:
|
||||||
- 192.168.20.26
|
- 192.168.20.26
|
||||||
- 192.168.20.27
|
- 192.168.20.27
|
||||||
|
|
||||||
k3s_db_connection_string: "postgres://{{db.user}}:{{db.password}}@{{k3s.db.ip}}:{{k3s.db.default_port}}/{{db.name}}"
|
k3s_db_connection_string: "postgres://{{ db.user }}:{{ db.password }}@{{ k3s.db.ip }}:{{ k3s.db.default_port }}/{{ db.name }}"
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
ansible_user: "{{ user }}"
|
||||||
|
ansible_host: 192.168.20.30
|
||||||
|
ansible_port: 22
|
||||||
|
ansible_ssh_private_key_file: "{{ pk_path }}"
|
||||||
|
ansible_become_pass: "{{ vault.k3s.server01.sudo }}"
|
||||||
|
|
||||||
|
host:
|
||||||
|
hostname: "k3s-server02"
|
||||||
|
ip: "{{ ansible_host }}"
|
|
@ -6,6 +6,7 @@ k3s-postgres
|
||||||
k3s-loadbalancer
|
k3s-loadbalancer
|
||||||
k3s-server00
|
k3s-server00
|
||||||
k3s-server01
|
k3s-server01
|
||||||
|
k3s-server02
|
||||||
k3s-agent00
|
k3s-agent00
|
||||||
k3s-agent01
|
k3s-agent01
|
||||||
k3s-agent02
|
k3s-agent02
|
||||||
|
@ -13,6 +14,7 @@ k3s-agent02
|
||||||
[k3s_server]
|
[k3s_server]
|
||||||
k3s-server00
|
k3s-server00
|
||||||
k3s-server01
|
k3s-server01
|
||||||
|
k3s-server02
|
||||||
|
|
||||||
[k3s_agent]
|
[k3s_agent]
|
||||||
k3s-agent00
|
k3s-agent00
|
||||||
|
@ -25,12 +27,14 @@ k3s-agent01
|
||||||
k3s-agent02
|
k3s-agent02
|
||||||
k3s-server00
|
k3s-server00
|
||||||
k3s-server01
|
k3s-server01
|
||||||
|
k3s-server02
|
||||||
k3s-postgres
|
k3s-postgres
|
||||||
k3s-loadbalancer
|
k3s-loadbalancer
|
||||||
|
|
||||||
[k3s_nodes]
|
[k3s_nodes]
|
||||||
k3s-server00
|
k3s-server00
|
||||||
k3s-server01
|
k3s-server01
|
||||||
|
k3s-server02
|
||||||
k3s-agent00
|
k3s-agent00
|
||||||
k3s-agent01
|
k3s-agent01
|
||||||
k3s-agent02
|
k3s-agent02
|
||||||
|
|
Loading…
Reference in New Issue