mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-12-13 15:08:34 +01:00
21 lines
495 B
Plaintext
21 lines
495 B
Plaintext
|
events { }
|
||
|
|
||
|
http {
|
||
|
# Set up our upstream of control (master) nodes. The default load balancing
|
||
|
# algorithm for nginx is to round-robin. Perfect!
|
||
|
upstream control_plane {
|
||
|
server node2:6443;
|
||
|
server node3:6443;
|
||
|
}
|
||
|
|
||
|
# Listen on port 6443, this is our default control plane port, then pass
|
||
|
# all traffic to one of the control (master) nodes.
|
||
|
server {
|
||
|
listen 6443;
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://control_plane;
|
||
|
}
|
||
|
}
|
||
|
}
|