diff --git a/templates/haproxy_frontend_rule.erb b/templates/haproxy_frontend_rule.erb index c9d0803..d78eead 100644 --- a/templates/haproxy_frontend_rule.erb +++ b/templates/haproxy_frontend_rule.erb @@ -28,7 +28,7 @@ acl <%= acl_rule_front %> <% end -%> <% if @fe_use_backend_array and !@fe_use_backend_array.empty? -%> <% @fe_use_backend_array.each do |fe_use_backend| -%> -use_backend <%= fe_use_backend %> +use_backend <%= fe_use_backend %> <% end -%> <% end -%> default_backend <%= @default_backend %> diff --git a/templates/haproxy_tail.erb b/templates/haproxy_tail.erb index a41d808..59e258c 100644 --- a/templates/haproxy_tail.erb +++ b/templates/haproxy_tail.erb @@ -1,4 +1,13 @@ + +backend kubernetes_backend +mode http +balance roundrobin +option httpchk GET /healthz +server kubw001 23.88.105.207:31768 check +server kubw003 116.203.227.35:31768 check + + backend error_backend mode http errorfile 503 /etc/haproxy/errors/503.http