kubeasz/roles/kube-lb/templates/kube-lb.conf.j2

23 lines
389 B
Plaintext
Raw Normal View History

user root;
worker_processes 1;
error_log /etc/kube-lb/logs/error.log warn;
events {
worker_connections 3000;
}
stream {
upstream backend {
{% for host in groups['kube_master'] %}
server {{ host }}:6443 max_fails=2 fail_timeout=3s;
{% endfor %}
}
server {
listen 127.0.0.1:6443;
proxy_connect_timeout 1s;
proxy_pass backend;
}
}