Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to install kubernetes worker nodes #1183

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

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)

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 <anders.f.bjorklund@gmail.com>
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
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