Make CPU reservations based on CPU allocation 60/960/2
authorKrisztian Lengyel <krisztian.lengyel@nokia.com>
Fri, 7 Jun 2019 10:55:29 +0000 (12:55 +0200)
committerKrisztian Lengyel <krisztian.lengyel@nokia.com>
Fri, 14 Jun 2019 05:53:03 +0000 (07:53 +0200)
commitdf3fea70cdc2661a7cfd5fbadcbc5a857b7c6413
treedc574af3417de4a13d5e434767b1297d56b9871c
parented93069afc19b80dc0cfc8c518a81b022fde71e5
Make CPU reservations based on CPU allocation

Kubelet CPU reservations set to configure proper node allocatable resources:
- kube-reserved currently set to 0
- system-reserved is calculated by the following formula:
  system-reserved = total cpu count - kube-reserved count - default cpu pool

Change-Id: Ibc937a533c881d55e2933c55eb3c208200c12a4f
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
ansible/roles/kubelet/defaults/main.yaml
ansible/roles/kubelet/templates/common-config.yaml.j2 [new file with mode: 0644]
ansible/roles/kubelet/templates/master-config.yaml.j2
ansible/roles/kubelet/templates/worker-config.yaml.j2
caas-kubernetes.spec