Added protect-kernel-defaults flag.

This commit is contained in:
Michal Schott 2020-04-23 23:45:24 +02:00
parent f45c702643
commit cd258f8d3f
No known key found for this signature in database
GPG Key ID: 27CB5207854E69DA
3 changed files with 18 additions and 0 deletions

View File

@ -480,6 +480,16 @@ spec:
volumePluginDirectory: /provide/a/writable/path/here
```
### Protect Kernel Defaults
Default kubelet behaviour for kernel tuning. If set, kubelet errors if any of kernel tunables is different than kubelet defaults. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.)
```yaml
spec:
kubelet:
protectKernelDefaults: true
```
## kubeScheduler
This block contains configurations for `kube-scheduler`. See https://kubernetes.io/docs/admin/kube-scheduler/

View File

@ -201,6 +201,10 @@ type KubeletConfigSpec struct {
// rotateCertificates enables client certificate rotation.
RotateCertificates *bool `json:"rotateCertificates,omitempty" flag:"rotate-certificates"`
// Default kubelet behaviour for kernel tuning. If set, kubelet errors if any of kernel tunables is different than kubelet defaults.
// (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.)
ProtectKernelDefaults *bool `json:"protectKernelDefaults,omitempty" flag:"protect-kernel-defaults"`
}
// KubeProxyConfig defines the configuration for a proxy

View File

@ -201,6 +201,10 @@ type KubeletConfigSpec struct {
// rotateCertificates enables client certificate rotation.
RotateCertificates *bool `json:"rotateCertificates,omitempty" flag:"rotate-certificates"`
// Default kubelet behaviour for kernel tuning. If set, kubelet errors if any of kernel tunables is different than kubelet defaults.
// (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.)
ProtectKernelDefaults *bool `json:"protectKernelDefaults,omitempty" flag:"protect-kernel-defaults"`
}
// KubeProxyConfig defines the configuration for a proxy