Merge branch 'master' into 1.19.0-rc.4-updated
commit
0cfd9e7cf4
|
@ -227,14 +227,14 @@ func generateClusterConfig(cmd *cobra.Command, existing *config.ClusterConfig, k
|
|||
|
||||
mem := suggestMemoryAllocation(sysLimit, containerLimit, viper.GetInt(nodes))
|
||||
if cmd.Flags().Changed(memory) {
|
||||
mem, err := pkgutil.CalculateSizeInMB(viper.GetString(memory))
|
||||
var err error
|
||||
mem, err = pkgutil.CalculateSizeInMB(viper.GetString(memory))
|
||||
if err != nil {
|
||||
exit.WithCodeT(exit.Config, "Generate unable to parse memory '{{.memory}}': {{.error}}", out.V{"memory": viper.GetString(memory), "error": err})
|
||||
}
|
||||
if driver.IsKIC(drvName) && mem > containerLimit {
|
||||
exit.UsageT("{{.driver_name}} has only {{.container_limit}}MB memory but you specified {{.specified_memory}}MB", out.V{"container_limit": containerLimit, "specified_memory": mem, "driver_name": driver.FullName(drvName)})
|
||||
}
|
||||
|
||||
} else {
|
||||
validateMemorySize(mem, drvName)
|
||||
glog.Infof("Using suggested %dMB memory alloc based on sys=%dMB, container=%dMB", mem, sysLimit, containerLimit)
|
||||
|
|
|
@ -63,12 +63,11 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: {{.EtcdDataDir}}
|
||||
{{- if .EtcdExtraArgs}}
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
{{- range $i, $val := printMapInOrder .EtcdExtraArgs ": " }}
|
||||
{{$val}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -41,6 +41,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -32,6 +32,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -38,6 +38,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -41,6 +41,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -32,6 +32,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -38,6 +38,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -41,6 +41,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -31,6 +31,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -32,6 +32,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
|
@ -38,6 +38,8 @@ dns:
|
|||
etcd:
|
||||
local:
|
||||
dataDir: /var/lib/minikube/etcd
|
||||
extraArgs:
|
||||
proxy-refresh-interval: "70000"
|
||||
controllerManager:
|
||||
extraArgs:
|
||||
"leader-elect": "false"
|
||||
|
|
Loading…
Reference in New Issue