From 01eff45537edee3c61872eff99b74629836ff6f2 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Wed, 19 Jul 2023 12:58:22 -0700 Subject: [PATCH] Add second load balancer Signed-off-by: Derek Nola --- docs/datastore/cluster-loadbalancer.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/datastore/cluster-loadbalancer.md b/docs/datastore/cluster-loadbalancer.md index 88fe9225b..6d8dab3ee 100644 --- a/docs/datastore/cluster-loadbalancer.md +++ b/docs/datastore/cluster-loadbalancer.md @@ -27,14 +27,16 @@ The nodes have hostnames and IPs of: * server-3: `10.10.10.52` -An additional node with docker installed is also configured, with hostname and IP of: -* lb-1: `10.10.10.99` +Two additional nodes for load balancing are configured with hostnames and IPs of: +* lb-1: `10.10.10.98` +* lb-2: `10.10.10.99` Three additional nodes exist with hostnames and IPs of: * agent-1: `10.10.10.101` * agent-2: `10.10.10.102` * agent-3: `10.10.10.103` + ## Nginx Load Balancer [Nginx Open Source](http://nginx.org/) provides a TCP load balancer. See [Using nginx as HTTP load balancer](https://nginx.org/en/docs/http/load_balancing.html) for more info. @@ -58,7 +60,9 @@ stream { } ``` -2) Run the following command on lb-1 to start the Nginx load balancer: +2) Run the Nginx load balancer on lb-1: + +Using docker: ```bash docker run -d --restart unless-stopped \ @@ -67,6 +71,13 @@ docker run -d --restart unless-stopped \ nginx:stable ``` +Or [install nginx](https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/) and then run: + +```bash +cp nginx.conf /etc/nginx/nginx.conf +systemctl start nginx +``` + 3) On agent-1, agent-2, and agent-3, run the following command to install k3s and join the cluster: ```bash