mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 22:46:25 +00:00
Added etcd snapshot timeout parameter
This commit is contained in:
@@ -54,6 +54,7 @@ const (
|
||||
DefaultMonitoringProvider = "metrics-server"
|
||||
DefaultEtcdBackupConfigIntervalHours = 12
|
||||
DefaultEtcdBackupConfigRetention = 6
|
||||
DefaultEtcdBackupConfigTimeout = docker.WaitTimeout
|
||||
|
||||
DefaultDNSProvider = "kube-dns"
|
||||
K8sVersionCoreDNS = "1.14.0"
|
||||
@@ -336,6 +337,9 @@ func (c *Cluster) setClusterServicesDefaults() {
|
||||
if c.Services.Etcd.BackupConfig.Retention == 0 {
|
||||
c.Services.Etcd.BackupConfig.Retention = DefaultEtcdBackupConfigRetention
|
||||
}
|
||||
if c.Services.Etcd.BackupConfig.Timeout == 0 {
|
||||
c.Services.Etcd.BackupConfig.Timeout = DefaultEtcdBackupConfigTimeout
|
||||
}
|
||||
}
|
||||
|
||||
if _, ok := c.Services.KubeAPI.ExtraArgs[KubeAPIArgAdmissionControlConfigFile]; !ok {
|
||||
|
Reference in New Issue
Block a user