Commit Graph

653 Commits (6afbaf6bf6ac8d1d71307819f21d56d7946c522c)

Author SHA1 Message Date
Wojciech Tyczynski 79125f460c Services using standard REST storage 2015-08-10 13:27:44 +02:00
Ed Costello 35a5eda585 Copy edits for typos 2015-08-09 14:18:06 -04:00
Veres Lajos 9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
Satnam Singh 991775e77b Merge pull request #10724 from eparis/convert-underscore-to-dash
Convert underscore to dash
2015-08-07 16:40:05 -07:00
Satnam Singh b071857c0f Merge pull request #10816 from feihujiang/kubectlDescribeAcceptFileNameParam
Kubectl describe command accepts a filename param
2015-08-07 15:23:57 -07:00
Satnam Singh 950ec96db0 Merge pull request #12182 from AnanyaKumar/qos-node
Add QoS support on node
2015-08-07 14:27:02 -07:00
Brendan Burns e42d6aa255 Add --restart support to kubectl run 2015-08-07 13:20:09 -07:00
Ananya Kumar 6ef3de1d5f Add QoS support on node 2015-08-07 11:18:16 -07:00
Dr. Stefan Schimanski c55e7bf731 Annotate endpoints in mesos endpoint controller with container ports
The EndpointPort struct only stores one port: the port which is used
to connect to the container from outside. In the case of the Mesos
endpoint controller this is the host port. The container port is not part
of the endpoint structure at all.

A number of e2e tests need the container port information to validate correct
endpoint creation. Therefore this patch annotates the Endpoint struct with a
number of annotations mapping "<HostIP>:<HostPort>" to "<ContainerPort>". In a
follow-up commit these annotations are used to validate endpoints in a Mesos
setup.
2015-08-07 20:13:19 +02:00
Eric Paris f9d4a0a34d Convert contrib/ from --flag_name= to --flag-name=
All binaries in kubenretes show `-` for help and seem to expect `-`. Although
`_` also works. The inconsistencies across the codebase using - and _
result in difficultly using things like grep to find things that need to
be changed.
2015-08-07 10:58:25 -04:00
Jan Safranek 9c7a1c7f96 Add Ceph RBD e2e test.
The test assumes that all nodes have Ceph client utilities installed.
Ceph RBD container is hand crafted to be really minimal. It creates a new RBD
on startup, which can take up to several minutes on busy machines.
2015-08-07 13:43:03 +02:00
Jan Safranek adba474ffa Add e2e iSCSI volume test.
The test container needs to run with --privileged, therefore it's disabled by
default.
2015-08-07 13:43:03 +02:00
Jerzy Szczepkowski 372508cfbb Merge pull request #12117 from davidwalter0/wip
change underscores to dashes to match the command line argument
2015-08-07 12:58:30 +02:00
feihujiang 90f4c79bb9 kubectl port-forward accept a pod without -p 2015-08-07 17:21:59 +08:00
feihjiang 2ca200f087 Kubectl describe command accepts a filename param 2015-08-07 16:28:51 +08:00
Jan Safranek ebcc558734 Revert "Use a service between e2e volume tests clients and servers."
iSCSI and RBD volumes don't work as Kubernetes services - these protocols
are broken by S-NAT created by kube-proxy - at least iSCSI exhanges real
IP address of the iSCSI target as part of the protocol.

This reverts commit 118004c166.
2015-08-07 10:24:29 +02:00
Tim Hockin 384bcbb21b Update serve_hostname
1) FROM busybox
2) Log source IP
3) bump to v1.2
2015-08-06 21:48:26 -07:00
Brendan Burns 9ac50b4980 Add interactive run that combines run and attach. 2015-08-06 20:20:14 -07:00
David Walter 792fc2269b change underscores to dashes to match the command line argument 2015-08-06 22:13:44 -05:00
Prashanth Balasubramanian efbeba58f2 Add a sharing clusters example 2015-08-06 18:02:01 -07: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
Dawn Chen 2abf5dfb1f Merge pull request #10498 from thockin/hostport-to-service
Fix leaking process in hostport proxy
2015-08-06 10:50:44 -07:00
Stef Walter f6da3fdbe1 kubectl: Add proxy --unix-socket=/file/path option
Proxies on a TCP port are accessible outside the current security
context (eg: uid). Add support for having the proxy listen on a
unix socket, which has permissions applied to it.

We make sure the socket starts its life only accessible by the
current user using Umask.

This is useful for applications like Cockpit and other tools which
want the help of kubectl to handle authentication, configuration and
transport security, but also want to not make that accessible to
all users on a multi-user system.
2015-08-06 11:56:47 +02: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
Prashanth Balasubramanian 461d1b7909 Add a script to help convert kubeconfig to a secret to share clusters. 2015-08-05 14:34:24 -07:00
Prashanth Balasubramanian 6c6b359099 Add multi cluster services documentation to loadbalancer README 2015-08-05 14:29:38 -07:00
Piotr Szczesniak 28b9ebed47 Merge pull request #12257 from socaa/dockerfile
Add docker file to Resource Consumer
2015-08-05 11:07:53 +02:00
Ewa Socala 140610c1bb Add docker file to Resource Consumer 2015-08-05 10:07:23 +02:00
Alex Mohr 159ba48932 Merge pull request #12238 from eparis/godeps
Auto commit by PR queue bot
2015-08-05 01:06:11 -07:00
Brendan Burns c5643c3c03 Fix submit queue when there are multiple LGTMs 2015-08-04 21:52:21 -07:00
Alex Mohr 0e8020f9bb Merge pull request #11779 from JanetKuo/add-kubectl-annotation
Auto commit by PR queue bot
2015-08-04 18:28:12 -07:00
Alex Mohr e528d2d948 Merge pull request #12198 from mesosphere/default-mem-and-cpu-limit
MESOS: Set the cpu+mem default limit in the SchedulerServer
2015-08-04 17:42:51 -07:00
Eric Paris a29789d60e Switch from to code.google.com/p/go-uuid/uuid to github.com/pborman/uuid 2015-08-04 20:13:07 -04:00
Alex Mohr 8d31a576a0 Merge pull request #12076 from socaa/skeleton
Auto commit by PR queue bot
2015-08-04 16:59:34 -07:00
Alex Mohr e17aafa7dd Merge pull request #11679 from bprashanth/haproxy
Auto commit by PR queue bot
2015-08-04 15:35:44 -07:00
Dr. Stefan Schimanski 191f2def5f Add test to check that NewSchedulerServer sets resource defaults 2015-08-04 22:01:23 +02:00
Alex Mohr 4271f28548 Merge pull request #12185 from brendandburns/queue
Fix a mis-undersanding about the github API, add more tests
2015-08-04 09:54:51 -07:00
gmarek 2201e75666 NodeController small cleanup 2015-08-04 14:44:14 +02:00
Dr. Stefan Schimanski 3fced6f07b Set the cpu+mem default limit in the SchedulerServer 2015-08-04 12:15:17 +02:00
Ewa Socala 01798bae0c Added http API skeleton server.
Part of #11570
2015-08-04 11:51:28 +02:00
Prashanth Balasubramanian 81d91b1f05 Bare metal loadblancers 2015-08-03 21:35:24 -07:00
Brendan Burns f50f0b26f1 Fix a mis-undersanding about the github API, add more tests 2015-08-03 20:52:06 -07:00
Alex Mohr b280549930 Merge pull request #12180 from brendandburns/queue
Fix a small bug in contrib/submit-queue, add a unit test.
2015-08-03 18:00:26 -07:00
Alex Mohr 7ac6c50b9d Merge pull request #12094 from brendandburns/kubectl
Auto commit by PR queue bot
2015-08-03 17:09:06 -07:00
Brendan Burns 0287d6eb32 Fix a small bug, add a unit test. 2015-08-03 17:01:43 -07:00
Alex Mohr 6d16c18d6f Merge pull request #12078 from gmarek/move_nodecontroller
Auto commit by PR queue bot
2015-08-03 16:49:57 -07:00
Janet Kuo 7e63213478 Implement kubectl annotation update command. Refactor kubectl annotate to decouple command framework from business logic. 2015-08-03 14:35:56 -07:00
Brendan Burns c2f3cd941f Add LGTM timestamp checking. 2015-08-03 13:53:35 -07:00
gmarek d27ad5b714 Controller codebase refactoring 2015-08-03 17:06:25 +02:00
Muhammed Uluyol 4b334a90ba Add a simple diurnal controller.
The diurnal controller changes the number of replicas of a replication controller based on a list of times and replica counts. It is meant to be run under a replication controller.
2015-07-31 17:27:09 -07:00
Mike Danese cf4cb1a6a3 Merge pull request #10474 from kargakis/scale-multiple-controllers
Enable scaling multiple controllers
2015-07-31 14:51:43 -07:00
Mike Danese 6be29336ee Merge pull request #12096 from mesosphere/km-minion
Add Mesos hyperkube minion server (fixed quick-release)
2015-07-31 13:15:08 -07:00
Mike Danese a23ee556ad Merge pull request #11999 from brendandburns/attach2
Add support for attach to kubectl
2015-07-31 12:51:08 -07: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
Brendan Burns c9bc1456ff Add session affinity flags to kubectl expose 2015-07-31 10:34:52 -07:00
Mike Danese 464e208f95 Merge pull request #11928 from mesosphere/km-minion
Add Mesos hyperkube minion server
2015-07-31 10:25:21 -07:00
Dr. Stefan Schimanski c4d6f75e35 Disable private mount ns for now in Mesos hyperkube minion server
Until Docker learns parent mount namespace customization the container will
always have the root ns as a parent, not the one of the km minion. Hence, the
kubelet (which lives in the km minion mount ns) will create mounts that cannot
be seen by the Docker containers.

This feature can be enabled again when Docker learns to explicitly set the
parent mount ns, in analogy to the parent cgroup.
2015-07-31 12:28:41 +02: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
kargakis 0e796ca09a Enable scaling multiple controllers 2015-07-31 10:24:59 +02:00
Dr. Stefan Schimanski f59b5f503b Use BindingHostKey annotation to detect scheduled pods in k8sm-scheduler
Before NodeName in the pod spec was used. Hence, pods with a fixed, pre-set
NodeName were never scheduled by the k8sm-scheduler, leading e.g. to a failing
e2e intra-pod test.

Fixes mesosphere/kubernetes-mesos#388
2015-07-31 10:22:20 +02:00
Mike Danese 51a7a38f67 Merge pull request #12020 from wojtek-t/move_to_storage
Move storage-related code to pkg/storage
2015-07-30 16:23:03 -07:00
Mike Danese ed9975b031 Merge pull request #11230 from mesosphere/resource-accounting
Implement resource accounting for pods with the Mesos scheduler
2015-07-30 14:36:41 -07:00
Brendan Burns 97cb1cd071 Add support for attach to kubectl 2015-07-30 12:56:18 -07:00
Dr. Stefan Schimanski f3f617d9db Update documentation about resource accounting 2015-07-30 21:18:15 +02:00
Dr. Stefan Schimanski a2fa41b73f Implement resource accounting for pods with the Mesos scheduler
This patch

- set limits (0.25 cpu, 64 MB) on containers which are not limited in pod spec
  (these are also passed to the kubelet such that it uses them for the docker
  run limits)
- sums up the container resource limits for cpu and memory inside a pod,
- compares the sums to the offered resources
- puts the sums into the Mesos TaskInfo such that Mesos does the accounting
  for the pod.
- parses the static pod spec and adds up the resources
- sets the executor resources to 0.25 cpu, 64 MB plus the static pod resources
- sets the cgroups in the kubelet for system containers, resource containers
  and docker to the one of the executor that Mesos assigned
- adds scheduler parameters --default-container-cpu-limit and
  --default-container-mem-limit.

The containers themselves are resource limited the Docker resource limit which
the kubelet applies when launching them.

Fixes mesosphere/kubernetes-mesos#68 and mesosphere/kubernetes-mesos#304
2015-07-30 21:18:04 +02:00
Mike Danese 33278e7910 Merge pull request #11844 from brendandburns/queue
Add an initial (simple) implementation of a submit queue.
2015-07-30 11:36:28 -07:00
Wojciech Tyczynski 3cbbe72f9f Move etcd storage to pkg/storage/etcd 2015-07-30 15:42:06 +02:00
Mike Danese e9a56d9d6b Merge pull request #11939 from derekwaynecarr/unit_file_updates
Update kube-apiserver unit files for systemd
2015-07-29 17:43:44 -07:00
Brendan Burns 9bec48298b Add an initial (simple) implementation of a submit queue. 2015-07-29 15:39:10 -07:00
Paul Morie 5394aa979f Make emptyDir volumes work for non-root UIDs 2015-07-29 18:36:51 -04:00
Mike Danese bed0e1e1b0 Merge pull request #11915 from AnanyaKumar/controller-refactor
Refactor package controller
2015-07-29 11:20:14 -07:00
Mike Danese e864569f80 Merge pull request #11003 from jayunit100/prom-push
[contrib + e2e] prometheus: add pushgateway functionality to prometheus allinone deployment along w/ runRC Gauge reporting.
2015-07-29 11:12:02 -07:00
Ananya Kumar 47dd0bc6f9 Refactor package controller 2015-07-29 09:54:35 -07:00
Mike Danese 60ac834563 Merge pull request #10652 from JanetKuo/kubectl-o-name
Add '-o name' to mutations
2015-07-29 09:46:10 -07:00
Brendan Burns 0c07b66226 Skip another flaky mesos test. 2015-07-28 15:18:21 -07:00
David Oppenheimer bfb6203627 Merge pull request #11940 from brendandburns/e2e2
Disable a couple of flaky tests.
2015-07-28 21:31:53 +02:00
Brendan Burns 660efc7583 Disable a couple of flaky tests. 2015-07-28 11:42:39 -07:00
derekwaynecarr e62c47db8c Update kube-apiserver unit files for systemd 2015-07-28 14:36:56 -04:00
jayunit100 739e79dd9f Modularized implementation of prompush json with e2e running pending push gateway gauges. 2015-07-28 09:29:57 -04:00
Janet Kuo 0e42d0699a Add '-o name' to mutations 2015-07-27 14:06:53 -07:00
Alex Robinson 60611c253e Add a resync period for services in the service controller.
This should ensure all load balancers get deleted even if a reordering of
watch events causes us to strand one after its service has been deleted,
because the sync will notice that the service controller's cache has a
service in it that no longer exists in the apiserver.

It could still leak in the case that the controller manager is killed
between when it leaks something and the sync runs, but this should
improve things.
2015-07-27 18:03:13 +00:00
Mike Danese 078ec7518b Merge pull request #11825 from aveshagarwal/ansible-fixes
Fixes ansible errors.
2015-07-24 18:51:00 -07:00
Avesh Agarwal 0d4851a4ef Ansible updates for Atomic. 2015-07-24 18:29:55 -04:00
Mike Danese 01349cdbfa Merge pull request #11786 from a-robinson/fluentd
Update fluentd-gcp images to include latest Dockerfile changes
2015-07-24 12:40:41 -07:00
Mike Danese de6d870569 Merge pull request #11741 from jsafrane/devel/service-test
Use a service between e2e volume tests clients and servers.
2015-07-24 11:21:28 -07:00
Mike Danese b51b4e740f Merge pull request #10639 from caseydavenport/master
Allow specification of a network plugins directory when starting kubelet
2015-07-24 11:09:11 -07:00
Mike Danese f0d7f70838 Merge pull request #11264 from eparis/total-ansible
Ansible updates
2015-07-24 10:39:34 -07:00
Mike Danese c70d8d4c59 Merge pull request #11108 from mesosphere/fix-10795
Fix races in mesos scheduler plugin test
2015-07-24 09:35:29 -07:00
Eric Paris 1253ca52cd Ansible: start to support debian 2015-07-24 09:58:31 -04:00
Eric Paris a25b34e1a4 Ansible: Vagrant: allow passing ansible tags to vagrant provision
Creating a cluster from scratch takes about 7 minutes. But if you just
rebuild the binaries and want to update those you don't want to have to
rerun the entire thing. There is an ansible tag 'binary-update' which
will do that. Now one can do
```
ANSIBLE_TAGS=binary-update vagrant provision
```
And it will push the new binaries.
2015-07-24 09:58:31 -04:00
Eric Paris 8ba4d85fa9 Ansible: Add kube-ui kube-addon support 2015-07-24 09:58:31 -04:00
Eric Paris 217f8eef95 Ansible: convert DNS from kube_config_dir to kube_addons_dir 2015-07-24 09:58:31 -04:00
Eric Paris 9aed89f816 Ansible: fast update of binaries
If you are using locally build binaries as a developer you likely will
want to just push those binaries to an existing cluster, not rerun the
entire playbook.  Add a tag to do just that.
2015-07-24 09:58:31 -04:00
Jeff Bean 0653156e1e Ansible: Updating README 2015-07-24 09:58:31 -04:00
Jeff Bean 29980851f7 Ansible: Adding variable for kubernetes apiserver port 2015-07-24 09:58:31 -04:00
Jeff Bean 90b1318168 Ansible: Adding variable for kubernetes addon dir 2015-07-24 09:58:30 -04:00