Commit Graph

912 Commits (e97483ae7b16e04a51b63b71f33dd1b1f6063fad)

Author SHA1 Message Date
Tim Hockin b25069d084 Stop using `gcloud preview` - it is obsolete
Switch to supported APIs. Update docs.
2015-10-08 11:05:49 -07:00
Wojciech Tyczynski df79026b79 Extend resyncPeriods in controllers in production. 2015-10-08 09:10:09 +02:00
jackgr 703a3e19aa Add the kubectl apply command. 2015-10-07 17:14:51 -07:00
Alex Robinson c18d872f1a Merge pull request #15034 from mesosphere/jdef-fix-broken-master
MESOS: bugfix, configure oomAdjuster so that it gets passed on to the kubelet
2015-10-05 17:00:29 -07:00
Alex Robinson fe185f5ea7 Merge pull request #14415 from mesosphere/sttts-code-dedup-kubelet-init
Preparation for Mesos kubelet code-deduplication
2015-10-05 14:43:06 -07:00
Alex Robinson 84f8f01d45 Merge pull request #14432 from mesosphere/sur-k8sm-492-launch-grace-period
MESOS make launchGracePeriod configurable
2015-10-05 13:27:12 -07:00
Steve Milner e5b85194aa netexec: Multiple fixes and enhancements to netexec
* Added upload functionality
* More logging
* Moved to test/images
* Image file fixes
2015-10-05 16:05:36 -04:00
James DeFelice 6229c336e5 fix test flake due to dependency on time.Timer 2015-10-05 18:41:27 +00:00
k8s-merge-robot 02f878cf5b Merge pull request #14553 from mesosphere/sttts-fix-daemonsets-on-mesos
Auto commit by PR queue bot
2015-10-02 19:16:08 -07:00
James DeFelice e00a1b8e9e added missing forwarding of flags to KubeletConfig 2015-10-02 23:36:22 +00:00
James DeFelice 54e99d9f52 bugfix: configure oomAdjuster so that it gets passed on to the kubelet 2015-10-02 22:49:52 +00:00
k8s-merge-robot 6f4bcd5fe2 Merge pull request #14892 from mesosphere/sttts-fix-status-hostname-logic
Auto commit by PR queue bot
2015-10-02 13:45:33 -07:00
Dr. Stefan Schimanski 10f9a9752d Use KubeletConfig.Builder in Mesos executor 2015-10-02 19:39:24 +02:00
k8s-merge-robot e330b1197e Merge pull request #14459 from bprashanth/l7_ingress_resource_refactor
Auto commit by PR queue bot
2015-10-02 10:20:48 -07:00
k8s-merge-robot 7f9c18d646 Merge pull request #14819 from mesosphere/sttts-add-kubectl-bind-address
Auto commit by PR queue bot
2015-10-02 08:05:57 -07:00
k8s-merge-robot 6ca515c312 Merge pull request #14820 from gmarek/playground
Auto commit by PR queue bot
2015-10-02 07:37:45 -07:00
k8s-merge-robot b42942c8f4 Merge pull request #14660 from mesosphere/sttts-fix-broken-km-after-kubeproxy-refactoring
Auto commit by PR queue bot
2015-10-02 03:48:21 -07:00
Sergiusz Urbaniak 42c84954fd executor,scheduler: make launchGracePeriod configurable 2015-10-02 07:43:49 +02:00
k8s-merge-robot 719cf5617e Merge pull request #14731 from mesosphere/sttts-remove-redirfd
Auto commit by PR queue bot
2015-10-01 19:34:13 -07:00
k8s-merge-robot 4e63cafde1 Merge pull request #14748 from gmarek/nodecontroller
Auto commit by PR queue bot
2015-10-01 17:38:53 -07:00
gmarek fc79ce347e Allow usining FakeOOMAdjuster in Kubelet 2015-10-01 10:55:08 +02:00
Dr. Stefan Schimanski 39942952cd Fix hostname check logic in scheduler 2015-10-01 06:50:43 +02:00
Dr. Stefan Schimanski 74e57e85f1 Pass all changes of DeletionTimestamp and DeletionGracePeriodSeconds to kubelet 2015-10-01 06:50:07 +02:00
Brendan Burns 3474324d6a Merge pull request #14271 from mesosphere/sur-k8sm-441-flaky
MESOS: fix flaky TestPlugin_LifeCycle
2015-09-30 11:32:00 -07:00
Brendan Burns 2a6c7a1e79 Merge pull request #14715 from zhengguoyong/capital
set capital in some glog files
2015-09-30 11:28:05 -07:00
Sergiusz Urbaniak 56fc0f5900 scheduler: reenable TestPlugin_LifeCycle, increase timeouts 2015-09-30 16:14:13 +02:00
Dr. Stefan Schimanski 687e2d8c8e Update docs 2015-09-30 15:54:01 +02:00
gmarek a3723e2045 Separate deletion and termination evictors in NodeController, and fix rate_limited_queue.go 2015-09-30 09:42:01 +02:00
David Oppenheimer f86b119242 Merge pull request #14550 from mesosphere/sttts-fix-daemonset-tests
Fix bugs in daemonset controller and e2e tests
2015-09-30 00:37:46 -07:00
eulerzgy 71b96422f4 set capital in some files 2015-09-30 14:46:20 +08:00
Dr. Stefan Schimanski 67d5b8a258 Remove redirfd executable and support in the executor 2015-09-30 06:51:39 +02:00
Brendan Burns e827934d78 Merge pull request #12677 from andronat/kubectl_doc_cmd
A new command to read types' description from Swagger - kubectl explain
2015-09-29 19:35:37 -07:00
Brendan Burns fe9d8f50c1 Merge pull request #14593 from mesosphere/jdef-fix511-flaky-proc-test
MESOS: fix test flake in TestProcWithExceededActionQueueDepth
2015-09-29 19:29:05 -07:00
k8s-merge-robot b661cfd21e Merge pull request #14643 from liguangbo/change_Oom_to_OOM
Auto commit by PR queue bot
2015-09-29 18:54:22 -07:00
Prashanth Balasubramanian 99b0e051fc Kubectl printer 2015-09-29 18:51:24 -07:00
k8s-merge-robot c807bea089 Merge pull request #13857 from mesosphere/node-labels
Auto commit by PR queue bot
2015-09-28 22:10:51 -07:00
Dr. Stefan Schimanski 2d8b0049e1 Improve daemonset e2e test
- Don't mess with non-test node labels in daemonset e2e test

  Other e2e tests will expect labels on the nodes. The daemonset test should only
  add and remove its own labels.

- Refactor node updating in deamonset e2e test
2015-09-28 19:20:39 +02:00
Dr. Stefan Schimanski d5f725add7 Fix broken Mesos km due to too early proxy intitialization
This was introduced in 1c25c2cd99.
2015-09-28 18:54:28 +02:00
liguangbo 12299087da Change Oom to OOM 2015-09-28 18:18:04 +08:00
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
Anastasis Andronidis e8b9dde623 new kubectl explain command 2015-09-26 14:25:53 +03:00
Dr. Stefan Schimanski 112f80fa4a Simplify FitPredicate for NodeSelector
We can assume that n != nil holds, because otherwise offers are skipped.
2015-09-26 10:36:49 +02: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
Dr. Stefan Schimanski a496e8dd20 Expose HistoricalFIFO's pop with cancel channel 2015-09-26 09:46:55 +02:00
James DeFelice f75a4d914a clean up DATA RACE from Fatalf; avoid returning too early, actually wait for deeply nested actions to complete (flake) 2015-09-25 23:07:49 +00: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
Marek Grabowski 28585bc699 Merge pull request #13966 from mesosphere/mesos-graceful-termination
MESOS: Send graceful termination update from executor to kubelet
2015-09-23 09:51:29 +02:00
Mike Danese 2313c9ada0 move daemonset describe to experimental 2015-09-22 09:13:42 -07: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 c96c76b729 Merge pull request #13780 from smarterclayton/pod_logs
Auto commit by PR queue bot
2015-09-21 17:02:47 -07:00
Abhi Shah fec15efef9 Merge pull request #14317 from ArtfulCoder/netexec1.1
netexec shellCommand endpoint returns the error if shell command fail…
2015-09-21 16:47:35 -07:00
Abhishek Shah e40f1533f9 netexec shellCommand endpoint returns the error if shell command fails, instead of killing netexec 2015-09-21 16:32:51 -07: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
Clayton Coleman c2e90cd154 Support extended pod logging options
Increase the supported controls on pod logging. Add validaiton to pod
log options. Ensure the Kubelet is using a consistent, structured way to
process pod log arguments.

Add ?sinceSeconds=<durationInSeconds>, &sinceTime=<RFC3339>, ?timestamps=<bool>,
?tailLines=<number>, and ?limitBytes=<number>
2015-09-21 15:39:32 -04: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 b342591032 Merge pull request #13604 from JanetKuo/kubectl-edit
Auto commit by PR queue bot
2015-09-17 03:00:33 -07: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
Mike Danese 77a06cbf05 Merge pull request #13183 from mikedanese/daemon_kubectl
Add daemonset support to kubectl
2015-09-16 19:02:36 -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
Abhi Shah c2ffe68d0f Merge pull request #13982 from ArtfulCoder/netexec
Created netexec docker image
2015-09-16 10:00:37 -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
Janet Kuo 5a608446ba pull "kubectl edit" from openshift upstream 2015-09-15 19:16:23 -07:00
Abhishek Shah 65fbf5a5fb Created netexec docker image 2015-09-15 19:05:03 -07:00
Mike Danese 54b0faf39a rebase onto head 2015-09-15 18:13:28 -07: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
Jeff Lowdermilk f00e0b4b18 Merge pull request #13971 from mesosphere/limits
MESOS: reduce log verbosity for pods w/o limits
2015-09-15 17:45:52 -07:00
Jeff Lowdermilk b2c74a7297 Merge pull request #13254 from soltysh/job_controller_kubectl
Job resource - kubectl part
2015-09-15 17:45:14 -07:00
Jeff Lowdermilk ebc0b02b7d Merge pull request #13613 from eparis/rework-doc-generation
Rework automatic doc generation
2015-09-15 17:35:47 -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
Maciej Szulik 1b46bc010a Job clients, printer and describer 2015-09-15 13:54:51 +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
k8s-merge-robot 96df310729 Merge pull request #13783 from feihujiang/changeExposePortOperationToNoRequired
Auto commit by PR queue bot
2015-09-12 18:54:34 -07:00
Mike Danese 214f740f03 Merge pull request #13182 from mikedanese/daemon_manager
Add daemon controller
2015-09-11 19:12:21 -07:00