George Paw
1 min readJul 8, 2019

--

Hi Eliezio,

Thank you for your kind words.

If you wanted to add more servers to the cluster, you can do it without configuring the MetalLB.

All you need to do is to add a new machine (with Kubernetes installed) to the existing cluster by using tokens. When you first create the cluster it will display the tokens.

If you missed it, fear not! Here are my instructions:

# Generating command for Slave Nodes to join, run this code in MASTER

INTERNALIP=$(hostname -I | awk ‘{print $1}’)
JOINTOKEN=$(kubeadm token create)
CACRT=$(openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed ‘s/^.* //’)

# generate the string
echo kubeadm join $INTERNALIP:6443 — token $JOINTOKEN — discovery-token-ca-cert-hash sha256:$CACRT

# copy and paste the string in the slave node

--

--

George Paw
George Paw

Written by George Paw

Battle-tested Engineer. Hackathon Addict. Drone Enthusiast.

No responses yet