From 8a33a10b19d7329a9b11af93f1ec9f202eac232e Mon Sep 17 00:00:00 2001 From: Maxim Filatov Date: Thu, 20 Aug 2020 19:27:47 +0300 Subject: [PATCH] kubelet: added systemReserved and kubeReserved configuration options Signed-off-by: Maxim Filatov --- CHANGELOG.md | 1 + attributes/kubelet.rb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a10ef85b..9f5aaf7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # UNRELEASED +- kubelet: added `systemReserved` and `kubeReserved` configuration options (only for cpu and memory now) - [Weave Net: 2.7.0](https://github.com/weaveworks/weave/releases/tag/v2.7.0) - [etcd: 3.4.12](https://github.com/etcd-io/etcd/releases/tag/v3.4.12) - Weave: include `weave-npc` by default :shrug: diff --git a/attributes/kubelet.rb b/attributes/kubelet.rb index 1f5f4584..6edf3090 100644 --- a/attributes/kubelet.rb +++ b/attributes/kubelet.rb @@ -27,3 +27,7 @@ default['kubernetes']['kubelet']['config']['serverTLSBootstrap'] = true default['kubernetes']['kubelet']['config']['rotateCertificates'] = true default['kubernetes']['kubelet']['config']['cpuCFSQuotaPeriod'] = '10ms' +default['kubernetes']['kubelet']['config']['systemReserved']['cpu'] = '100m' +default['kubernetes']['kubelet']['config']['systemReserved']['memory'] = '100Mi' +default['kubernetes']['kubelet']['config']['kubeReserved']['cpu'] = '100m' +default['kubernetes']['kubelet']['config']['kubeReserved']['memory'] = '100Mi'