provider-k3s/api/k3s_config.go
Oz Tiram 5e9c798a56
Allow users to override the default SQLite datastore
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>
2023-10-17 11:41:45 +02:00

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"`
}