Merge pull request #231 from gottsman/master

Cleanup code to deploy the haproxy load balancer
pull/634/head
Mohamed Ayman 2021-07-04 06:12:04 +02:00 committed by GitHub
commit 385412cbd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -221,13 +221,11 @@ In this section you will provision an external load balancer to front the Kubern
Login to `loadbalancer` instance using SSH Terminal.
```
#Install HAProxy
loadbalancer# sudo apt-get update && sudo apt-get install -y haproxy
sudo apt-get update && sudo apt-get install -y haproxy
```
```
loadbalancer# cat <<EOF | sudo tee /etc/haproxy/haproxy.cfg
cat <<EOF | sudo tee /etc/haproxy/haproxy.cfg
frontend kubernetes
bind 192.168.5.30:6443
option tcplog
@ -244,7 +242,7 @@ EOF
```
```
loadbalancer# sudo service haproxy restart
sudo service haproxy restart
```
### Verification

View File

@ -20,7 +20,7 @@ Generate a certificate and private key for one worker node:
On master-1:
```
master-1$ cat > openssl-worker-1.cnf <<EOF
cat > openssl-worker-1.cnf <<EOF
[req]
req_extensions = v3_req
distinguished_name = req_distinguished_name