Commit Graph

275 Commits

Author SHA1 Message Date
Sergiusz Urbaniak
1fd3bc087b pod_task: use annotations rather than labels for roles
Roles support in Kubernetes-Mesos was done using pod labels. This
commits moves this to pod annotations. Pod label yaml files don't
support '*' characters, furthermore roles are consumed by the scheduler
only and are not meant for querying/filtering.
2015-12-15 12:45:54 +01:00
Sergiusz Urbaniak
67e98fcfa8 executor, scheduler: make default pod roles configurable
Currently if a pod is being scheduled with no meta.RolesKey label
attached to it, per convention the first configured mesos (framework)
role is being used.

This is quite limiting and also lets e2e tests fail. This commit
introduces a new configuration option "--mesos-default-pod-roles" defaulting to
"*" which defines the default pod roles in case the meta.RolesKey pod
label is missing.
2015-12-14 15:18:39 +01:00
Wojciech Tyczynski
960808bf08 Switch to versioned ListOptions in client. 2015-12-14 14:26:09 +01:00
k8s-merge-robot
1c4d2624f8 Merge pull request #17917 from mesosphere/jdef_fix_downward_api_compat
Auto commit by PR queue bot
2015-12-13 06:55:22 -08:00
k8s-merge-robot
5ff88a4eb6 Merge pull request #18575 from jay-lau/master
Auto commit by PR queue bot
2015-12-11 17:11:40 -08:00
Jay Lau
69439149ed Correct typo for two parameters in mesos scheduler. 2015-12-11 10:02:27 -05:00
James DeFelice
af95e3fe0e - forward updated labels/annotations for downward API compat
- refactor queue.Pod construction to take functional options, privatize Pod fields
- refactor DelayFIFO and HistoricalFIFO to offer consistent, more useful Pop() funcs
- refactor pod update processing changes; long term we should somehow combine with the special pod config source that we are using for mirror pods
- task launch timer cleanup
2015-12-11 13:15:06 +00:00
Timothy St. Clair
413d8d18fe Futher storage isolation and removal of the tools interface. 2015-12-09 11:04:14 -06:00
Wojciech Tyczynski
a915b8b29a Merge pull request #18080 from wojtek-t/list_options_in_listwatch
Pass ListOptions to List in ListWatch.
2015-12-09 14:27:51 +01:00
deads2k
2ee3dfe415 update testapi to eliminate redundant fields 2015-12-07 15:54:26 -05:00
Wojciech Tyczynski
b0fcb5adef Pass ListOptions to List in ListWatch. 2015-12-07 11:53:53 +01:00
Wojciech Tyczynski
6dcb689d4e Simplify List() signature in clients. 2015-12-03 09:54:07 +01:00
Dr. Stefan Schimanski
271eeb008b Merge pull request #52 from mesosphere/sttts-task-lost-during-kubelet-pod-launch
MESOS: scheduler: handle lost task status updates during kubelet pod launch
2015-12-02 13:50:28 +01:00
Dr. Stefan Schimanski
d2c86c847c Merge pull request #51 from mesosphere/sttts-tasks-killed-by-master
MESOS: scheduler: handle terminal tasks killed by the master
2015-12-02 12:02:50 +01:00
Wojciech Tyczynski
8343c8ce6c Pass ListOptions to List() methods. 2015-12-01 15:00:36 +01:00
k8s-merge-robot
7644d34759 Merge pull request #15775 from mesosphere/sur-k8sm-482-resource-roles
Auto commit by PR queue bot
2015-12-01 05:36:52 -08:00
k8s-merge-robot
3bd23b185b Merge pull request #17730 from wojtek-t/use_unversioned_list_options_in_client
Auto commit by PR queue bot
2015-11-25 09:10:19 -08:00
k8s-merge-robot
e95e3dec42 Merge pull request #17414 from timstclair/apiserver
Auto commit by PR queue bot
2015-11-25 05:28:07 -08:00
k8s-merge-robot
d42030170b Merge pull request #15999 from aveshagarwal/master-issue-15624
Auto commit by PR queue bot
2015-11-24 17:07:10 -08:00
Wojciech Tyczynski
b6ef62af24 Use unversioned.ListOptions in clients. 2015-11-24 16:52:09 +01:00
Avesh Agarwal
3d5207fd73 This commit adds type information to events.
This addresses issue #15624.
2015-11-24 09:59:54 -05:00
Avesh Agarwal
001437a72f This commit fixes tests. 2015-11-24 09:16:12 -05:00
Tim St. Clair
20ead45af9 Move etcd_util.go to separate package 2015-11-23 11:32:50 -08:00
Sergiusz Urbaniak
9eae47c6e6 scheduler: implement role awareness 2015-11-23 17:27:14 +01:00
deads2k
a87d927588 update client.Config to use GroupVersion 2015-11-21 08:29:26 -05:00
k8s-merge-robot
1a57cc8033 Merge pull request #15777 from mesosphere/sttts-replace-ssh-by-net-host-container
Auto commit by PR queue bot
2015-11-20 02:19:25 -08:00
James DeFelice
f855ac39d3 added proxy-mode flag to scheduler and minion 2015-11-18 20:32:44 +00:00
Dr. Stefan Schimanski
2d6c2eb897 e2e: replace ssh with net=host hostexec pod and kubectl exec
- document needed packages in hostexec image
- add RunHostCmdOrDie
- kube-proxy e2e: port from ssh to hostexec
  - use preset NodeName to schedule test pods to different nodes
  - parallel launch of pods
  - port from ssh to hostexec
  - add timeout because nc might block on udp
  - delete test container without grace period
- PrivilegedPod e2e: port from ssh to hostexec
- NodePort e2e: port from ssh to hostexec
- cluster/mesos/docker: Enable privileged pods
2015-11-17 20:48:34 +01:00
k8s-merge-robot
a999c0fbe4 Merge pull request #13943 from mesosphere/static-pods
Auto commit by PR queue bot
2015-11-16 13:53:23 -08:00
Dr. Stefan Schimanski
2f45d5706b Add node status update controller 2015-11-16 11:48:04 +01:00
James DeFelice
3d3577b9f3 rewrite of static pod json zipper
- add busybox static pod to mesos-docker cluster
- customize static pods with binding annotations
- code cleanup
- removed hacky podtask.And func; support minimal resources for static pods when resource accounting is disabled
- removed zip archive of static pods, changed to gzip of PodList json
- pod utilities moved to package podutil
- added e2e test
- merge watched mirror pods into the mesos pod config stream
2015-11-13 23:30:26 +00:00
Dr. Stefan Schimanski
a3f02cda17 Add resource requests support 2015-11-12 16:56:07 +01:00
Dr. Stefan Schimanski
1a958b0517 Merge pull request #16316 from mesosphere/scheduler-refactor
MESOS: Refactor scheduler
2015-11-12 15:28:25 +01:00
k8s-merge-robot
e71f43de93 Merge pull request #15976 from mesosphere/sur-k8sm-475-error-checking
Rebased previously reverted merge, just before this scheduler refactoring.

Auto commit by PR queue bot
2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
d7964de230 Clean up error 2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
f8ee091bde Move makeCompositeReconciler into taskreconciler package 2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
12efba8ce8 Rename podUpdates updates param -> podUpdatesBypass 2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
91c5c2d3b6 Break dependency circuit between deleter and queuer 2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
d35cb3b211 gofmt fixes 2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
1be1a8ce63 Rename SchedulerLoop -> Controller 2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
a7e2e227e5 Make ExecutorInfo role clear being a prototype 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
72aa1bdd25 Make queue private again in Queuer 2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
6f5d40e5de Rename ReconcilerAction -> Action 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
ba797e0dcb Fix comment 2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
ddcdf6a798 Remove Offers() dependency from ErrorHandler by moving out BreakChan factory 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
7adfabecda Shorten component constructor names 2015-11-12 01:33:50 +01:00