1
0
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:
rawmind0
2021-01-22 18:35:13 +01:00
parent e395badf82
commit 1880404fc3
4 changed files with 28 additions and 4 deletions

View File

@@ -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 {