-
Notifications
You must be signed in to change notification settings - Fork 403
Improve documentation on k3os install for High Availability with Embedded DB #666
Comments
First HA server node config
Other HA server nodes config
This should be the bare minimum for embedded etc HA using latest k3os RC. Here's some info on the k3s args used in the example. https://rancher.com/docs/k3s/latest/en/installation/ha-embedded/ Tried this a while back and got it up and running, however wrote this post from memory so double check the args, etc. |
Last confirmed with v0.19.5-rc.1
I think you have to use a hard coded ip or external dns of some type because mDNS is not standard? Also you must have exactly 3 or more running. 2of2 running is failure condition, 1of3 running is failure condition, 2of3 running is ok (???) Also i don't remember why now, but I had to set for sure
|
Can confirm the following configs are working for me with FIrst HA serve node: k3os:
token: <token>
k3s_args:
- server
- "--cluster-init"
ntp_servers:
# ntp servers if your choice
- 0.us.pool.ntp.org
- 1.us.pool.ntp.org
dns_nameservers:
# dns servers of your choice
- 8.8.8.8
- 1.1.1.1 Rest of the HA nodes: k3os:
token: <token>
k3s_args:
- server
- "--server"
- "https://<first HA server node IP>:6443"
ntp_servers:
# ntp servers if your choice
- 0.us.pool.ntp.org
- 1.us.pool.ntp.org
dns_nameservers:
# dns servers of your choice
- 8.8.8.8
- 1.1.1.1 the |
Hi, Just curious if first node is unreachable, how we can get to contact the API cluster? Thanks. |
If you are running in HA, you can contact any master node for the API |
Oh I see, just to make sure. Let say I have: 1st node: 192.168.1.1/24 I can call both of them on http://192.168.1.1:6443 or http://192.168.1.2:6443 anytime? |
Great, thanks! Thinking about register both IP to be have same name on DNS, but load-balancer looks more elegant. |
If you go down the DNS route your clients may still send requests to nodes that are down. Another option is to use a floating IP address type configuration (like keepalived), where the virtual IP address can move from one node to the other if the node is down |
did you update your |
I am experimenting with k3s in my homelab. I have managed to setup 1 server and 2 agents using the
k3os install
wizard. I have seen that inv0.19.5-rc.1
, a multi-server or High Availability with Embedded DB configuration is supported.I have been figuring out how to do this using k3os. I have spun up a new VM and it looks like the
k3os install
does not yet support this configuration, which is understandable since it's still in RC.Is there any way I can achieve multi-server install using k3os? Or maybe promote my current agents to masters as well? If so, can you guide me on how to achieve this? Basically for my setup I plan to have all nodes act as server and master
The text was updated successfully, but these errors were encountered: