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 support for embedded DB HA mode #127

Closed
Tracked by #165
kopwei opened this issue Jun 11, 2021 · 4 comments
Closed
Tracked by #165

Add support for embedded DB HA mode #127

kopwei opened this issue Jun 11, 2021 · 4 comments

Comments

@kopwei
Copy link
Contributor

kopwei commented Jun 11, 2021

Since v1.19.5, K3s added support for HA mode with embedded ETCD and I hope this could be supported in Ansible scripts.

The document is described at K3s HA Embedded mode

Generally. First we shall define "K3S_TOKEN" as an input value, the value should be a string without special chars. e.g. "mySecret123",

  • On first master node, k3s should start via command "K3S_TOKEN='mySeceret123' k3s server --cluster-init [--extra server config]"
  • On other master, k3s should start via command "K3S_TOKEN='mySecret123' k3s server --server=https://<IP_OF_1st_MASTER>:6443 [--extra server config]"
  • For the rest worker nodes, k3s shall start as k3s-agent as before
@212850a
Copy link

212850a commented Jun 11, 2021

It's already implemented in this repo - https://github.com/k3s-io/k3s-ansible/tree/k3s-ha ;)

@2fst4u
Copy link

2fst4u commented Jun 18, 2021

It's also in this issue #32

@TwoTwenty
Copy link

will these changes be merged into master?

@dtaivpp
Copy link

dtaivpp commented Apr 11, 2022

will these changes be merged into master?

Curious about this as well. Seems to automatically detect if there are multiple masters so I don't see why it couldn't be added back in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants