k3s/contrib
Dr. Stefan Schimanski a2fa41b73f Implement resource accounting for pods with the Mesos scheduler
This patch

- set limits (0.25 cpu, 64 MB) on containers which are not limited in pod spec
  (these are also passed to the kubelet such that it uses them for the docker
  run limits)
- sums up the container resource limits for cpu and memory inside a pod,
- compares the sums to the offered resources
- puts the sums into the Mesos TaskInfo such that Mesos does the accounting
  for the pod.
- parses the static pod spec and adds up the resources
- sets the executor resources to 0.25 cpu, 64 MB plus the static pod resources
- sets the cgroups in the kubelet for system containers, resource containers
  and docker to the one of the executor that Mesos assigned
- adds scheduler parameters --default-container-cpu-limit and
  --default-container-mem-limit.

The containers themselves are resource limited the Docker resource limit which
the kubelet applies when launching them.

Fixes mesosphere/kubernetes-mesos#68 and mesosphere/kubernetes-mesos#304
2015-07-30 21:18:04 +02:00
..
ansible Ansible updates for Atomic. 2015-07-24 18:29:55 -04:00
completions/bash Enable -c for kubectl logs container arg 2015-06-30 13:25:54 -07:00
exec-healthz Replace ```shell with ```sh 2015-07-19 21:38:53 -07:00
for-demos Add a simple hostport-to-service proxy 2015-06-26 21:55:18 -07:00
for-tests Use a service between e2e volume tests clients and servers. 2015-07-23 11:51:43 +02:00
git-sync Updating scripts to use v1 instead of v1beta3 2015-07-01 00:23:16 -07:00
go2docker Add ga-beacon analytics to gendocs scripts 2015-05-15 18:56:38 -07:00
init/systemd Fix misspellings in documentation 2015-06-05 11:35:17 -04:00
logging Update the fluentd-gcp images to include their latest Dockerfile changes. 2015-07-24 01:27:42 +00:00
mesos Implement resource accounting for pods with the Mesos scheduler 2015-07-30 21:18:04 +02:00
pod-master s/gcloud preview docker/gcloud docker/ 2015-06-18 12:27:08 -07:00
podex Add ga-beacon analytics to gendocs scripts 2015-05-15 18:56:38 -07:00
prometheus Updating scripts to use v1 instead of v1beta3 2015-07-01 00:23:16 -07:00
recipes Fix misspellings in documentation 2015-06-05 11:35:17 -04:00
release-notes Update release notes tool and documentation 2015-07-07 17:40:10 -07:00