I have a newbie Kubernetes setup question that I can’t find the answer to. Maybe community friends can help me.
I have a personal R&D Lab created using a robust PC running:
Fedora-30(the outer Host O/S)
LXCO/S containers (as Guests running
Docker CEnested and running within those
Using this setup, I’m able to mutate the “personality” of this environment to assume various technology and application development stacks.
Now the outer Host and LXC Guest O/S’ all have static IP-address on the same subnet as any other device on my personal (home) network (basically
bridged because it’s just easier ). The relevant hosts and IP-addresses for this question, are:
Fedora-30outer Host (the PC):
vps10 (CentOS-8)LXC guest:
vps11 (CentOS-8)LXC guest:
vps12 (CentOS-8)LXC guest:
vps13 (CentOS-8)LXC guest:
I would like to setup a small Kubernetes cluster, with
k8s00 (above) being it’s master node, and with
k8s03 (above) being the worker nodes. Again, these are LXC O/S containers with Docker CE nested within them (all working well).
As I set up Kubernetes, I would like to keep these IP-addresses (since other R&D Lab projects depend on them). Yet I can’t tell from the documentation if I can or cannot keep them. In other words, does the below initialization command (example below) imply that I need to wipe out all IP-addresses and let it take over IP-address assignment; or I don’t need to do that because the command simply creates an “overlay network” using the specified CIDR (atop my aforementioned static IP-addresses).
Many documents and books focus on super simple setups or all-in-a-box setups, which don’t apply to my scenario here.
Anyway, I hope it’s the latter (i.e. being able to keep my IP-addresses) because they effectively represent the
bare-metal addresses of those
LXC “servers”, which I would like to keep.
vps10$ sudo kubeadm init --pod-network-cidr=Some-Network/Some-Mask [other_options]
P.S. Assuming the answer is that I can keep my said static IP-addresses, what CIDR might be recommend for the above command? Same subnet; different subnet, etc.
Sorry for the verbose question. This will literally be my first Kubernetes setup, and things are already complicated, so I appreciate any walk-through answers.
Thank you in advance!