Dr. Stefan Schimanski
1be1a8ce63
Rename SchedulerLoop -> Controller
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
adfc63e749
Clean up error handling for the sandbox overlay
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
8af8aa4710
Fix rebase error
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
06a975e5ad
Move podschedulers below components/algorithm
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
4d99ee7e54
Rename NewScheduler -> New
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
a727188c19
Fix broadcaster duplicate
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
182f49dac5
gofmt fixes
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
bb53cc26d3
Reorder scheduler packages
...
- Scheduler implemenation -> components
- types -> toplevel scheduler package
- integration_test.go -> integration
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
ef0a512c15
Move framework into components directory
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
3601292cff
Split MesosScheduler from actual Scheduler code holding the task registry
...
- rename types.Framework -> types.Scheduler
- rename MesosScheduler -> Framework
- transform MesosFramework into independent Scheduler glueing all scheduler
components, implementing types.Scheduler and owning the task registry
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
ae4673e86e
Split binder, deleter, podScheduler initialion from NewSchedulerLoop
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
5f070c11a7
Get rid of unecessary SchedulerLoopConfig detour to create a SchedulerLoop
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
0ebfc02d16
Separate SchedulerLoop instantiation from MesosScheduler
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
2c4142494a
Turn plugin into a SchedulerLoop and move to operations directory
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
18fbc1fe57
Make scheduler service variables private
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
23fa56adb1
Move etcd code from MesosScheduler into service
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
47e2f1fba8
Rename scheduler.{algorithm -> podschedulers}
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
8e3c648ca0
Rename schedcfg -> schedulerConfig
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
beaaf81ee3
Move fcfs and types to scheduler.algorithm module
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
b600e6c497
Rename KubernetesMesosScheduler.{Scheduler -> PodScheduler}
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
8fb77ce13e
Exit scheduler if sandbox overlay does not exist
2015-11-03 11:27:41 +01:00
Dr. Stefan Schimanski
ed09e5c29d
Add supported archive format for --mesos-sandbox-overlay
2015-11-03 11:27:41 +01:00
Dr. Stefan Schimanski
60ac1b932f
Simplify serveFrameworkArtifact with library function for basenames
2015-11-03 11:27:41 +01:00
Dr. Stefan Schimanski
4062e2be2f
Add executor sandbox overlay mechanism to distribute nsenter and socat
2015-11-03 11:27:40 +01:00
James DeFelice
b28333ca43
enable profiling for the kubelet/executor when turned on at the scheduler
2015-10-15 21:22:41 +00:00
Dr. Stefan Schimanski
aea7985b85
Take default limits for cpu and mem into account in FitPredicate
2015-10-10 12:29:52 +02:00
Sergiusz Urbaniak
42c84954fd
executor,scheduler: make launchGracePeriod configurable
2015-10-02 07:43:49 +02:00
eulerzgy
71b96422f4
set capital in some files
2015-09-30 14:46:20 +08:00
Dr. Stefan Schimanski
4d4ebe9f18
Add Mesos slave attributes as node labels
...
- pre-create node api objects from the scheduler when offers arrive
- decline offers until nodes a registered
- turn slave attributes as k8s.mesosphere.io/attribute-* labels
- update labels from executor Register/Reregister
- watch nodes in scheduler to make non-Mesos labels available for NodeSelector matching
- add unit tests for label predicate
- add e2e test to check that slave attributes really end up as node labels
2015-09-26 09:46:56 +02:00
Sergiusz Urbaniak
d97ccea8c2
scheduler: add healthz endpoint
2015-09-16 09:15:20 +02:00
James DeFelice
cf908df89c
add flags for initial executor cpu and memory resources
2015-09-06 02:16:09 +00:00
James DeFelice
a1cea8dd87
Flexible resource accounting and pod resource containment:
...
- new: introduce AllocationStrategy, Predicate, and Procurement to scheduler pkg
- new: --contain-pod-resources flag (workaround for docker+systemd+mesos problems)
- new: --account-for-pod-resources flag (for testing overcommitment)
- bugfix: forward -v flag from minion controller to executor
2015-09-04 00:49:13 +00:00
James DeFelice
7fbd290167
moved cgroup-root detection to minion service; kube proxy now configured to run in mesos container
2015-09-02 06:13:26 +00:00
k8s-merge-robot
de60651cc0
Merge pull request #12858 from MatMaul/master
...
Auto commit by PR queue bot
2015-08-30 21:46:50 -07:00
Dr. Stefan Schimanski
cac58f6db7
Add --path-override to minion to change the PATH env var of subprocesses;
...
pass hostname-override through to kube-proxy (if defined)
2015-08-27 22:57:04 +00:00
Mathieu Velten
57f18a0e04
Add a dockercfg_path parameter to the Mesos scheduler (the main purpose is to handle private repos auth).
...
This is implemented by copying the dockercfg file in the executor work directory.
2015-08-26 11:21:08 +02:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Kris Rousey
2a17dbff13
Moving clientauth package to be under client
2015-08-12 14:43:17 -07:00
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Eric Paris
fe6b633e2a
Convert for util.IP to just use a net.IP
...
pflag can handle IP addresses so use the pflag code instead of doing it
ourselves. This means our code just uses net.IP and we don't have all of
the useless casting back and forth!
2015-08-10 10:15:05 -04:00
Eric Paris
7cbb52ce04
Use the pflag StringSlice instead of implementing it ourselves
...
Saves code and makes our code easier to read because we just use normal
[]string instead of custom type.
2015-08-06 19:16:13 -04:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
Dr. Stefan Schimanski
191f2def5f
Add test to check that NewSchedulerServer sets resource defaults
2015-08-04 22:01:23 +02:00
Dr. Stefan Schimanski
3fced6f07b
Set the cpu+mem default limit in the SchedulerServer
2015-08-04 12:15:17 +02:00
Dr. Stefan Schimanski
76dc61bcfb
Revert "Revert "Add Mesos hyperkube minion server ""
...
This reverts commit 8372b0d927 .
2015-07-31 20:33:04 +02:00
Mike Danese
8372b0d927
Revert "Add Mesos hyperkube minion server "
2015-07-31 10:47:42 -07:00
Dr. Stefan Schimanski
2b1ecd28f0
Add Mesos hyperkube minion server
...
The minion server will
- launch the proxy and executor
- relaunch them when they terminate uncleanly
- logrotate their logs.
It is a replacement for a full-blown init process like s6 which is not necessary
in this case.
2015-07-31 12:28:40 +02:00
Dr. Stefan Schimanski
1200125137
Share KM_* constants
2015-07-31 11:27:52 +02:00
Dr. Stefan Schimanski
0ebf1811f3
Add scheduler flag --executor-proxy-logv
2015-07-31 11:27:52 +02:00