Implement node Allocatable

Add `kube-reserved` and `system-reserved` flags for configuration
reserved resources for usage outside of kubernetes pods. Allocatable is
provided by the Kubelet according to the formula:
```
Allocatable = Capacity - KubeReserved - SystemReserved
```

Also provides a method for estimating a reasonable default for
`KubeReserved`, but the current implementation probably is low and needs
more tuning.
This commit is contained in:
Tim St. Clair
2015-12-11 17:51:39 -08:00
parent 8f401fb0d5
commit e2ffd007f7
7 changed files with 123 additions and 11 deletions

View File

@@ -156,6 +156,7 @@ km-path
kube-api-burst
kube-api-qps
kube-master
kube-reserved
kubectl-path
kubelet-address
kubelet-cadvisor-port
@@ -331,6 +332,7 @@ streaming-connection-idle-timeout
suicide-timeout
sync-frequency
system-container
system-reserved
target-port
tcp-services
terminated-pod-gc-threshold