Skip to content

Commit

Permalink
Add second load balancer
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Jul 19, 2023
1 parent 9dadc80 commit 01eff45
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docs/datastore/cluster-loadbalancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit 01eff45

Please sign in to comment.