mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
fix CPUManagerReconcilePeriod field is not allowed 0
Signed-off-by: rongfu.leng <lenronfu@gmail.com>
This commit is contained in:
parent
30226e6c92
commit
0c753d1cb9
@ -101,7 +101,7 @@ clusterDNS:
|
||||
- 192.168.1.5
|
||||
- 192.168.1.8
|
||||
port: 8080
|
||||
cpuManagerReconcilePeriod: 0s
|
||||
cpuManagerReconcilePeriod: 1s
|
||||
systemReserved:
|
||||
memory: 2Gi
|
||||
authorization:
|
||||
@ -145,7 +145,7 @@ featureGates:
|
||||
}
|
||||
initialConfig.ClusterDNS = []string{"192.168.1.1", "192.168.1.5", "192.168.1.8"} // overridden by slice in second file.
|
||||
// This value was explicitly set in the drop-in, make sure it is retained
|
||||
initialConfig.CPUManagerReconcilePeriod = metav1.Duration{Duration: time.Duration(0)}
|
||||
initialConfig.CPUManagerReconcilePeriod = metav1.Duration{Duration: time.Second}
|
||||
// Meanwhile, this value was not explicitly set, but could have been overridden by a "default" of 0 for the type.
|
||||
// Ensure the true default persists.
|
||||
initialConfig.CPUCFSQuotaPeriod = metav1.Duration{Duration: time.Duration(100000000)}
|
||||
|
Loading…
Reference in New Issue
Block a user