update configuration and example config

This commit is contained in:
2024-05-13 00:04:00 +03:00
parent 502552be32
commit be7ea89318
6 changed files with 23 additions and 193 deletions

View File

@@ -1,12 +1,12 @@
package config
type Dns struct {
Servers []string `yaml:"servers" env-default:"[8.8.8.8,8.8.4.4]"`
DisableHostNameservers bool `yaml:"disable_host_nameservers" env-default:"false"`
Servers []string `yaml:"servers" env-default:"8.8.8.8,8.8.4.4"`
DisableHostNameservers bool `yaml:"disable_host_nameservers"`
}
type Orchestrator struct {
Version string `yaml:"version" env-default:"v1.28.0"`
Version string `yaml:"version" env-default:"v1.29.0"`
ClusterName string `yaml:"cluster_name" env-default:"k8s-cluster.local"`
BinDir string `yaml:"bin_dir" env-default:"/usr/local/bin"`
SysctlFilePath string `yaml:"sysctl_file_path" env-default:"/etc/sysctl.d/99-sysctl.conf"`
@@ -16,12 +16,12 @@ type Orchestrator struct {
ExgernalCloudProvider string `yaml:"external_cloud_provider"`
ContainerEngine struct {
Type string `yaml:"type" env-default:"containerd"`
Install bool `yaml:"install" env-default:"true"`
Install bool `yaml:"install"`
} `yaml:"container_engine"`
PingAccessIp bool `yaml:"ping_access_ip" env-default:"true"`
AutoRenewCertificates bool `yaml:"auto_renew_certificates" env-default:"false"`
PingAccessIp bool `yaml:"ping_access_ip"`
AutoRenewCertificates bool `yaml:"auto_renew_certificates"`
EventTtl string `yaml:"event_ttl" env-default:"1h0m0s"`
PodSecurityPolicyEnabled bool `yaml:"pod_security_policy_enabled" env-default:"false"`
PodSecurityPolicyEnabled bool `yaml:"pod_security_policy_enabled"`
Network struct {
Plugin string `yaml:"plugin" env-default:"calico"`