2022-08-10 16:55:20 +00:00
|
|
|
package config
|
|
|
|
|
2022-09-19 09:59:28 +00:00
|
|
|
type Kairos struct {
|
2022-08-10 16:55:20 +00:00
|
|
|
NetworkToken string `yaml:"network_token,omitempty"`
|
|
|
|
NetworkID string `yaml:"network_id,omitempty"`
|
|
|
|
Role string `yaml:"role,omitempty"`
|
|
|
|
DNS bool `yaml:"dns,omitempty"`
|
|
|
|
LogLevel string `yaml:"loglevel,omitempty"`
|
2022-12-01 17:14:05 +00:00
|
|
|
Hybrid bool `yaml:"hybrid,omitempty"`
|
2022-12-06 16:27:29 +00:00
|
|
|
HybridVPN bool `yaml:"hybrid_vpn,omitempty"`
|
2022-12-05 08:57:44 +00:00
|
|
|
MinimumNodes int `yaml:"minimum_nodes,omitempty"`
|
2022-12-07 10:35:17 +00:00
|
|
|
SkipAuto bool `yaml:"skip_auto"`
|
2022-12-08 13:51:11 +00:00
|
|
|
DisableDHT bool `yaml:"disable_dht,omitempty"`
|
2022-12-09 08:59:22 +00:00
|
|
|
HA HA `yaml:"ha,omitempty"`
|
2022-08-10 16:55:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Config struct {
|
2022-09-19 09:59:28 +00:00
|
|
|
Kairos *Kairos `yaml:"kairos,omitempty"`
|
2022-08-10 16:55:20 +00:00
|
|
|
K3sAgent K3s `yaml:"k3s-agent,omitempty"`
|
|
|
|
K3s K3s `yaml:"k3s,omitempty"`
|
|
|
|
VPN map[string]string `yaml:"vpn,omitempty"`
|
2022-12-01 17:14:05 +00:00
|
|
|
KubeVIP KubeVIP `yaml:"kubevip,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type KubeVIP struct {
|
|
|
|
Args []string `yaml:"args,omitempty"`
|
|
|
|
EIP string `yaml:"eip,omitempty"`
|
|
|
|
ManifestURL string `yaml:"manifest_url,omitempty"`
|
|
|
|
Interface string `yaml:"interface,omitempty"`
|
2022-08-10 16:55:20 +00:00
|
|
|
}
|
|
|
|
|
2022-12-06 16:27:29 +00:00
|
|
|
type HA struct {
|
|
|
|
Enable bool `yaml:"enable,omitempty"`
|
|
|
|
ExternalDB string `yaml:"external_db,omitempty"`
|
|
|
|
MasterNodes int `yaml:"master_nodes,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-08-10 16:55:20 +00:00
|
|
|
type K3s struct {
|
|
|
|
Env map[string]string `yaml:"env,omitempty"`
|
|
|
|
ReplaceEnv bool `yaml:"replace_env,omitempty"`
|
|
|
|
ReplaceArgs bool `yaml:"replace_args,omitempty"`
|
|
|
|
Args []string `yaml:"args,omitempty"`
|
|
|
|
Enabled bool `yaml:"enabled,omitempty"`
|
|
|
|
}
|