Merge pull request #7074 from tsupertramp/add-kubelet-cpu-cfs-docs

Add docs for cpuCFSQuota / cpuCFSQuotaPeriod
This commit is contained in:
Kubernetes Prow Robot 2019-05-29 00:30:26 -07:00 committed by GitHub
commit 1f1b9fcece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -345,6 +345,25 @@ NOTE: Where the corresponding configuration value can be empty, fields can be se
Will result in the flag `--resolv-conf=` being built.
#### Disable CPU CFS Quota
To disable CPU CFS quota enforcement for containers that specify CPU limits (default true) we have to set the flag `--cpu-cfs-quota` to `false`
on all the kubelets. We can specify that in the `kubelet` spec in our cluster.yml.
```
spec:
kubelet:
cpuCFSQuota: false
```
#### Configure CPU CFS Period
Configure CPU CFS quota period value (cpu.cfs_period_us). Example:
```
spec:
kubelet:
cpuCFSQuotaPeriod: "100ms"
```
#### Enable Custom metrics support
To use custom metrics in kubernetes as per [custom metrics doc](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics)
we have to set the flag `--enable-custom-metrics` to `true` on all the kubelets. We can specify that in the `kubelet` spec in our cluster.yml.