Merge pull request #231 from gottsman/master
Cleanup code to deploy the haproxy load balancerpull/634/head
commit
385412cbd6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue