Commit Graph

500 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
k8s-merge-robot
b02417bb9b Merge pull request #18348 from mesosphere/sur-652-conformance-tests
Auto commit by PR queue bot
2015-12-15 02:02:50 -08:00
Sergiusz Urbaniak
7bf86d61ee mesos/docs: update docs for roles support
The scheduler documentation was updated to:

1. Reflect the `--mesos-framework-roles` and `--mesos-default-pod-roles`
configuration options.

2. Reflect pod roles configuration via annotations rather than labels.

3. The section describing more than two roles was modified to describe
only two roles because that is what is currently supported in Mesos.
2015-12-14 16:49:19 +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
James DeFelice
26593f1a6a use WithoutCancel interface w/ Pop(nil) 2015-12-12 15:33:48 +00:00
k8s-merge-robot
4f67b0b211 Merge pull request #18349 from mesosphere/sttts-workaround-kube-ui-condition-order-assumption
Auto commit by PR queue bot
2015-12-12 02:26:49 -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
k8s-merge-robot
a1f6cc3f63 Merge pull request #18574 from jay-lau/master
Auto commit by PR queue bot
2015-12-11 17:11:38 -08:00
markturansky
4fc1bf1f23 Added PersistentVolumeController 2015-12-11 10:33:30 -05:00
k8s-merge-robot
d3243b8778 Merge pull request #18383 from timothysc/tools_removal
Auto commit by PR queue bot
2015-12-11 07:17:14 -08:00
Jay Lau
69439149ed Correct typo for two parameters in mesos scheduler. 2015-12-11 10:02:27 -05:00
Jay Lau
85a9303bd6 Removed code confilict symbols from mesos scheduler document. 2015-12-11 22:32:52 +08: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
k8s-merge-robot
940f5d4447 Merge pull request #18434 from mesosphere/sur-680-kubelet-events
Auto commit by PR queue bot
2015-12-10 02:35:24 -08:00
Sergiusz Urbaniak
9176e93ba8 service: initialize EventClient
Kubelet events are not being tracked. This commit fixes it by
initializing the event client.

fixes https://github.com/mesosphere/kubernetes-mesos/issues/680
2015-12-09 20:43:11 +01: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
k8s-merge-robot
f3298531d1 Merge pull request #18355 from mesosphere/sttts-document-etcd-default
Auto commit by PR queue bot
2015-12-09 03:37:19 -08:00
Dr. Stefan Schimanski
9522e0ef12 contrib/mesos/scheduler: create nodes with ready condition
The current kube-ui version (compare https://github.com/kubernetes/kube-ui/pull/37/files#r46950087)
assumes that the first node condition is the Ready condition. This PR works
around this by enforcing the Ready condition to be the first one.

A parallel PR against kube-ui is on the way.
2015-12-08 22:29:52 +01:00
Dr. Stefan Schimanski
47a541aa1e Document package default for etcd persistence 2015-12-08 21:50:19 +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
k8s-merge-robot
db11f1b6c6 Merge pull request #17133 from derekwaynecarr/quota_controller_improvements
Auto commit by PR queue bot
2015-12-06 12:24:00 -08:00
Random-Liu
3cbdf79f8c Change original PodStatus to APIPodStatus, and start using kubelet internal PodStatus in dockertools 2015-12-04 17:37:39 -08:00
derekwaynecarr
55d4f70f8e Resource quota observes deletes faster 2015-12-03 17:35:05 -05:00
Wojciech Tyczynski
6dcb689d4e Simplify List() signature in clients. 2015-12-03 09:54:07 +01:00
James DeFelice
02a11f7a2e Merge pull request #53 from mesosphere/jdef_fix_executor_state_locks
MESOS: avoid mutex locking around blocking calls in kubelet-executor
Conflicts:
	contrib/mesos/pkg/executor/service/service.go
2015-12-02 22:45:52 +00:00
k8s-merge-robot
8a8639d7af Merge pull request #17863 from wojtek-t/only_list_options_in_watch
Auto commit by PR queue bot
2015-12-02 06:28:28 -08:00
k8s-merge-robot
cd76ca9527 Merge pull request #18017 from mesosphere/sur-k8sm-656-panic
Auto commit by PR queue bot
2015-12-02 06:17:48 -08:00
Sergiusz Urbaniak
91cbd5ff46 node: replace node lookup via node list watch with node store
Fixes https://github.com/mesosphere/kubernetes-mesos/issues/656
2015-12-02 14:12:56 +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
k8s-merge-robot
ac68536d44 Merge pull request #17832 from wojtek-t/list_options_in_list
Auto commit by PR queue bot
2015-12-02 02:34:17 -08:00
k8s-merge-robot
643cb7a1c7 Merge pull request #17891 from zhengguoyong/consistent_kubelet_package
Auto commit by PR queue bot
2015-12-01 08:37:01 -08: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
Wojciech Tyczynski
d2dfc912e6 Simplify Watch() signature in clients. 2015-12-01 14:19:26 +01:00
k8s-merge-robot
0d7d8793ea Merge pull request #17842 from mesosphere/sttts-docker-it
Auto commit by PR queue bot
2015-11-30 11:18:02 -08:00
Dr. Stefan Schimanski
e7203816f1 contrib/mesos/ci: name FETCH_HEAD as CONFORMANCE_BRANCH 2015-11-30 12:30:20 +01:00
zhengguoyong
bff8334db9 Consistent import kubelet app package name 2015-11-28 08:51:39 +08:00
Dr. Stefan Schimanski
2302caf970 contrib/mesos/ci: clone conformance branch into subdir
In order to properly shutdown the docker-compose cluster, after the conformance
test it is necessary to have the original version again. Running the conformance
tests from a clone in subdir with the right branch given by CONFORMANCE_BRANCH
is much easier.
2015-11-27 15:08:39 +01:00
Dr. Stefan Schimanski
ede8de7aba contrib/mesos/ci: call kube-down.sh from correct dir 2015-11-27 15:08:39 +01:00
Dr. Stefan Schimanski
5d69b46fc3 contrib/mesos/ci: call kube-down.sh first to stop dangling containers 2015-11-27 12:56:42 +01:00
Dr. Stefan Schimanski
5e6d35897d contrib/mesos/ci: add CONFORMANCE_BRANCH override 2015-11-27 09:30:54 +01:00
Dr. Stefan Schimanski
e795aff0ee contrib/mesos/ci: call docker-run interactively and with terminal
- passing `-i` to enable signal handling in a tty.
- passing `-t` to enable passing of the TERM env var.
2015-11-26 18:21:54 +01:00
Clayton Coleman
e9e02bdd50 Review comments 2015-11-26 11:53:38 -05:00
Clayton Coleman
9d19238f6c Fix tests to pass with changed external types 2015-11-26 11:53:37 -05: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