Skip to content

Conversation

afbjorklund
Copy link
Member

If your instances are connected through a proper network,
then it is possible to join additional workers to the control plane.

Beyond the URL of the apiserver (running on port 6443),
you will also need the secret "token" emitted by the initial installation.


The two (or more) Kubernetes nodes will need to be able reach eachother, though.

The default network ("user") will not allow this, but it is possible to use "socket":

Probably still need the original NAT network to pull images, so needs eth0/eth1 ?

This is the setup done in minikube, originally by using the VirtualBox networks...

@afbjorklund
Copy link
Member Author

afbjorklund commented Nov 20, 2022

@afbjorklund
Copy link
Member Author

afbjorklund commented Nov 20, 2022

Choosing the apiserver address and the flannel interface, with k3s and k8s:

k3s:
--node-ip 10.0.2.100
--flannel-iface=eth1

k8s:
kubeadm --apiserver-advertise-address 10.0.2.100 (localAPIEndpoint: advertiseAddress: in yaml)
/opt/bin/flanneld --iface=eth1 (in kube-flannel.yml)

When having nodes with multiple interfaces, and eth0 is the host/slirp interface.

Should deploy a DNS server, to be able to configure addresses (based on the MAC)

@afbjorklund afbjorklund force-pushed the worker branch 2 times, most recently from f82f520 to a1bf0cc Compare November 21, 2022 17:19
If your instances are connected through a proper network, then
it is possible to join additional workers to the control plane.

Beyond the URL of the apiserver (running on port 6443), you will
also need the secret "token" emitted by the initial installation.

Signed-off-by: Anders F Björklund <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants