Dr. Stefan Schimanski
67746908e5
Deleting gracefully terminating, not-scheduled pre-scheduled pods
...
In upstream the kubelet is responsible for all pods which have the spec.NodeName
set. In Mesos we have a two-stage scheduling process:
1. pods with a pre-set spec.NodeName are still scheduled by the scheduler.
2. The kubelet will only see them when a Mesos task was started and the executor
passes the pod to the kubelet.
With this PR a pod with spec.NodeName which is gracefully terminated, but not
yet scheduled, e.g.
- because the termination happened just after creation and the scheduler was
not fast enough
- because the NodeSelector does not match
is deleted by the Mesos scheduler.
2015-09-26 23:42:08 +02:00
Brian Grant
e122b4199a
Merge pull request #14489 from mesosphere/jdef-fix505-zombies-after-sigterm
...
MESOS: try not to leave dangling zombie procs when minion controller exits
2015-09-25 13:29:55 -07:00
Brian Grant
a0872fbdaa
Merge pull request #14287 from gmarek/mock-proxy
...
Refactor KubeProxy to allow mocking of all moving parts.
2015-09-25 13:28:44 -07:00
Dr. Stefan Schimanski
9c24131b4e
Remove unused Watch code in executor
2015-09-25 17:55:22 +02:00
James DeFelice
ec2605a758
wait for some grace period for kill proc to die, upgrading from SIGTERM to SIGKILL if needed
...
- refactor kill signal escalation into separate func for easier unit testing
- added unit test for signal escalation
2015-09-24 18:53:23 +00:00
Dr. Stefan Schimanski
61b7e682ce
Fix zero MaxOpenFiles in Mesos executor
2015-09-24 11:59:16 +02:00
gmarek
1c25c2cd99
Refactor KubeProxy to allow mocking of all moving parts.
2015-09-23 18:47:05 +02:00
Dr. Stefan Schimanski
be57b2871e
Watch pods in executor and tell kubelet about graceful terminations
...
- instantiate framework.Controller for pods in the executor using framework.NewInformer,
in order to watch pod updates for pods on that host
- forwards updates like graceful termination to the kubelet.
This might also be the preparation for other updates which are supported by the
kubelet.
2015-09-22 16:41:43 +02:00
Dr. Stefan Schimanski
e4dcd97ac3
Dequeue pods in scheduler which are terminating
2015-09-22 16:41:43 +02:00
k8s-merge-robot
3713cbc912
Merge pull request #14169 from mesosphere/sttts-fix-kubelet-writer-npe
...
Auto commit by PR queue bot
2015-09-21 13:04:25 -07:00
k8s-merge-robot
1ad9aad8ab
Merge pull request #14259 from mesosphere/sttts-cleanup-task-lost
...
Auto commit by PR queue bot
2015-09-21 07:11:48 -07:00
k8s-merge-robot
0525e6e1e6
Merge pull request #14121 from mesosphere/sttts-extract-suicide-code
...
Auto commit by PR queue bot
2015-09-21 01:14:00 -07:00
Dr. Stefan Schimanski
132f8892ed
Move task-lost message prefix into messages module
2015-09-21 09:51:05 +02:00
Dr. Stefan Schimanski
9d8d0ed075
Fix missing volume writer in executor kubelet instantiation
2015-09-21 09:23:47 +02:00
Dr. Stefan Schimanski
a9d7acea39
Move suicide logic into its own file
2015-09-18 16:54:56 +02:00
Daniel Martí
586cb9126a
Move pkg/util.Time to pkg/api/unversioned.Time
...
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Alex Mohr
bdfd469a85
Merge pull request #14137 from caesarxuchao/13823
...
rebase 13823
2015-09-17 15:25:52 -07:00
k8s-merge-robot
c1eb1a1b2f
Merge pull request #13791 from fgrzadkowski/fix_secrets_in_docker
...
Auto commit by PR queue bot
2015-09-17 15:13:29 -07:00
k8s-merge-robot
654dd38b1c
Merge pull request #14120 from mesosphere/sttts-cleanup-hostname-override
...
Auto commit by PR queue bot
2015-09-17 14:23:36 -07:00
Kris
f4ad00d9ae
Moving Status object to a common package
2015-09-17 14:09:53 -07:00
Dr. Stefan Schimanski
88466dd21e
Cleanup --hostname-override logic in procurment
2015-09-17 18:41:16 +02:00
Filip Grzadkowski
7fe34f2050
Introduce nsenter writer for volume plugins
2015-09-17 16:40:29 +02:00
k8s-merge-robot
a204f31516
Merge pull request #13918 from mesosphere/reconcile-ignore-mirror-pods
...
Auto commit by PR queue bot
2015-09-17 02:36:31 -07:00
k8s-merge-robot
367e5571bf
Merge pull request #13965 from mesosphere/healthz
...
Auto commit by PR queue bot
2015-09-17 02:13:31 -07:00
k8s-merge-robot
4009021cf4
Merge pull request #14037 from mesosphere/scheduler-slave-registry
...
Auto commit by PR queue bot
2015-09-16 16:54:40 -07:00
Mike Danese
19421c52e2
Merge pull request #13963 from zhengguoyong/fix-minior-doc
...
fix the change of minions to nodes
2015-09-16 15:14:10 -07:00
k8s-merge-robot
22f698f5b0
Merge pull request #13953 from liguangbo/change_iff_to_if_and_only_if
...
Auto commit by PR queue bot
2015-09-16 08:35:20 -07:00
Dr. Stefan Schimanski
eb5a5ffc28
Extract slave hostname registry code in its own module
...
- remove bleeding of registry-internal objects, without any locking
- rename from SlaveStorage to Registry which fits much better to what
it actually does
2015-09-16 14:50:31 +02:00
liguangbo
4df68f03a3
change iff to if and only if to improve annotation readability
2015-09-16 08:29:36 +00:00
Sergiusz Urbaniak
d97ccea8c2
scheduler: add healthz endpoint
2015-09-16 09:15:20 +02:00
Jeff Lowdermilk
9ed2d842bc
Merge pull request #12655 from gmarek/api_ports
...
Add information about ports opened by Kubelet to API
2015-09-15 17:54:31 -07:00
eulerzgy
4d3d3a5e22
fix the change of minions to nodes
2015-09-16 02:30:42 +08:00
gmarek
4b8ddf3d7e
Add information about ports opened by Kubelet to API
2015-09-15 14:24:55 -04:00
Sergiusz Urbaniak
0f0b87600e
podtask: reduce log verbosity for pods w/o limits
2015-09-15 16:48:17 +02:00
k8s-merge-robot
bf641078eb
Merge pull request #13785 from wojtek-t/minion_to_node_2
...
Auto commit by PR queue bot
2015-09-14 23:23:06 -07:00
James DeFelice
a5307305f1
avoid recovery for mirrored pods on failover
2015-09-14 20:21:19 +00:00
Dr. Stefan Schimanski
857e1ac1ea
Remove endpoints of terminating tasks
...
This change was added to the upstream endpoint controller in 2aaf8bd .
2015-09-14 15:40:11 +02:00
Wojciech Tyczynski
53ae56f205
Replace "minion" with "node" in bunch of places.
2015-09-14 11:07:11 +02:00
Mike Danese
1065872d29
rebase and resolve a huge amount of conflicts to keep this up to date (does this commit have more LOC changed than the original implementation? that would be funny...)
2015-09-11 17:04:34 -07:00
k8s-merge-robot
bfc60709b1
Merge pull request #13468 from yifan-gu/rkt_doc
...
Auto commit by PR queue bot
2015-09-10 20:32:08 -07:00
Daniel Smith
b225c1d47a
Run gofmt (separate commit for easy rebases)
2015-09-10 17:17:59 -07:00
Daniel Smith
15b30b8b09
Move version agnostic parts of client
...
pkg/client/unversioned/cache -> pkg/client/cache
pkg/client/unversioned/record -> pkg/client/record
2015-09-10 17:17:59 -07:00
Yifan Gu
e7b9c50ba1
kubelet/rkt: add support for different stage1 image.
...
Also enable grace stop for service files.
2015-09-10 14:58:03 -07:00
tummychow
78ce5da988
Move util.StringSet into its own package
...
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
k8s-merge-robot
c993cf6509
Merge pull request #13192 from jiangyaoguo/rate-limit-events-in-kubelet
...
Auto commit by PR queue bot
2015-09-09 14:58:28 -07:00
Jerzy Szczepkowski
6998247e1b
Implemented removal of Deployments, Daemons & HorizontalPodAutoscalers when Namespace is removed.
...
Implemented removal of Deployments, Daemons & HorizontalPodAutoscalers when Namespace is removed. Added unittest. Fixes #12735 .
2015-09-09 10:59:43 +02:00
jiangyaoguo
1460a1fb9e
Rate limit events in kubelet
...
1. Add EvnetRecordQps and EventBurst parameter in kubelet.
2. If EvnetRecordQps and EventBurst was set, rate limit events in kubelet
with a independent ratelimiter as setted.
2015-09-09 16:57:21 +08:00
James DeFelice
cf908df89c
add flags for initial executor cpu and memory resources
2015-09-06 02:16:09 +00:00
Chao Xu
9fc79e9d99
refactor testapi and test scripts to prepare for multiple API groups.
2015-09-04 18:01:32 -07:00
Dr. Stefan Schimanski
ada14a524d
Fix compilation of Mesos minion on Mac
2015-09-04 16:59:44 +00:00