Commit Graph

3511 Commits

Author SHA1 Message Date
Lucas Käldström
560268e036 Add a flannel image for arm and amd64. Cross-build debian-iptables for arm, arm64 and ppc64le. Build and push hyperkube for arm on every release 2016-04-04 23:33:32 +03:00
derekwaynecarr
9e0ebc2773 Remove SecurityContextDeny from vagrant setup 2016-04-04 14:43:21 -04:00
Matt Johnson
ce220836c3 Allow for local CNI binaries and configuration files with KUBERNETES_PROVIDER=vagrant.
Files are taken from cluster/network-plugins/{bin,conf} to be consumed within a vagrant kube-up.sh environment.
Paths used for configuration files and the 'cni' name of the network provider are all from the kubernetes documentation, but the actual implementation in the salt automation doesn't seem to exist.
2016-04-04 14:38:00 +01:00
Matt Johnson
46e6df655f Support use of NETWORK_PROVIDER=cni with KUBERNETES_PROVIDER=vagrant for a kube-up.
Use of NETWORK_PROVIDER=cni is documented as useable (as well as it's affects on the runtime args of kubelet),
however the actual implimentation in the salt automation doesnt seem to exist.
this change attempts to fix that for the vagrant usecase.
2016-04-04 14:37:48 +01:00
Marcin Maciaszczyk
7250028484 Update Dashboard UI addon to v1.0.1
Release details:
https://github.com/kubernetes/dashboard/releases/tag/v1.0.1
2016-04-04 09:13:31 +02:00
k8s-merge-robot
5be819b607 Merge pull request #23612 from mikedanese/addon-fix
Automatic merge from submit-queue

use apply instead of create to setup namespaces and tokens in addon manager

when the addon manager restarts, it takes ~15 minutes (1000 seconds) to start the sync loop because it retries creation of namespace and tokens 100 times. Create fails if the tokens already exist. Just use apply.
2016-04-03 05:50:12 -07:00
k8s-merge-robot
47bcf37198 Merge pull request #23045 from justinsb/aws_bump_image_20160316
Automatic merge from submit-queue

AWS kube-up: Bump jessie image
2016-04-03 03:47:34 -07:00
k8s-merge-robot
b448825211 Merge pull request #23603 from mikedanese/dont-create-secret-for-dns
Automatic merge from submit-queue

stop creating secrets for dns, it uses the kube-system service account now
2016-04-02 17:20:52 -07:00
k8s-merge-robot
372c1647b8 Merge pull request #23440 from mbruzek/juju-kube-up
Automatic merge from submit-queue

Juju kube up

I found some problems with the kube-up script that this pull request addresses. We didn't have the kubectl binary in the correct location. 

Just changing where we download the package from the master, and fixing the kube-down.sh script to remove those files.
2016-04-02 08:19:26 -07:00
Justin Santa Barbara
f43f398cad AWS kube-up: Allow BLOCK_DEVICE_MAPPINGS_BASE to be empty
We rename it to EPHEMERAL_BLOCK_DEVICE_MAPPINGS, and we also change the value
so that it starts with a `,`, instead of always inserting a comma before it.
In this way the value can be empty.

Also, if the user sets the (currently experimental) KUBE_AWS_STORAGE
environment variable to be "ebs", then we will not mount any instance storage
which will cause the machines to use EBS storage instead.
2016-04-01 22:27:28 -04:00
Justin Santa Barbara
1c3f706383 AWS: Don't error if there are no ephemeral disks
format-disks used to run with non-strict bash semantics, but this changed in
1.2 as we now merge it into the GCE script, so pipefail and errexit are both
set.

However, the way we list the ephemeral disks, by piping to grep, would cause an
exit code of 2 if there were no ephemeral disks.

Tolerate failure here by add `|| true`.  The metadata service call is unlikely
to fail, so we continue to ignore that possibility.
2016-04-01 22:27:20 -04:00
k8s-merge-robot
1521aa8a86 Merge pull request #23550 from luxas/fix_hyperkube_certs
Automatic merge from submit-queue

Fix so setup-files don't recreate/invalidate certificates that already exist

Fixes: #23197 and a lot of other DNS and dashboard issues

This is quite critical for `docker`-based users and should be considered as a **cherrypick-candidate** as it makes a lot of people wonder why Dashboard and/or DNS doesn't work. Example: https://github.com/kubernetes/dashboard/issues/374

Earlier when you shut your `docker.md` cluster down and started it again, all ServiceAccounts became invalidated by `setup-files` that happily ran once again and replaced all files. That made `apiserver` and `controller-manager` pick up the new certs (or there was a race condition, they _could_ have picked up the old certs too, but that's unlikely) and the old certs were put into `/var/run/secrets` because the ServiceAccount's Secrets were stored in etcd, which `setup-files` didn't touch.

@fgrzadkowski @huggsboson @thockin @mikedanese @vishh @pwittrock @eparis @bgrant0607
2016-04-01 14:47:17 -07:00
Lucas Käldström
858b9539d5 Fix so setup-files don't recreate/invalidate certificates that already exist 2016-04-01 21:23:58 +03:00
Matt Bruzek
64d849e4bb Unzipping the kubectl package to platforms so the validation script can find kubectl. 2016-04-01 13:19:17 -05:00
k8s-merge-robot
c6e995a824 Merge pull request #23558 from andyzheng0831/enhance
Automatic merge from submit-queue

Trusty: Regional release .tar.gz support

@zmerlynn and @roberthbailey please review it. This change is to support the feature added in PR #22234. The entire logic is pretty much the same as in #22234, with only few minor changes in implementation.

I had manually run e2e tests with "export RELEASE_REGION_FALLBACK=true" on two clusters: (1) Trusty on master nodes on ContainerVM; (2) Master and nodes all on trusty. All tests are green. I don't figure out a way to simulate regional fallback. But I did test the function download_or_bust() out-of-box.

cc/ @wonderfly @dchen1107 @fabioy FYI.
2016-04-01 03:39:08 -07:00
Alex Robinson
7135754f93 Merge pull request #23504 from mml/mb
Stop swallowing stdout and stderr when we check for the staging bucket.
2016-03-31 14:39:46 -07:00
Minhan Xia
d026d7ecbc Update cni binary 2016-03-31 13:57:51 -07:00
Alex Robinson
b60ef6f0dd Merge pull request #23593 from dchen1107/docker
Remove unnecessary override of /etc/init.d/docker on containervm image.
2016-03-31 13:31:52 -07:00
Alex Robinson
d41d50547d Merge pull request #23662 from ArtfulCoder/dockerscript
make docker-checker more robust
2016-03-31 10:53:39 -07:00
Abhishek Shah
736c02c7a0 make docker-checker more robust 2016-03-31 10:07:37 -07:00
Ross Kukulinski
0cf0bb00cd Add KUBERNETES_RELEASE option to get-kube.sh 2016-03-31 12:41:55 -04:00
CJ Cullen
26a6c66de5 Change kube-proxy & fluentd CPU request to 20m/80m. 2016-03-30 18:14:24 -07:00
k8s-merge-robot
be8ce6c385 Merge pull request #23353 from spiffxp/conformance-docs
Automatic merge from submit-queue

Update conformance test policy

Addresses #14913

/cc @kubernetes/sig-testing
2016-03-30 06:21:13 -07:00
k8s-merge-robot
c327879771 Merge pull request #23512 from Q-Lee/nanny-fix
Automatic merge from submit-queue

Create a new Deployment in kube-system for every version.

It appears that version numbers have already been properly added to these files. Small change to delete an old deployment entirely, so we can make a new one per version (like replication controllers).

We'll want to change this back once the kube-addons support deployments in a later version.
2016-03-29 20:59:46 -07:00
Mike Danese
ffa8bbde72 use apply instead of create to setup namespaces and tokens in addon manager 2016-03-29 16:41:53 -07:00
Mike Danese
0a821a473d stop create secrets for dns, it uses the kube-system service account now 2016-03-29 14:27:28 -07:00
Quintin Lee
0dcd49d584 Create a new Deployment in kube-system for every version. 2016-03-29 13:26:36 -07:00
Dawn Chen
c5ac60f584 Remove unnecessary override of /etc/init.d/docker on containervm image. 2016-03-29 12:35:13 -07:00
Andy Zheng
a83f11c484 Trusty: Regional release .tar.gz support 2016-03-28 15:21:14 -07:00
k8s-merge-robot
299de8e53c Merge pull request #23434 from andyzheng0831/kube-addon
Auto commit by PR queue bot
2016-03-27 21:48:47 -07:00
Lucas Käldström
2928d0a8ec Up to golang 1.6 2016-03-27 17:17:04 +03:00
k8s-merge-robot
3ec9f1e0a1 Merge pull request #23312 from mikedanese/static-routes-salt
Auto commit by PR queue bot
2016-03-26 12:29:40 -07:00
k8s-merge-robot
23fc7905c1 Merge pull request #23466 from andyzheng0831/fix
Auto commit by PR queue bot
2016-03-26 04:01:49 -07:00
Matt Liggett
300855c5bb Stop swallowing stdout and stderr when we check for the staging bucket.
Should help debug #23461
2016-03-25 15:01:21 -07:00
Andy Zheng
364ac85179 Support differentiation of OS distro in e2e tests 2016-03-25 14:53:36 -07:00
Yaroslav Molocko
0bfc496496 fix for https://github.com/kubernetes/kubernetes/issues/13511 2016-03-25 22:29:09 +08:00
k8s-merge-robot
3c58510826 Merge pull request #23316 from mikedanese/cadvisor-salt
Auto commit by PR queue bot
2016-03-25 06:17:16 -07:00
k8s-merge-robot
9b768e270f Merge pull request #23407 from jimmyjones2/patch-1
Auto commit by PR queue bot
2016-03-25 03:48:26 -07:00
Piotr Szczesniak
bf78d3a54b Bumped Heapster to v1.1.0-beta1 2016-03-25 10:43:32 +01:00
k8s-merge-robot
4e4ad61260 Merge pull request #23366 from goltermann/vet
Auto commit by PR queue bot
2016-03-24 21:50:56 -07:00
Mike Danese
be5b669b45 remove cadvisor salt
We have been removing cadviosr.manifest for over a year to cleanup
the old deployment style. I think we are ok at this point.
2016-03-24 11:55:29 -07:00
Andy Zheng
bfd68b35d8 Trusty: Update heapster manifest handling code 2016-03-24 09:22:30 -07:00
k8s-merge-robot
f8bb10b479 Merge pull request #22818 from andyzheng0831/enhance
Auto commit by PR queue bot
2016-03-23 16:19:31 -07:00
Jimmy Jones
b26f5016b2 Add git to hypekube image
Fixes #15855 - when using a docker multinode setup, this makes gitRepo volumes work
2016-03-23 23:00:01 +00:00
k8s-merge-robot
69b3cb36a6 Merge pull request #22726 from chuckbutler/juju-import-layers
Auto commit by PR queue bot
2016-03-23 14:26:42 -07:00
Charles Butler
cc1fb15ef7 Updating documentation link to point to k8s.io/docs/ 2016-03-23 12:26:37 -04:00
Charles Butler
54050dbaef Fetch the guestbook action from master for now 2016-03-23 12:22:39 -04:00
Charles Butler
b014c0d6b7 Move to the ~containers namespace etcd 2016-03-23 12:22:10 -04:00
Charles Butler
dafc78b489 Removing the duplicated guestbook example files 2016-03-23 12:21:01 -04:00
k8s-merge-robot
53c542606d Merge pull request #23126 from rata/api-version-deprecated
Auto commit by PR queue bot
2016-03-23 04:53:02 -07:00
k8s-merge-robot
cba5efd7de Merge pull request #23311 from mikedanese/nginx-salt
Auto commit by PR queue bot
2016-03-23 04:14:17 -07:00
k8s-merge-robot
76369c42be Merge pull request #22939 from resouer/util-sub-dir
Auto commit by PR queue bot
2016-03-23 03:34:33 -07:00
goltermann
34d4eaea08 Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code. 2016-03-22 17:26:50 -07:00
Quintin Lee
0c22277020 Use the same constants as heapster for the heapster nanny. 2016-03-22 13:17:06 -07:00
Quintin Lee
c484563315 Removing versions from deployment names. 2016-03-22 13:17:06 -07:00
Quintin Lee
79f0cc25e8 Support addon Deployments, make heapster a deployment with a nanny. 2016-03-22 13:17:06 -07:00
Aaron Crickenberger
0dc1f5da04 Update conformance test policy
Mostly doc updates and cruft removal

- describe conformance test policy and howto in e2e-tests.md
- rm e2e test info from testing.md in the name of DRY
- rm cluster/test-conformance.sh; unusable in release tar, not e2e.go
- update e2e test link in write-a-getting-started-guide.md
2016-03-22 13:09:31 -07:00
k8s-merge-robot
d221649429 Merge pull request #22845 from ZhangZhenhua/eliminate-roles-ambiguity
Auto commit by PR queue bot
2016-03-21 21:30:15 -07:00
k8s-merge-robot
4d98abf26c Merge pull request #23313 from zmerlynn/container-vm-v20160321
Auto commit by PR queue bot
2016-03-21 20:55:33 -07:00
Zach Loafman
b2cf4b8c11 Bump to container-vm-v20160321 2016-03-21 17:42:34 -07:00
Mike Danese
c676f8dabb remove unused static-routes from salt 2016-03-21 17:38:08 -07:00
k8s-merge-robot
f2d14990a5 Merge pull request #23180 from roberthbailey/dead-code
Auto commit by PR queue bot
2016-03-21 17:30:22 -07:00
Mike Danese
172d4e27f1 remove unused nginx salt
'aws', 'gce', 'vagrant', 'vsphere' are all the cloud providers
2016-03-21 17:25:31 -07:00
k8s-merge-robot
4d41bd5c05 Merge pull request #22915 from aledbf/fix-sed-mac
Auto commit by PR queue bot
2016-03-21 08:42:58 -07:00
gmarek
db77843bf0 Remove EXIT_ON_WEAK_ERROR variable 2016-03-21 12:22:03 +01:00
Andy Zheng
0a8e68fb49 Trusty: Avoid reaching GCE custom metadata size limit 2016-03-20 10:22:50 -07:00
Andy Zheng
2ea9ef53f3 Trusty: Support hybrid cluster with nodes on ContainerVM 2016-03-19 22:47:35 -07:00
k8s-merge-robot
c2200fe011 Merge pull request #23206 from MikeTest42/download1.2
Auto commit by PR queue bot
2016-03-19 06:00:06 -07:00
Mike Spreitzer
2712b77652 Change default k8s version to download to 1.2.0
Since it is now out!
2016-03-18 11:41:11 -04:00
Robert Bailey
c5ca042ede Remove the restart-kube-proxy and restart-apiserver functions
since neither are used any longer.
2016-03-18 01:49:01 -07:00
ZhenhuaZhang
496ed99cea declear roles as roles_array internally when installing on ubuntu
There are actually two `roles` setting in ubuntu installation scripts.
One is roles as string, which can be set as env and then used in scripts.
The other is roles as array, which is used by internal handling to
locate specific role by offset.

This patch tries to distinguish roles meaning by declearing the second
as roles_array, thus eliminating its ambiguity.
2016-03-18 14:59:43 +08:00
Cole Mickens
c184f7ed21 kube2sky readme: fix flags 2016-03-17 21:59:07 -07:00
Rodrigo Campos
902a04d637 validate-cluster.sh: Don't use ignored and deprecated option '--api-version'
When using this flag, this error is shown:

    Flag --api-version has been deprecated, flag is no longer respected and will be deleted in the next release

Stop using the flag in the validate-cluster.sh script and avoid the warning.
2016-03-17 12:49:21 -03:00
k8s-merge-robot
e604efcf0d Merge pull request #23027 from justinsb/e2e_node_logs
Auto commit by PR queue bot
2016-03-17 00:38:08 -07:00
k8s-merge-robot
5cc2bb3c0c Merge pull request #22960 from andyzheng0831/trusty
Auto commit by PR queue bot
2016-03-16 20:59:31 -07:00
k8s-merge-robot
067b1323d3 Merge pull request #23068 from colemickens/azure-cluster
Auto commit by PR queue bot
2016-03-16 14:19:55 -07:00
Cole Mickens
ba2aa597f0 azure: add kube-down, remove need for tenant-id 2016-03-16 12:02:41 -07:00
Charles Butler
fb2f952867 fixing for jinja2 syntax 2016-03-16 14:25:26 -04:00
Charles Butler
0c86318b7d Changes made by running hack/update-generated-docs.sh 2016-03-16 14:25:26 -04:00
Charles Butler
ce5a189234 Fix file headers for License bot 2016-03-16 14:25:26 -04:00
Charles Butler
ba113ea30b Rework cluster/juju to reflect current work
This commit imports the latest development focus from the Charmer team
working to deliver Kubernetes charms with Juju.

Notable Changes:

- The charm is now assembled from layers in $JUJU_ROOT/layers
- Prior, the juju provider would compile and fat-pack the charms, this
  new approach delivers the entirety of Kubernetes via hyperkube.
- Adds Kubedns as part of `cluster/kube-up.sh` and verification
- Removes the hard-coded port 8080 for the Kubernetes Master
- Includes TLS validation
- Validates kubernetes config from leader charm
- Targets Juju 2.0 commands
2016-03-16 14:25:26 -04:00
Charles Butler
a750bf667f Wipe the old charm(s) 2016-03-16 14:25:26 -04:00
gmarek
ddb75f5130 Use get-mater-size function in kubemark config 2016-03-16 17:38:55 +01:00
Justin Santa Barbara
bb68f740cd AWS kube-up: collect logs from e2e
By implementing detect-node-names and a few other helpers, we are able
to collect the logs from nodes.
2016-03-16 11:48:07 -04:00
Justin Santa Barbara
243e97c94c AWS kube-up: Bump jessie image
Also switch to a dedicated AWS account for serving this image.
2016-03-16 07:51:41 -04:00
Piotr Szczesniak
65e41f138b Updated documentation about monitoring addons 2016-03-16 10:10:55 +01:00
Andy Zheng
e276c8e468 Trusty: support developer workflow on base image 2016-03-15 22:07:08 -07:00
k8s-merge-robot
8313504728 Merge pull request #23005 from andyzheng0831/fix
Auto commit by PR queue bot
2016-03-15 16:21:44 -07:00
Andy Zheng
6597daddd6 Trusty: Fix heapster breakage caused by #22940 2016-03-15 13:26:04 -07:00
Phillip Wittrock
70036b3621 Merge pull request #22993 from piosz/bump-heapster-1.0
Bumped Heapster to stable version 1.0.0
2016-03-15 12:49:54 -07:00
Piotr Szczesniak
1f577181af Bumped Heapster to stable version 1.0.0 2016-03-15 17:44:23 +01:00
Justin Santa Barbara
e0caa1e559 non_masquerade_cidr: verify-flags exception, salt syntax
Cope is non_masquerade_cidr value is empty; add exception for
verify-flags.
2016-03-15 11:05:55 -04:00
Matt Margolin
e752f2149f Enable non_masquerade_cidr option configured in salt.grains
This should allow allow the non_masquerade_cidr option to get configured
in /etc/salt/minion.d/grains.conf, allowing the flag to used by kubelet
in /etc/sysconfig/kubelet. Default configuration is set in pillar
2016-03-15 09:56:33 -04:00
Andy Zheng
ab20a9adbe Trusty: Fix node kubelet pod-cidr flag 2016-03-14 21:09:21 -07:00
Marcin Wielgus
6123df9992 Heapster sizing adjustments 2016-03-14 20:00:17 +01:00
harry
f19d59cf35 Move flag into sub pkg 2016-03-14 21:30:38 +08:00
gmarek
c325319ccb Default MIG size to 1000 2016-03-14 12:21:14 +01:00
k8s-merge-robot
9f213bf145 Merge pull request #22901 from zmerlynn/cleanup_motd
Auto commit by PR queue bot
2016-03-14 00:05:46 -07:00
Manuel de Brito Fontes
a2b4bc0ae3 Allow running make in mac and change sed separator to allow custom paths in registry 2016-03-12 22:59:08 -03:00
k8s-merge-robot
60f5508aad Merge pull request #22882 from andyzheng0831/trusty-master
Auto commit by PR queue bot
2016-03-12 17:12:51 -08:00