adjust name for upstream in lb
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>rewrite
parent
2cc4fd0be0
commit
000375c7ba
|
@ -16,15 +16,16 @@ stream {
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
upstream k3s_servers {
|
upstream k3s_servers_http {
|
||||||
{% for ip in k3s_server_ips %}
|
least_conn;
|
||||||
server {{ ip }};
|
{% for ip in k3s_server_ips %}
|
||||||
{% endfor %}
|
server {{ ip }};
|
||||||
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://k3s_servers;
|
proxy_pass http://k3s_servers_http;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue