Commit Graph

28791 Commits

Author SHA1 Message Date
Slava Semushin
e83200d322 printLabelsMultilineWithIndent: add more customizable method. 2016-04-28 18:37:41 +02:00
Slava Semushin
72b4b54f28 kubectl describe: show multiple labels/annotations on multiple lines.
When there is more than one label/annotation, it's more readable to see
them on the different lines.
2016-04-28 18:37:41 +02:00
Clayton Coleman
931f352fdf
Rename apps/v1alpha1/defaulting.go to be consistent 2016-04-28 12:20:17 -04:00
Clayton Coleman
3e36dd62c6
Move defaulter functions to public methods with a convention
Preparing to generate direct defaulter access.
2016-04-28 12:20:13 -04:00
Jordan Liggitt
1e5815872e Validate deletion timestamp doesn't change on update 2016-04-28 11:50:48 -04:00
k8s-merge-robot
7a725418af Merge pull request #24622 from derekwaynecarr/pod_qos_util
Automatic merge from submit-queue

Add utility for determining qos of a pod

@vishh - per slack chat.
2016-04-28 07:26:50 -07:00
k8s-merge-robot
8179a0d30e Merge pull request #24616 from gmarek/jenkins
Automatic merge from submit-queue

Add kubemark-100 for testing out new performance measurements

cc @spxtr
2016-04-28 06:49:48 -07:00
k8s-merge-robot
97f1f5993e Merge pull request #24231 from mikebrow/design-docs-80col-updates
Automatic merge from submit-queue

Cleans up line wrap at 80 cols and some minor editing issues 

Address line wrap issue #1488.  Also cleans up other minor editing issues in the docs/design/* tree such as spelling errors. 

Signed-off-by: mikebrow <brownwm@us.ibm.com>
2016-04-28 06:49:46 -07:00
Rodolfo Carvalho
9576f71b9a Unify termination signal handling across platforms
- All supported platforms can handle the same set of signals we're
  interested in, thus we don't need build contraints to use a set of
  signals on Linux, while restricting ourselves to only SIGINT on Darwin
  and Windows.
- According to the documentation of os/signal, similar to SIGINT and
  SIGTERM, SIGHUP causes the program to exit, therefore add it to the
  list of handled signals.

Signed-off-by: Rodolfo Carvalho <rcarvalh@redhat.com>
2016-04-28 15:35:50 +02:00
k8s-merge-robot
2347d0f047 Merge pull request #24601 from deads2k/qualify-admission-attributes
Automatic merge from submit-queue

fully qualify admission resources and kinds

Fully qualifies the `Kind` and `Resource` fields for admission attributes.  The information was getting filtered at the `RESTHandler` before.

@derekwaynecarr
2016-04-28 05:12:28 -07:00
Lukasz Zajaczkowski
5f929d2a4c Replace heat client to openstack to avoid warnings 2016-04-28 14:06:30 +02:00
Elson O Rodriguez
c5ca66b2e1 Changing openstack to openstack-heat in get-kube.sh 2016-04-28 14:06:30 +02:00
Elson O Rodriguez
7b3b24c4f5 Triages #7 for OpenStack provider, still needs work.
Fixed the order of fields for basic_auth.

This provider still needs to leverage common.sh for generating proper credentials though.

Also documented a pattern for how to get the SWIFT_SERVER_URL automatically
2016-04-28 14:06:30 +02:00
Elson O Rodriguez
9226cf7460 Undoing regression of #23311 2016-04-28 14:06:30 +02:00
Elson O Rodriguez
545b230851 Adding socat package for Redhat systems in Salt 2016-04-28 14:06:30 +02:00
Elson O Rodriguez
001678991b Removing an invalid reference to cadvisor from salt.
It looks like this was left over from https://github.com/kubernetes/kubernetes/pull/23316
2016-04-28 14:06:30 +02:00
OHTAKE Tomohiro
5ea2940cfe Rename the provider to openstack-heat
There might be several methods to deploy a Kubernetes cluster on OpenStack.
It is better to name the provider more specific.
2016-04-28 14:06:30 +02:00
OHTAKE Tomohiro
23bcbbfaca Add braces around environment variable names
Parameter names of Heat str_replace remain unchanged
2016-04-28 14:06:29 +02:00
OHTAKE Tomohiro
7f37ab5034 Remove unused code 2016-04-28 14:06:29 +02:00
Lukasz Zajaczkowski
a4e6e7fa47 Add configuration for e2e tests 2016-04-28 14:06:29 +02:00
Elson O Rodriguez
35bbc186aa Increasing default node size for kube-up Openstack provider.
The default pod sizes are too small for some Java apps. Also the logging/monitoring pods were taking up too many resources.
2016-04-28 14:06:29 +02:00
Elson O Rodriguez
d28fd393cf Enabled Addons for Openstack kube-up provider.
Hard-coded the enabling of the common addons:

- logging
- kube-dashboard
- monitoring

Will make it configureable in a subsequent PR.
Also need to enable configuration of basic_auth.csv
2016-04-28 14:06:29 +02:00
Elson O Rodriguez
4773808767 Improved user experience for users of OpenStack provider behind a proxy. 2016-04-28 14:06:29 +02:00
Elson O Rodriguez
8315734bab Adding openstack example to get-kube.sh 2016-04-28 14:06:29 +02:00
Elson O Rodriguez
707ef2ce76 Adding missing variable defaults for OpenStack provider. 2016-04-28 14:06:29 +02:00
Elson O Rodriguez
2ffc86bc1d Adding automatic OS image download for Openstack provider.
This makes it so that we download the OS image automatically.

Also contains other usability improvements:
- kubectl context created with heat stack name
- Bumped default minions to 3
2016-04-28 14:06:29 +02:00
Elson O Rodriguez
5ae161e086 Adding cloudprovider support for Openstack kube-up provider.
Making the assumption that the person running kube-up has their
Openstack environment setup, those same variables are being passed
into heat, and then into openstack.conf.

The salt codebase was modified to add openstack as well.
2016-04-28 14:06:29 +02:00
Elson O Rodriguez
21627f5b7e Made it so that existing Openstack environment variables are used.
If someone has an openrc as part of their profile, this will make kube-up work automatically.

The only things that have to be modified are in config-default.sh, either by editing the file or setting environment variables.
2016-04-28 14:06:29 +02:00
Elson O Rodriguez
126b6c0950 Fixed proxy settings for minion, added comments. 2016-04-28 14:06:29 +02:00
Elson O Rodriguez
b4333adeac Adding support for provisioning behind a Proxy.
This assumes you have your environement variables set correctly.

When ENABLE_PROXY is set to true, it takes the current proxy
settings and applies them to the heat configuration.

Also modified the defaults system in config-default.sh
2016-04-28 14:06:29 +02:00
OHTAKE Tomohiro
b5913ab43e Make shell script compatible with older bash 2016-04-28 14:06:29 +02:00
urcan
730b7ef097 certificate should be created for the virtual kubernetes ip 2016-04-28 14:06:29 +02:00
OHTAKE Tomohiro
249a5c9f0f Use host-gw flannel for better performance 2016-04-28 14:06:29 +02:00
OHTAKE Tomohiro
188b303dd0 Execute salt-call twice 2016-04-28 14:06:29 +02:00
Lukasz Zajaczkowski
840aa9c186 OpenStack provider
- Create Kubernetes cluster on the top of OpenStack
2016-04-28 14:06:29 +02:00
OHTAKE Tomohiro
c7b447b9fc Add Heat template to create a Kubernetes stack on OpenStack 2016-04-28 14:06:29 +02:00
k8s-merge-robot
537dedf684 Merge pull request #24796 from johscheuer/fix-vagrant
Automatic merge from submit-queue

Update Docker version after cockpit installation

Fixes https://github.com/kubernetes/kubernetes/issues/24530
The vagrant setup didn't worked for me because `cockpit cockpit-kubernetes` brings their own Docker version (1.7) which doesn't work and the master components doesn't come up. More information about this bug are in my [issue](https://github.com/kubernetes/kubernetes/issues/24530).

My test system:

```bash
$ uname -a                        
Darwin MyMacBook.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64

$ vagrant --version                                                                                                                                                             
Vagrant 1.8.1

$ VBoxManage --version                                                                                                                                                          
5.0.16r105871
```
2016-04-28 04:38:47 -07:00
k8s-merge-robot
410975ab82 Merge pull request #22627 from mdshuai/udpate-configmap-doc
Automatic merge from submit-queue

Update configmap design doc

1. Update ConfigMapSelector -> ConfigMapKeySelector
2. Update apiVersion to v1
3. Fix error validating data: expected type array, for field spec.containers[0].command, got string; if you choose to ignore these errors, turn validation off with --validate=false
2016-04-28 04:38:45 -07:00
mqliang
3bcd5b1648 fix PrepareForUpdate bug for PV and PVC 2016-04-28 19:13:02 +08:00
k8s-merge-robot
a4e16319fd Merge pull request #24329 from liangchenye/refact
Automatic merge from submit-queue

refactor conformance test

@Random-Liu  Rebase the testing code.
 
Signed-off-by: liang chenye <liangchenye@huawei.com>
2016-04-28 03:53:59 -07:00
k8s-merge-robot
00308f7a9f Merge pull request #24598 from wojtek-t/improve_scheduler_predicates
Automatic merge from submit-queue

Store node information in NodeInfo

This is significantly improving scheduler throughput.

On 1000-node cluster:
- empty cluster: ~70pods/s
- full cluster: ~45pods/s
Drop in throughput is mostly related to priority functions, which I will be looking into next (I already have some PR #24095, but we need for more things before).

This is roughly ~40% increase.
However, we still need better understanding of predicate function, because in my opinion it should be even faster as it is now. I'm going to look into it next week.

@gmarek @hongchaodeng @xiang90
2016-04-28 02:17:59 -07:00
Michail Kargakis
29ff69fd83 kubectl: avoid panic with nil gvk
The decoder will return a nil gvk in case it errors out and getting
the version out of that gvk naturally will panic. Bail out as soon
as we can check that the error is non-nil. kubectl edit was the primary
victim.
2016-04-28 11:14:15 +02:00
k8s-merge-robot
d0b887e4e0 Merge pull request #24595 from zhouhaibing089/httpserverclose
Automatic merge from submit-queue

Uncomment the code that caused by #19254

Fix https://github.com/kubernetes/kubernetes/issues/24546.

@lavalamp
2016-04-28 01:41:16 -07:00
liang chenye
aa3bf1faac refactor e2e_node conformance test
Signed-off-by: liang chenye <liangchenye@huawei.com>
2016-04-28 16:20:14 +08:00
k8s-merge-robot
04b70bc6c7 Merge pull request #24376 from resouer/fix-cache
Automatic merge from submit-queue

Do not update cache with so much effort

Fixes: #24298
1. Remove automatic update
2. Every time we check if we can get valid value from cache, if not, get the value directly from api

cc @Random-Liu
2016-04-28 01:00:33 -07:00
Wojciech Tyczynski
3175d18b14 Support Close() in streaming decoder 2016-04-28 09:46:33 +02:00
k8s-merge-robot
ae5065a2c2 Merge pull request #24365 from janetkuo/remove-t-for-tty
Automatic merge from submit-queue

Add flag -t as shorthand for --tty

`-t` was deprecated in #12813 (Aug. 2015, about 6+ months ago). 

Now remove `--template`'s shorthand `-t` and create a shorthand `-t` for `--tty` in `kubectl run`. 

@kubernetes/kubectl
2016-04-28 00:23:11 -07:00
k8s-merge-robot
8201f0bb6c Merge pull request #24665 from smarterclayton/protodocs
Automatic merge from submit-queue

Add protobuf documentation

First commit is in another PR, @wojtek-t review
2016-04-27 23:46:27 -07:00
k8s-merge-robot
19408e5575 Merge pull request #24893 from andyzheng0831/gci
Automatic merge from submit-queue

Add support for running clusters on GCI

Google Container-VM Image (GCI) is the next revision of Container-VM. See documentation at https://cloud.google.com/compute/docs/containers/vm-image/. This change adds support for starting a Kubernetes cluster using GCI.

With this change, users can start a kubernetes cluster using the latest kubelet and kubectl release binary built in the GCI image by running:

	$ KUBE_OS_DISTRIBUTION="gci" cluster/kube-up.sh

Or run a testing cluster on GCI by running:

	$ KUBE_OS_DISTRIBUTION="gci" go run hack/e2e.go -v --up

The commands above will choose the latest GCI image by default.
2016-04-27 23:46:26 -07:00
Paul Morie
b7089f81da Reduce LOC in daemon controller tests 2016-04-28 00:04:45 -04:00