Commit Graph

5 Commits

Author SHA1 Message Date
Piyush Kumar
db6a275968 added omitempty tag to cluster init for worker nodes
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
2024-06-28 17:25:44 +05:30
Tyler Gillson
e0c5ebeade
Support ProviderOptions from the Kairos SDK; export constants for yip stage names (#65)
* conditionally disable ClusterInit to use sqlite for two node clusters
* expose boot.before stage names as constants
* support kairos SDK ProviderOptions; add datastore config
---------

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Signed-off-by: Arun Sharma <dev.arun2302@gmail.com>
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
Co-authored-by: Arun Sharma <dev.arun2302@gmail.com>
Co-authored-by: Oz Tiram <oz.tiram@gmail.com>
2024-06-11 14:44:34 -06:00
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
Rishi
1058fe1bb0 addressed review comments 2022-10-18 10:25:13 -07:00
Rishi
fbf2814170 filtering k3s agent config from cluster options 2022-10-18 09:50:18 -07:00