Add feature to install kubernetes worker nodes
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":
- https://github.com/lima-vm/lima/issues/682
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...
- https://github.com/kubernetes/minikube/issues/4938
Based on question in:
- https://github.com/lima-vm/lima/discussions/1181
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)