You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
k3s natively supports Kine for using external datatores, like PostgreSQL. https://docs.k3s.io/datastore
Utilizing this feature by adding the K3S_DATASTORE_ENDPOINT environmental variable does not work with HA. See config snippet below.
Running with a single pod (controlPlane.statefulSet.highAvailability.replicas: 1) works perfectly fine, and the single pod connects to the PostgreSQL databases as expected. But running with 3 replicas does not work. This error message is thrown by the vcluster pods.
syncer 2025-02-12 13:03:17 ERROR cmd/root.go:50 error {"component": "vcluster", "error": "embedded database is not supported with multiple replicas"}
But as shown in the config snippet below all internal and external databases are disabled. They are not needed because k3s actually uses the connection specified in the K3S_DATASTORE_ENDPOINT environmental variable.
What did you expect to happen?
I would expect vcluster to not throw an error message and multiple pods to be successfully lunched if specifying several replicas.
How can we reproduce it (as minimally and precisely as possible)?
Look at the config snippet below. All code needed to replicate is present.
Anything else we need to know?
With vcluster version 0.19.x using HA, k3s and the K3S_DATASTORE_ENDPOINT environmental variable works without issues.
What happened?
k3s natively supports Kine for using external datatores, like PostgreSQL. https://docs.k3s.io/datastore
Utilizing this feature by adding the
K3S_DATASTORE_ENDPOINT
environmental variable does not work with HA. See config snippet below.Running with a single pod (
controlPlane.statefulSet.highAvailability.replicas: 1
) works perfectly fine, and the single pod connects to the PostgreSQL databases as expected. But running with 3 replicas does not work. This error message is thrown by the vcluster pods.But as shown in the config snippet below all internal and external databases are disabled. They are not needed because k3s actually uses the connection specified in the
K3S_DATASTORE_ENDPOINT
environmental variable.What did you expect to happen?
I would expect vcluster to not throw an error message and multiple pods to be successfully lunched if specifying several replicas.
How can we reproduce it (as minimally and precisely as possible)?
Look at the config snippet below. All code needed to replicate is present.
Anything else we need to know?
With vcluster version 0.19.x using HA, k3s and the
K3S_DATASTORE_ENDPOINT
environmental variable works without issues.Host cluster Kubernetes version
vcluster version
VCluster Config
helm values snippet
k3s-state-store-connection secret
The text was updated successfully, but these errors were encountered: