Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

[kops] Enable CFS configuration #42

Merged
merged 1 commit into from
Aug 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions templates/kops/kops-private-topology.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,30 @@ spec:
{{- end }}
kubeDNS:
provider: CoreDNS
{{- if bool (getenv "KOPS_AUTHORIZATION_RBAC_ENABLED" "false") }}
kubelet:
{{- if bool (getenv "KOPS_AUTHORIZATION_RBAC_ENABLED" "false") }}
anonymousAuth: false
{{- end }}
{{- end }}
{{- if getenv "KOPS_CPU_CFS_QUOTA_PERIOD" }}
# cpuCFSQuotaPeriod sets CPU CFS quota period value.
# Defaults to Linux kernel default, which is 100ms.
# Default is recommended for kernel with correctly functioning CFS scheduler,
# but as of 2019-08-15 there were still known bugs waiting to be patched.
# Recommended value until Linux Kernel is patched: 5ms - 20ms.
# Format is golang Duration, e.g. "10ms".
# See https://github.com/kubernetes/kubernetes/pull/63437 for discussion
# of cpuCFSQuotaPeriod and cpuCFSQuota and references to more information.
# See https://github.com/kubernetes/kubernetes/issues/67577#issuecomment-519527965
# to begin your search for current kernel patch status.
cpuCFSQuotaPeriod: {{ getenv "KOPS_CPU_CFS_QUOTA_PERIOD" }}
{{- end }}
{{- if eq (getenv "KOPS_CPU_CFS_QUOTA_ENABLED" | default "true") "false" }}
# cpuCFSQuota enables CPU CFS quota enforcement for containers that specify CPU limits.
# It is not recommended to set this to false. Bugs in CFS scheduling are better
# mitigated by setting cpuCFSQuotaPeriod to something in the range of 5ms to 20ms.
# Workloads that do not want CPU throttling can opt out by not specifying CPU limits.
cpuCFSQuota: false
{{- end }}
kubeProxy:
metricsBindAddress: 0.0.0.0
kubernetesApiAccess:
Expand Down