Added http lb for lb
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
---
|
||||
- include_tasks: installation.yml
|
||||
- include_tasks: apps.yml
|
||||
@@ -14,3 +14,17 @@ stream {
|
||||
proxy_pass k3s_servers;
|
||||
}
|
||||
}
|
||||
|
||||
http {
|
||||
upstream k3s_servers {
|
||||
{% for ip in k3s_server_ips %}
|
||||
server {{ ip }};
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
server {
|
||||
location / {
|
||||
proxy_pass http://k3s_servers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user