Commit Graph

3755 Commits (70a71990d44713a6bb06f4f0e920f845c01873a8)

Author SHA1 Message Date
k8s-merge-robot b79a1bb689 Merge pull request #25410 from gmarek/pipe
Automatic merge from submit-queue

Pipe variables from kubemark config to master binaries
2016-05-11 03:45:31 -07:00
gmarek 4a5ec11ce6 Pipe variables from kubemark config to master binaries 2016-05-11 11:22:03 +02:00
k8s-merge-robot 17c3f19c64 Merge pull request #21737 from FujitsuEnablingSoftwareTechnologyGmbH/openstack-provider
Automatic merge from submit-queue

Openstack provider

Our pull request delivers solution to create Kubernetes cluster on the top of OpenStack. Heat OpenStack Orchestration engine describes the infrastructure for Kubernetes cluster. CentoOS images are used for Kubernetes host machines.

We tested our solution with DevStack and Citycloud provider.

We believe that our solution will fill the gap that which is on the market.

<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/21737)
<!-- Reviewable:end -->
2016-05-10 23:56:47 -07:00
Daniel Wang 09a9ea68c2 Add --image-type option to GKE kube-up 2016-05-10 21:27:31 -07:00
Fabio Yeon 05cfd9c584 Merge pull request #24852 from johscheuer/fix-hyperkube-makefile
OS X: Fix hyperkube build by adding empty string to sed invocation
2016-05-10 19:40:52 -07:00
Fabio Yeon 4dcc4bbcd8 Merge pull request #23362 from miguelfrde/configure-base-vpc-cidr
AWS kube-up: Allow VPC CIDR to be specified (experimental)
2016-05-10 19:37:33 -07:00
Fabio Yeon d4de319ea8 Merge pull request #16000 from cilium-team/change-docker-storage-driver
Changed docker storage driver to overlayfs
2016-05-10 19:36:49 -07:00
Prashanth Balasubramanian 0a1c15c64a Bump up glbc version to 0.6.2 2016-05-10 17:07:45 -07:00
Zach Loafman e42f201189 GKE provider: Add cluster-ipv4-cidr and arbitrary flags 2016-05-10 16:00:34 -07:00
Fabio Yeon 58617a083c Merge pull request #25405 from justinsb/fix/23623
AWS kube-up: Increase timeout waiting for docker start
2016-05-10 15:50:37 -07:00
Tim Hockin 92da8e6f1c Make it possible to use kube-cross as non-root
The extra TMPDIR was not writable except as root.  This is not the only fix
needed for this goal, but is necessary.
2016-05-10 10:06:56 -07:00
Justin Santa Barbara cc4ac5459c AWS kube-up: Increase timeout waiting for docker start
Apparently our cluster start time increased, to the point where users
are reporting spurious timeouts (#23623) and users are reporting that
increasing the timeout fixes the issue (thanks @paralin for the
suggestion and @jlfields for confirming).

Fix #23623
2016-05-10 09:11:33 -04:00
Tolik Litovsky a5bce254de Add nfs support for vagrant nodes.
This will allow to use NFS volumes on those nodes
2016-05-10 15:17:35 +03:00
gmarek 5dc3d50aba Change default clusterCIDRs to /14 2016-05-10 12:44:49 +02:00
k8s-merge-robot 35e92ad00c Merge pull request #25378 from andyzheng0831/kube-addon
Automatic merge from submit-queue

GCI/Trusty: Fix the running of kube-addon-manager

This PR fixes the issue that kube-addon-master (added in #23600) is not started. Without this fix, no kube-system pods can be running correctly. As a result, the GCI-based Jenkins testing k8s head has been down for a couple of days. The root cause is that we stopped to use namespace.yaml, but configure-helper.sh still tries to copy it. This PR also gets rid of /var/cache/kubernetes-install/kube_env.yaml, as it is not needed anymore after #24108.

@mikedanese @roberthbailey @dchen1107 please review it. If possible please mark it as P1, as it blocks GCI-based Jenkins tests.

cc/ @kubernetes/goog-image @fabioy FYI
2016-05-10 00:01:08 -07:00
k8s-merge-robot 35aff74f9c Merge pull request #23121 from deromka/master
Automatic merge from submit-queue

Added vsphere support for vagrant

Since the native vsphere support (using govc library) requires admin permissions on ESX/vCenter, not everyone can have such permissions. So I'm adding a vsphere support using vagrant using vagrant-vsphere plugin
2016-05-09 23:18:19 -07:00
Lukasz Zajaczkowski 892c2abaf5 Name adjustment to OpenStack-Heat in cluster/get-kube.sh 2016-05-10 07:25:29 +02:00
Andy Zheng 74fd5d35f0 GCI/Trusty: Support the new var in glbc.yaml 2016-05-09 17:40:59 -07:00
Andy Zheng d8314b1b9b GCI/Trusty: Fix the running of kube-addon-manager 2016-05-09 16:00:33 -07:00
CJ Cullen de71a2a76e Add configuration for GCP webhook authorization. 2016-05-09 09:17:40 -07:00
k8s-merge-robot fa95788e56 Merge pull request #24242 from thockin/godep_vendor_dir
Automatic merge from submit-queue

Move godeps to vendor/

This is a first-step towards glide support, maybe we don't want or need to take this, but it was easy to try.

This fails to compile, not sure why:

```
# k8s.io/kubernetes/pkg/apis/extensions/v1beta1
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:2703: undefined: extensions.ClusterAutoscaler
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:2703: undefined: ClusterAutoscaler
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:2719: undefined: extensions.ClusterAutoscaler
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:2719: undefined: ClusterAutoscaler
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:2723: undefined: extensions.ClusterAutoscalerList
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:2723: undefined: ClusterAutoscalerList
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:3468: Convert_extensions_JobSpec_To_v1beta1_JobSpec redeclared in this block
	previous declaration at _output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion.go:328
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:3845: Convert_extensions_ScaleStatus_To_v1beta1_ScaleStatus redeclared in this block
	previous declaration at _output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion.go:98
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:4737: Convert_v1beta1_JobSpec_To_extensions_JobSpec redeclared in this block
	previous declaration at _output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion.go:380
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:5186: Convert_v1beta1_ScaleStatus_To_extensions_ScaleStatus redeclared in this block
	previous declaration at _output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion.go:120
_output/local/go/src/k8s.io/kubernetes/pkg/apis/extensions/v1beta1/conversion_generated.go:2723: too many errors
!!! Error in /home/thockin/tmp/godep-vendor/src/k8s.io/kubernetes/hack/lib/golang.sh:417
```
2016-05-08 22:20:09 -07:00
k8s-merge-robot 5dd087040b Merge pull request #24511 from pbx0/kubelet-symlink
Automatic merge from submit-queue

cluster/images/hyperkube: create symlink for each server

Add a kubelet symlink so that the hyperkube image can appear as a kubelet image. https://github.com/kubernetes/kubernetes/issues/24510
2016-05-08 21:31:23 -07:00
Tim Hockin cbf886c7f4 Convert everything to use vendor/ 2016-05-08 20:30:37 -07:00
k8s-merge-robot f46f35a9df Merge pull request #23600 from mikedanese/addon-manager
Automatic merge from submit-queue

run kube-addon-manager in a static pod

Depends on https://github.com/kubernetes/kubernetes/pull/23605 and https://github.com/kubernetes/kubernetes/pull/24108

Ref #23233
2016-05-08 11:30:44 -07:00
k8s-merge-robot 2b46c4b7e2 Merge pull request #24391 from bprashanth/ing_templated_controller
Automatic merge from submit-queue

Template the ingress controller 

We still need https://github.com/kubernetes/contrib/pull/791 to run the controller as a static pod
ref https://github.com/kubernetes/kubernetes/issues/23663
2016-05-06 20:04:51 -07:00
Jeff Grafton bc7922c374 Replace awkward bash pipelines with gcloud's --format='value()'
Also remove old `gcloud compute instance-groups managed get-operation`
code. This command doesn't even exist in gcloud anymore.
2016-05-06 15:49:57 -07:00
Robert Bailey 67b6911809 Merge pull request #24673 from thockin/e2e-24182-reties
Add retries to validate-cluster
2016-05-06 15:08:51 -07:00
Robert Bailey c11229f960 Merge pull request #24881 from vmware/vsphere-ui-fix
Fixed vSphere kube-up implementation to allow Kubernetes dashboard (UI) to work
2016-05-06 15:08:04 -07:00
Robert Bailey c9442ee47c Merge pull request #25114 from aaronlevy/hyperkube-pkg-upgrade
Upgrade installed packages when building hyperkube to improve the security profile
2016-05-06 15:03:52 -07:00
Robert Bailey 5f4f59e671 Merge pull request #24950 from andyzheng0831/apiserver
GCI/Trusty: Support ABAC authorization
2016-05-06 13:59:39 -07:00
Robert Bailey 8a4295778f Merge pull request #24896 from mikedanese/hyperkube-cni
add cni plugins to hyperkube image
2016-05-06 13:58:07 -07:00
Mike Danese 3e1c0b5951 run kube-addon-manager in a pod 2016-05-06 11:01:06 -07:00
Wojciech Tyczynski 247512d86a Fix proto configs 2016-05-06 10:25:59 +02:00
Alex Robinson 6cfaed1299 Don't surround node-tags list with square brackets
That's not how yaml list parsing works...
2016-05-05 22:05:50 +00:00
Francois Deppierraz 1769760db0 Automatically detect swift URL if not specified 2016-05-05 23:58:43 +02:00
Patrick Baxter e96e57c8f7 cluster/images/hyperkube: create symlink for each server 2016-05-05 21:36:18 +00:00
Mike Danese 4aba77c1f8 add cni plugins to hyperkube image 2016-05-05 14:24:14 -07:00
k8s-merge-robot 84573939ff Merge pull request #25105 from andyzheng0831/metadata
Automatic merge from submit-queue

GCI: Add two GCI specific metadata pairs

This PR adds two GCI specific metadata pairs when using GCI image.

(1) "gci-update-strategy": by default the GCI in-place updater is enabled. It means that when a new image is released, the instance on the old image will be upgraded to the new image. In this change, we turn it off;

(2) "gci-ensure-gke-docker": GCI is built with two versions of docker. When this metadata is set to "true", the version satisfying kubernetes qualification will be used. Setting this metadata prevents from using incorrect docker version.
2016-05-05 10:28:58 -07:00
David Osztertag 9e4bc8cee6 Merge COPY lines in etcd Dockerfile 2016-05-05 15:18:55 +02:00
k8s-merge-robot ca830803f2 Merge pull request #25187 from wojtek-t/configure_proto_for_test_clusters
Automatic merge from submit-queue

Configure proto for test clusters

ref #25132

@smarterclayton - FYI
2016-05-05 06:16:40 -07:00
David Osztertag 68af7dc141 Expose old and new etcd client and server ports 2016-05-05 14:31:06 +02:00
k8s-merge-robot c79c5864e7 Merge pull request #25051 from spxtr/fix-1.6.2
Automatic merge from submit-queue

Use v1.6.2-1 tag for build.

Is there any reason these don't use the VERSION file like everything else? cc @luxas @ixdy
2016-05-05 03:36:27 -07:00
k8s-merge-robot 0e2ecb7ac6 Merge pull request #24694 from vulpecula/local-ssd-configure-2
Automatic merge from submit-queue

Support local SSDs for GKE and GCE nodes.



```release-note
Support local SSDs for GKE and GCE nodes.
```
2016-05-05 02:24:34 -07:00
Wojciech Tyczynski 7ed573cf66 Enable configuring content type in tests 2016-05-05 08:46:21 +02:00
k8s-merge-robot 6f13b4e7ed Merge pull request #25175 from freehan/bumpcni
Automatic merge from submit-queue

bump cni version again

Need to bump again. I made a mistake on the last build.
2016-05-04 20:25:25 -07:00
Minhan Xia 174d327695 bump cni version again 2016-05-04 16:28:04 -07:00
Alex Robinson b75fa08aec GCE: Prefer preconfigured node tags for firewalls, if available 2016-05-04 22:49:06 +00:00
Jeff Grafton 6cd9dcba60 Use --format='value()' instead of --fields with gcloud 2016-05-04 12:32:13 -07:00
Wojciech Tyczynski 25164537ef ref 2016-05-04 16:53:59 +02:00
k8s-merge-robot 963aebd3e5 Merge pull request #25123 from jlewi/jessie
Automatic merge from submit-queue

Add an entry to the salt config to allow Debian jessie on GCE.

```release-note
Add an entry to the salt config to allow Debian jessie on GCE.

As with the existing Wheezy image on GCE, docker is expected
to already be installed in the image.
```


[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-04 04:22:39 -07:00
k8s-merge-robot dcc2a400d0 Merge pull request #25115 from freehan/bumpcni
Automatic merge from submit-queue

bump cni binary
2016-05-04 03:07:06 -07:00
Jeremy Lewi ccf4b381db Add an entry to the salt config to allow Debian jessie on GCE.
As with the existing Wheezy image on GCE, docker is expected
to already be installed in the image.
2016-05-03 22:17:38 -07:00
Minhan Xia 87c66c517d bump cni binary 2016-05-03 17:18:26 -07:00
Aaron Levy dd8c3588ef cluster/images/hyperkube: Upgrade installed packages 2016-05-03 17:17:03 -07:00
Andy Zheng 73ee508005 GCI: Add two GCI specific metadata pairs 2016-05-03 14:45:27 -07:00
Isaac Hollander McCreery be7209d4fc Mark kube-push.sh as broken 2016-05-03 10:53:33 -07:00
Joe Finney f128b30318 Use v1.6.2-1 tag for build. 2016-05-02 14:43:06 -07:00
Mike Danese 181e95c073 rever the vspeher change to skydns plugin 2016-05-01 14:56:57 -07:00
André Martins 0000a7084d Changed docker storage driver to overlayfs.
Signed-off-by: André Martins <aanm90@gmail.com>
2016-05-01 01:04:30 +01:00
k8s-merge-robot ee2a0694b6 Merge pull request #24872 from smarterclayton/propogate_int_types
Automatic merge from submit-queue

Convert internal types to use exact precision integers

This makes conversion more suitable for future optimizations, and we need to stop pretending for some of our internal types that the width of the int doesn't matter.

@wojtek-t
2016-04-29 18:50:37 -07:00
k8s-merge-robot f8196d9048 Merge pull request #24834 from ixdy/node-names
Automatic merge from submit-queue

Fix detect-node-names to not error out if there are no nodes

Fixes #21564.

Teardown was not working correctly in rare cases because `detect-node-names` was failing before any of the actual cleanup was run. I'm pretty sure the issue was that there was an instance group, but no instances in the instance group, so we bailed out when we tried to expand the bash array.

This PR adds a guard so we don't bail if the array is empty.

cc @jlowdermilk @spxtr
2016-04-29 16:37:41 -07:00
Clayton Coleman fdb110c859
Fix the rest of the code 2016-04-29 17:12:10 -04:00
Andy Zheng 967fd495e0 GCI: Update the command to get the image 2016-04-29 09:15:27 -07:00
Lukasz Zajaczkowski 53eef9e412 Merge pull request #11 from elsonrodriguez/openstack-provider-hostname
Adding workaround for hostname swapping issue in OpenStack kube-up provider
2016-04-29 12:41:38 +02:00
k8s-merge-robot ad67363c12 Merge pull request #24362 from ArtfulCoder/hostname-field
Automatic merge from submit-queue

Promote Pod Hostname & Subdomain to fields (were annotations)

Deprecating the podHostName, subdomain and PodHostnames annotations and created corresponding new fields for them on PodSpec and Endpoints types.

Annotation doc: #22564
Annotation code: #20688
2016-04-29 01:06:45 -07:00
Lukasz Zajaczkowski 5b84667dd6 Merge pull request #10 from ctrlaltdel/openstack-provider-ssl-fix
Expose /etc/pki from host to kube-apiserver and controller-manager
2016-04-29 09:22:47 +02:00
Lukasz Zajaczkowski 895c543c8c Add missing single speech mark after rebase 2016-04-29 08:16:23 +02:00
Elson O Rodriguez 9004dc383b Adding workaround for hostname swapping issue in OpenStack kube-up provider.
On reboot, minions hostname would change, causing issue querying Openstack API and registering with kube-apiserver.

This is due to a bug in cloud-init which has been patched but apparently not widely distributed.

Should be harmless on unaffected systems.
https://bugs.launchpad.net/cloud-init/+bug/1246485
http://blog.oddbit.com/2014/12/10/cloudinit-and-the-case-of-the-changing-hostname/
2016-04-28 22:36:00 -07:00
Francois Deppierraz dd786794e9 Expose /etc/pki from host to kube-apiserver and controller-manager
CentOS 7 Core nodes running on OpenStack with an SSL-enabled API
endpoint results in the following error without this patch:

F0425 19:00:58.124520       5 server.go:100] Cloud provider could not be initialized: could not init cloud provider "openstack": Post https://my.openstack.cloud:5000/v2.0/tokens: x509: failed to load system roots and no roots provided

The root cause is that the ca-bundle.crt file is actually a symlink
which points to a directory which wasn't previously exposed.

[root@kubernetesstack-master ~]# ls -l /etc/ssl/certs/ca-bundle.crt
lrwxrwxrwx. 1 root root 49 18 nov 11:02 /etc/ssl/certs/ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
[root@kubernetesstack-master ~]#
2016-04-28 23:07:24 +02:00
Andy Zheng 27c9ee3646 GCI/Trusty: Support ABAC authorization 2016-04-28 14:04:28 -07:00
Abhishek Shah 8a3ed48808 Added Hostname and Subdomain field to Pod.Spec 2016-04-28 10:56:56 -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 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
k8s-merge-robot 7a09fbcf97 Merge pull request #24210 from cjcullen/abacAuth
Automatic merge from submit-queue

Switch to ABAC authorization from AllowAll

Switch from AllowAll to ABAC. All existing identities (that are created by deployment scripts) are given full permissions through ABAC. Manually created identities will need policies added to the `policy.jsonl` file on the master.
2016-04-27 16:43:08 -07:00
k8s-merge-robot 9fd05474c2 Merge pull request #24108 from mikedanese/kube-addon-cleanup
Automatic merge from submit-queue

don't source the kube-env in addon-manager

This was added in 2feb658ed7 which became unused after #23603 but wasn't removed
2016-04-27 16:07:54 -07:00
Andy Zheng 93929c3853 Add support for running clusters on GCI 2016-04-27 15:24:21 -07:00
Alain Roy 10545d72b3 Fixes to allow Kubernetes dashboard (UI) to work
The UI didn't work with vSphere kube-up implementation. This fixes
that by making the following changes:

* Configure the apiserver with admission controls, especially
  ServiceAccount. This will provide the token to the dashboard pod
  that it needs to talk to the apiserver. This will also improve other
  pods that require service accounts.
* Add routes to the master so it can communicate with the pods, so
  hitting the https://MASTER/ui URL will allow it to contact the
  pods.
* Add an extra subject for the cluster IP to the apiserver, so when
  the dashboard communicates with the apiserver, the certificate
  matches the IP address it's using.
2016-04-27 13:30:21 -07:00
CJ Cullen 3253739505 Use ABAC authz instead of AllowAll. 2016-04-27 11:38:15 -07:00
k8s-merge-robot 4d5f6872bb Merge pull request #24609 from andyzheng0831/debug
Automatic merge from submit-queue

Trusty: Add debug supports for docker and kubelet

This PR adds debug support in two aspects: (1) For a test cluster, docker command will have "--debug" flag. Recently we noticed that this is very helpful in debug e2e test failures; (2) The kubelet command line will be put in /etc/default/kubelet. If a developer wants to test kubelet flags without recreating a cluster, she/he only needs to revise this file and then run "initctl restart kubelet". In addition, this PR fixes a couple of small things like comments and alignment.

Test result:
(1) Manually verified changing /etc/default/kubelet and run "initctl restart kubelet";
(2) Verified docker command line flag "--debug";
(3) e2e on pure trusty cluster and hybrid cluster all passed.

@roberthbailey @dchen1107 @zmerlynn please review it.

cc/ @yujuhong @fabioy @wonderfly FYI.
2016-04-27 10:26:01 -07:00
k8s-merge-robot fa3c49b86c Merge pull request #24337 from pditommaso/patch-1
Automatic merge from submit-queue

Allow KUBE_ROOT to be defined externally
2016-04-27 01:02:05 -07:00
k8s-merge-robot 3fa84134cd Merge pull request #24124 from vmware/photon-controller
Automatic merge from submit-queue

Initial kube-up support for VMware's Photon Controller

This is for: https://github.com/kubernetes/kubernetes/issues/24121

Photon Controller is an open-source cloud management platform. More
information is available at:
http://vmware.github.io/photon-controller/

This commit provides initial support for Photon Controller. The
following features are tested and working:
- kube-up and kube-down
- Basic pod and service management
- Networking within the Kubernetes cluster
- UI and DNS addons

It has been tested with a Kubernetes cluster of up to 10
nodes. Further work on scaling is planned for the near future.

Internally we have implemented continuous integration testing and will
run it multiple times per day against the Kubernetes master branch
once this is integrated so we can quickly react to problems.

A few things have not yet been implemented, but are planned:
- Support for kube-push
- Support for test-build-release, test-setup, test-teardown

Assuming this is accepted for inclusion, we will write documentation
for the kubernetes.io site.

We have included a script to help users configure Photon Controller
for use with Kubernetes. While not required, it will help some
users get started more quickly. It will be documented.

We are aware of the kube-deploy efforts and will track them and
support them as appropriate.
2016-04-27 01:02:03 -07:00
Johannes Scheuermann f23380fe84 Add empty string to sed 2016-04-27 08:54:13 +02:00
Jeff Grafton 5487a3f8f6 Fix detect-node-names to not error out if there are no nodes 2016-04-26 17:48:25 -07:00
k8s-merge-robot 773bb777f4 Merge pull request #24749 from andyzheng0831/enhance
Automatic merge from submit-queue

Trusty: Add retry in curl commands

This fix is for improving robustness in fetch critical metadata files when the metadata server is temporarily unreachable.

@roberthbailey @zmerlynn @dchen1107 please review it.

cc/ @fabioy @wonderfly FYI.
2016-04-26 13:00:21 -07:00
Johannes Scheuermann e13a2c1d5b Update Docker version after cockpit installation 2016-04-26 15:30:54 +02:00
k8s-merge-robot 1cd93cb1d6 Merge pull request #23250 from huggsboson/patch-1
Automatic merge from submit-queue

Use kube-system namespace

Fixes #23153.

Sadly, kube-system isn't automatically created, so people need to make
sure to create it in their turnup scripts.  Also after creating
kube-system it can take 10+ seconds for master and proxy to show up.

I tested the equivalent of these changes locally, but not these changes
themselves as I don't have a dev/build env up, so please read carefully
and maybe try them out!
2016-04-25 20:23:36 -07:00
Alain Roy fa9d79df75 Initial kube-up support for VMware's Photon Controller
This is for: https://github.com/kubernetes/kubernetes/issues/24121

Photon Controller is an open-source cloud management platform. More
information is available at:
http://vmware.github.io/photon-controller/

This commit provides initial support for Photon Controller. The
following features are tested and working:
- kube-up and kube-down
- Basic pod and service management
- Networking within the Kubernetes cluster
- UI and DNS addons

It has been tested with a Kubernetes cluster of up to 10
nodes. Further work on scaling is planned for the near future.

Internally we have implemented continuous integration testing and will
run it multiple times per day against the Kubernetes master branch
once this is integrated so we can quickly react to problems.

A few things have not yet been implemented, but are planned:
- Support for kube-push
- Support for test-build-release, test-setup, test-teardown

Assuming this is accepted for inclusion, we will write documentation
for the kubernetes.io site.

We have included a script to help users configure Photon Controller
for use with Kubernetes. While not required, it will help some
users get started more quickly. It will be documented.

We are aware of the kube-deploy efforts and will track them and
support them as appropriate.
2016-04-25 13:24:16 -07:00
Andy Zheng 72f3cb664f Trusty: Add retry in curl commands 2016-04-25 12:59:30 -07:00
Jeff Grafton b69b94103c Make detect-node-names less brittle for G{C,K}E 2016-04-25 12:10:25 -07:00
Danka Niedziałkowska 39eb2308a4 Mount local ssds 2016-04-22 15:39:34 -07:00
Tim Hockin 7e0f66bd0e Add retries to validate-cluster
E2e shows occasional kubectl failures here, so add some retries.  We may want
to make this more general, but I think we should try it out in small scope
first.

Also clean up the retry loop so it doesn't process errors as successful runs
(discovered in testing).

Also simplify a bit of go template syntax.

Testing: I made kubectl randomly fail 50% of the time ($RANDOM%2 ==0) and
iterated until this gave me more helpful results.  Still not perfect, but
better.
2016-04-22 09:54:51 -07:00
k8s-merge-robot 19a106f61e Merge pull request #24274 from euank/configurable-release-bucket
Automatic merge from submit-queue

jenkins: Allow configuration of release bucket

This allows others to leverage the existing E2E code to test some
patched kube binary by simply overriding the bucket and reusing many of
the existing scripts
2016-04-21 23:09:05 -07:00
k8s-merge-robot 8c24c68315 Merge pull request #24324 from zjmchn/fix-vagrant-halt-up-issue
Automatic merge from submit-queue

fix ./cluster/kube-up.sh failed after vagrant halt. (issue #18990)
2016-04-21 15:00:04 -07:00
Parham Negahdar 3575ab0736 Allow KUBE_DNS_SERVER_IP and DNS_DOMAIN to be configurable in GCE deploy 2016-04-21 16:13:07 -04:00
Andy Zheng b8fd9e1a8d Trusty: Add debug supports for docker and kubelet 2016-04-21 09:49:52 -07:00
Prashanth Balasubramanian b066cb5357 Templatize l7 rc 2016-04-20 16:15:22 -07:00
k8s-merge-robot 70bfe6aeea Merge pull request #24531 from andyzheng0831/manifest
Automatic merge from submit-queue

Trusty: Handle the new var in kube-proxy manifest

This is to capture the kube-proxy manifest change in PR #24429.

@roberthbailey @fabioy @zmerlynn please review this change and mark it as cherry pick candidate. We need to catch up 1.2.3 release.

cc/ @dchen1107 @wonderfly @cjcullen FYI.

I have verified this fix. Without this fix, kube-proxy pod in Trusty nodes cannot be started correctly, i.e., the command line has an unhadled variable. And some other kube-system pods do not work correctly as kube-proxy is not working well. After applying this fix, kube-proxy can be started correctly, and all kube-system pods run successfully.
2016-04-20 10:48:39 -07:00
k8s-merge-robot 2be704f9ad Merge pull request #24465 from aknuds1/glbc
Automatic merge from submit-queue

Fix GLBC cluster addon README link

Fix the link to L7 load balancer controller in GLBC cluster addon README.

Fixed #24462.
2016-04-20 09:57:22 -07:00
Mike Danese e095f8c377 don't source the kube-env in addon-manager 2016-04-20 09:44:44 -07:00
Prashanth Balasubramanian 2ec06f8d4a Generate a kube_uuid salt pillar. 2016-04-20 09:29:27 -07:00
Andy Zheng 7772b7f1ce Trusty: Handle the new var in kube-proxy manifest 2016-04-20 08:27:41 -07:00
k8s-merge-robot b274911e0e Merge pull request #23829 from derekwaynecarr/fix_admission_order
Automatic merge from submit-queue

ResourceQuota should be last admission controller

For background, see documentation:

http://kubernetes.io/docs/admin/admission-controllers/#resourcequota
2016-04-20 04:58:04 -07:00
k8s-merge-robot 035e365de7 Merge pull request #24245 from autostatic/master
Automatic merge from submit-queue

Added check for noexec mount of /tmp on master

Signed CLA.
2016-04-20 03:49:39 -07:00
k8s-merge-robot 327d32dcad Merge pull request #24437 from yujuhong/influxdb_hostport
Automatic merge from submit-queue

Remove host port in influxdb-grafana-controller.yaml
2016-04-19 23:48:09 -07:00
CJ Cullen 760568796f Masquerade traffic from off-cluster going through kube-proxy. 2016-04-19 21:39:34 -07:00
Paolo Di Tommaso b4704c9a32 Update kubectl.sh 2016-04-19 13:47:05 +02:00
Arve Knudsen 425111e02d Fix README link 2016-04-19 12:35:53 +02:00
Yu-Ju Hong e97eb4dc6a Remove host port in influxdb-grafana-controller.yaml
There is no valid reason to keep the host ports in the pod spec.
2016-04-18 16:29:58 -07:00
k8s-merge-robot 26c99fee00 Merge pull request #24112 from cjcullen/rmcomments
Automatic merge from submit-queue

Strip comments from configure-vm.sh for gce

We are getting very close to the 32KiB limit on GCE metadata entry length. We used to strip comments before putting the value in metadata, but I think we removed it in a refactor because it wasn't absolutely necessary, and leaving it out made the scripts slightly cleaner. It's close to being necessary again.

Removing comments reduces the size from 31,609B to 27,221B: https://www.diffchecker.com/0xmmecvw.
2016-04-18 00:43:36 -07:00
k8s-merge-robot 1b74e7bfc9 Merge pull request #23994 from mml/docker-supervisor-logs
Automatic merge from submit-queue

Also collect docker supervisor logs.
2016-04-17 13:46:36 -07:00
k8s-merge-robot 273b01dceb Merge pull request #23975 from zhouhaibing089/kubectl-fix
Automatic merge from submit-queue

add HOME env variable for kube-addons service

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

Briefly, systemd service does not know the `HOME` environment variable which causes the kubectl write schema file into `/.kube` while it is expected to be `/root/.kube`.
2016-04-17 13:12:53 -07:00
k8s-merge-robot 031c1ea398 Merge pull request #24218 from jimmyjones2/hyperkube-container-behind-proxy
Automatic merge from submit-queue

Add easy-rsa to hyperkube container

Otherwise gets downloaded a runtime, which kind of breaks the container model.

See [comment](https://github.com/kubernetes/kubernetes/issues/20514#issuecomment-195835786) in #20514 - this causes dockerized install of k8s to fail if you're behind a proxy. make-ca-cert.sh already looks for a local copy of easy-rsa.tar.gz before downloading it, so this drops the tarball in the expected place in the container.
2016-04-17 06:32:37 -07:00
k8s-merge-robot d40bf503ed Merge pull request #24256 from porridge/fix-newlines
Automatic merge from submit-queue

Fix spacing in usage_from_stdin and info_from_stdin (issue #24186).

If "a" is a bash array, then the syntax to append the contents of $line as a
new element to the array is a+=("$line"), not messages+=$line

Using the former syntax just seems to append to the first element, creating a
long string and thus losing newline information.

Fixing this allows us to drop some empty lines from invocations of
usage_from_stdin.
2016-04-16 07:31:12 -07:00
k8s-merge-robot 7e2b795a36 Merge pull request #24293 from mikedanese/componentlabels
Automatic merge from submit-queue

add labels to kube component static pods

```
$ k --namespace=kube-system get po -l 'tier in (control-plane)' 
NAME                                 READY     STATUS    RESTARTS   AGE
kube-apiserver-k-7-master            1/1       Running   2          1m
kube-controller-manager-k-7-master   1/1       Running   1          1m
kube-scheduler-k-7-master            1/1       Running   0          54s
$ k --namespace=kube-system get po -l 'tier in (node)'         
NAME                         READY     STATUS    RESTARTS   AGE
kube-proxy-k-7-minion-eheu   1/1       Running   0          1m
kube-proxy-k-7-minion-mwo9   1/1       Running   0          1m
kube-proxy-k-7-minion-xw6m   1/1       Running   0          1m
```
cc @bgrant0607 @thockin @gmarek 

Fixes #21267
2016-04-16 03:11:32 -07:00
k8s-merge-robot 5f999438d8 Merge pull request #24045 from rootfs/e2e-misc
Automatic merge from submit-queue

add config-test.sh to cluster/centos so we can run e2e test on centos/fedora/rhel

so I can run e2e test on centos locally using the following command
```console
KUBERNETES_PROVIDER=centos KUBERNETES_CONFORMANCE_TEST=y ./cluster/test-e2e.sh
```
2016-04-16 00:00:26 -07:00
Jimmy Jones 0521ebad41 Include easy-rsa in container to avoid it being downloaded at runtime 2016-04-15 21:36:54 +01:00
Paolo Di Tommaso 19f3500c9a Allow KUBE_ROOT to be defined externally 2016-04-15 18:34:09 +02:00
Jian Ming Zhang 8326036386 fix ./cluster/kube-up.sh failed after vagrant halt. (issue #18990)
Signed-off-by: Jian Ming Zhang <zhangjm@cn.ibm.com>
2016-04-15 17:27:24 +08:00
k8s-merge-robot 16e2e87a89 Merge pull request #23605 from mikedanese/pause-kube
Automatic merge from submit-queue

don't ship kube-registry-proxy and pause images in tars.

pause is built into containervm. if it's not on the machine we should just pull
it. nobody that I'm aware of uses kube-registry-proxy and it makes build/deployment
more complicated and slower.
2016-04-15 00:26:20 -07:00
Mike Danese 6d24ca487a add labels to kube component static pods 2016-04-14 19:13:18 -07:00
Daniel Smith 7e666e0865 Merge pull request #24213 from mikedanese/max-time
add a timeout for a single retry in download-or-bust
2016-04-14 16:53:51 -07:00
Daniel Smith 4389aa1364 Merge pull request #23931 from luxas/build_for_arm64
Build Kubernetes, etcd and flannel for arm64 and ppc64le
2016-04-14 15:10:37 -07:00
Euan Kemp 9f9c54cdd2 jenkins: Allow configuration of release bucket
This allows others to leverage the existing E2E code to test some
patched kube binary by simply overriding the bucket and reusing many of
the existing scripts
2016-04-14 12:26:43 -07:00
Marcin Owsiany 9ce855269e Fix spacing in usage_from_stdin and info_from_stdin (issue #24186).
If "a" is a bash array, then the syntax to append the contents of $line as a
new element to the array is a+=("$line"), not messages+=$line

Using the former syntax just seems to append to the first element, creating a
long string and thus losing newline information.

Fixing this allows us to drop some empty lines from invocations of
usage_from_stdin.
2016-04-14 18:19:02 +02:00