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

Can't start kine backend database as static pod to replace etcd #7332

Closed
jomeier opened this issue Nov 24, 2024 · 3 comments
Closed

Can't start kine backend database as static pod to replace etcd #7332

jomeier opened this issue Nov 24, 2024 · 3 comments

Comments

@jomeier
Copy link

jomeier commented Nov 24, 2024

Hi,

I try to start a mariadb static pod as a kine backend to replace etcd.

If I start mariadb with systemd and create a etcd database. Everything works as expected.

If I start a static pod by creating a mariadb pod yaml in
/var/lib/rancher/rke2/agent/pod-manifests

and start the rke2-server systemd service, I get an immediate error in the journal logs, that nothing is listening on port 3306.

I would expect, that RKE2 starts all static pods (also MariaDB) and AFTERWARDS tries to connect to ETCD -> kine (and therefore also to MariaDB) plus: ETCD on its own is also started as a static pod.

Is that currently not possible?

Thanks and greetings,
Josef

@jomeier jomeier changed the title Can't start kine backend database as static pod Can't start kine backend database as static pod to replace etcd Nov 24, 2024
@brandond
Copy link
Member

brandond commented Nov 24, 2024

Don't do that. As I said when you asked on Slack:

If you're going to use an external SQL DB, it's recommended that you use something that's externally managed and has more reliability than your rke2 nodes. If you're just running a local datastore you're better off just using etcd. Using kine with a local DB is additional complication with no benefit.

@jomeier
Copy link
Author

jomeier commented Nov 25, 2024

SUSE and Synadia are working on a two Master HA Kubernetes Setup for the Edge.

They are doing that on two hosts in edge environments, where you - as possible Use Case - only have two fire zones. If one Fire Zone is down, the Kubernetes Cluster will be down without such solutions as described here.

I“m sorry that you closed this issue. In my opinion, the behaviour of Kine backed clusters is different as for ETCD backed clusters and this shouldn‘t be the case.

@brandond
Copy link
Member

brandond commented Nov 25, 2024

We are not planning on supporting external datastore running IN the cluster as static pods, regardless of the datastore type. We are able to do that with etcd because we manage its configuration and are able to ensure that it comes up in the correct sequence - but this is not easy to accomplish with arbitrary 3rd party databases.

I will also note that kine on NATS does not currently pass kubernetes conformance tests. Ref: k3s-io/kine#321

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

2 participants