adjust name for upstream in lb

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
rewrite
Tuan-Dat Tran 2024-09-30 10:46:19 +02:00
parent 2cc4fd0be0
commit 000375c7ba
1 changed files with 7 additions and 6 deletions

View File

@ -16,7 +16,8 @@ stream {
} }
http { http {
upstream k3s_servers { upstream k3s_servers_http {
least_conn;
{% for ip in k3s_server_ips %} {% for ip in k3s_server_ips %}
server {{ ip }}; server {{ ip }};
{% endfor %} {% endfor %}
@ -24,7 +25,7 @@ http {
server { server {
location / { location / {
proxy_pass http://k3s_servers; proxy_pass http://k3s_servers_http;
} }
} }
} }