mirror of
https://github.com/kairos-io/provider-k3s.git
synced 2025-08-19 06:07:23 +00:00
k3s supports multiple datastores via Kine. If one chooses not to use etcd (the default) by passing `ClusterInit=false` they can also specify a different datastore overriding the default location at `/var/lib/rancher/k3s/server/db/state.db`. For example: datastore-endpoint: "sqlite:///etc/kubernetes/state.sqlite3" or: datastore-endpoint: "postgres://blueelephant:pgrulz@localhost:port/kine See here for more information: https://docs.k3s.io/datastore Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
10 lines
333 B
Go
10 lines
333 B
Go
package api
|
|
|
|
type K3sServerConfig struct {
|
|
ClusterInit bool `yaml:"cluster-init,omitempty"`
|
|
Token string `yaml:"token,omitempty"`
|
|
Server string `yaml:"server,omitempty"`
|
|
TLSSan []string `yaml:"tls-san,omitempty"`
|
|
DatastoreEndpoint string `yaml:"datastore-endpoint,omitempty"`
|
|
}
|