Finished lb and db

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-09-19 23:10:00 +02:00
parent 50abbf933c
commit 51a49d003d
51 changed files with 384 additions and 367 deletions

19
group_vars/k3s/vars.yml Normal file
View File

@@ -0,0 +1,19 @@
db:
default_user:
password: "{{ vault.k3s.postgres.default_user.password }}"
name: "k3s"
user: "k3s"
password: "{{ vault.k3s.db.password}}"
k3s:
server:
ips:
- 192.168.20.21
- 192.168.20.24
loadbalancer:
ips: 192.168.20.22
db:
ip: 192.168.20.23
default_port: "5432"
k3s_db_connection_string: "postgres://{{db.user}}:{{db.password}}@{{k3s.db.ip}}:{{k3s.db.default_port}}/{{db.name}}"