This message was deleted.
# k3s
a
This message was deleted.
h
I no longer run k3s, so I am not best resource perhaps... But just checking to see if you have tried this? https://docs.k3s.io/installation/network-options#dual-stack-ipv4--ipv6-networking
g
I’m very new to k3s so I’m wondering if there is a simple way of doing it Regards
w
Two interfaces for what - the apiserver, a external LB, ?
g
So say if I on two interfaces and one goes down the other picks up the work
h
oh in that case you should do network bonding... what OS?
g
At the moment I’m using Ubuntu server
do it in sandbox first
g
Sandbox?
h
non-production
g
So a test machine?
Without k3s?
h
correct - yes so you have to do network bonding before k3s
g
I know this is probably not possible, but can you configure two IP’s for k3s so say for example a master node is on 192.168.-.- and also 10.10.-.- and one worker is on the 192.168.-.- and the other worker is on 10.10.-.- is it possible to point to the master
w
You will end up with a “bond0” aggregated interface that you will put your IP address on
You’ll want to use the 802.1ad (LACP) proto on the Linux side, and also the switch side
g
Would I need to edit k3s for the bonding
w
No
It’s down in Linux you do it
g
Ah is it possible for what I said above ?
If not I’ll just stick with the bonding
w
How many controller nodes are you planning to run
g
3 masters 3 workers
w
Ok, then you need to run a HA proxy for the controller nodes, such as there is one floating IP for the apiserver
g
Is that easy to setup
w
One of the three controllers will be the active controller node, the other two will be standby
You are running on bare metal, or cloud?
g
I will be running proxmox vm’s
w
is this for production, or non-production?
g
I’m running a media server so I guess it’s non production
w
Unless you want to get your learning on, I’d just stick with a single controller node, with the default state datastore
If you go HA, you’ll have to do a load-balancer in front of the three controller nodes (HAProxy or the like), configure k3s to use etcd as the datastore, have a floating IP, and do tls-san on the k3s install for the floating IP/DNS name
g
Im gonna be using metallb for my lb
w
That’s for the workloads, not the controllers
g
Oh right, is there any help you can give me as I’m very new to Kubernetes
w
Well, I’m on vacation today, in a car, so not really :)
You should spring for some K8s training if you are serious about it; K8s is a big ball of wax, much to learn
Plus there’s some underlying Linux tech you should get to know, as well as container building/repo tech
g
Ok no prob, I’ve been using docker for a while you see but Kubernetes is a new challenge I like the looks of
w
It’s a great tech to learn, for sure
g
I’ve managed to get it up and running along with metallb, rancher, longhorn and minio
w
It’s keeping it running with workloads that’s the trick ;)
Especially if other folks depend/make money on those workloads
g
I’m using it for a media server, hence why I want two IP’s
h
not sure if you have already seen this: https://www.rancher.academy/collections
w
I looked at one of those, the voice-over guy was pretty bad….
g
Can someone help me with the k3s stuff with what I mentioned before
If anyone can help it would be appreciated
h
this is what I would recommend... spin up new VMs for testing setup network bonding (if you still want to do that) then install k3s - https://docs.k3s.io/installation/configuration#configuration-with-install-script
g
Had a look into bonding but I found out it only for IPs on same subnet, the two IPs I’m wanting to setup are on different subnets. So need a work around somehow any idea?