Commit Graph

440 Commits (9f8625fb2c2dd99017508057ac8948b2310a7349)

Author SHA1 Message Date
Zach Loafman 8d0200e5af AWS: Allow no-op kube-down to exit 0
Not exactly sure why hack/e2e.go IsUp() is returning true right now,
but I can solve this a different way. This unifies with the GCE
behavior, which is that no-op kube-down returns 0.
2016-08-10 10:36:38 -07:00
Ryan Hitchman 5508e49ef5 Use bash ranges "{1..3}" instead of "$(seq 1 3)". 2016-08-08 16:23:39 -07:00
k8s-merge-robot 3d162d0400 Merge pull request #29427 from justinsb/aws_master_os_distribution
Automatic merge from submit-queue

AWS kube-up: fix MASTER_OS_DISTRIBUTION

On AWS we were defining KUBE_MASTER_OS_DISTRIBUTION, but the scripts
expect MASTER_OS_DISTRIBUTION.

Fixes #29422
2016-07-22 15:35:20 -07:00
Justin Santa Barbara 55d0d3b4fa AWS kube-up: export kube_user to salt
This was done for GCE in #29164, but not for AWS.

Fixes #29424
2016-07-22 00:46:03 -04:00
Justin Santa Barbara 49da8298c9 AWS kube-up: fix MASTER_OS_DISTRIBUTION
On AWS we were defining KUBE_MASTER_OS_DISTRIBUTION, but the scripts
expect MASTER_OS_DISTRIBUTION.

Fixes #29422
2016-07-22 00:45:05 -04:00
Maisem Ali 97f3f80833 Splitting OS_DISTRIBUTION into NODE_OS_DISTRIBUTION and
MASTER_OS_DISTRIBUTION.
2016-07-15 12:02:31 -07:00
joe2far 5ead89b5bb Fixed several typos 2016-07-13 15:06:24 +01:00
David McMahon ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
k8s-merge-robot c0e0e74728 Merge pull request #27278 from activars/aws_optional_dhcp_set_id
Automatic merge from submit-queue

Making DHCP_OPTION_SET_ID creation optional

Reason: We have a pre-configured VPC in AWS. `kube-up.sh` should not making changes to the VPC DHCP option if there's already DHCP options configured. 

PR Changes: When `DHCP_OPTION_SET_ID` is given in environment variable, kube-up.sh will skip the `DHCP_OPTION_SET_ID` creation.
2016-06-28 01:13:20 -07:00
k8s-merge-robot eeda4c7915 Merge pull request #24910 from paralin/aws-configurable-context
Automatic merge from submit-queue

cluster/aws: Add option for kubeconfig context

Added KUBE_CONFIG_CONTEXT environment variable to customize the kubeconfig context created at the end of the aws kube-up script.

Fixes #24877 

This PR does barely anything and shouldn't require e2e tests. It's just a minor convenience.

<!-- 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/24910)
<!-- Reviewable:end -->
2016-06-24 13:09:40 -07:00
nikhiljindal 1204411209 Revert "Federation e2e supports aws"
This reverts commit 5bacc4830e.
2016-06-24 10:44:35 -07:00
Colin Hom 5bacc4830e Federation e2e supports aws 2016-06-21 18:22:46 -07:00
Justin Santa Barbara f3cc5f503a AWS kube-up: Authorize route53 in the IAM policy
Federation needs this now (on the nodes), and I suspect ingress
controllers will shortly want this also.  Given we're going to authorize
it on the nodes, we should authorize it on the master also (the master
is much more trusted).

Fix #27467
2016-06-21 15:42:54 -04:00
k8s-merge-robot ee87a39f04 Merge pull request #27676 from justinsb/aws_debian_1_11
Automatic merge from submit-queue

AWS kube-up: move to Docker 1.11.2

This is to mirror GCE

Also we remove support for vivid as Docker no longer packages for it, and remove some of the unreachable distro code in aws kube-up.

Also bump the AMI to a 1.3 version (with preinstalled Docker 1.11.2)

Fixes https://github.com/kubernetes/kubernetes/issues/27654
2016-06-21 12:29:03 -07:00
nikhiljindal 864b267a8d Simplifying the code to create kubeconfig 2016-06-20 16:10:47 -07:00
nikhiljindal 657a7ef6a4 Create kubeconfig for cluster secrets on other cloud providers as well 2016-06-20 14:36:14 -07:00
Justin Santa Barbara 0345013dde AWS kube-up: point to new AMI; link to new tool
Also remove the copy of the manifest now that it has found a real home
in kube-deploy.
2016-06-18 20:42:31 -04:00
Justin Santa Barbara b8112beb34 AWS kube-up: remove support for vivid
Vivid is EOL, and Docker is no longer packaged for it.

Remove support for it in 1.3 (in 1.2 we had warned users it was EOL).

Also remove unused wheezy, trusty & coreos & do general cleanup.
2016-06-18 20:42:31 -04:00
Justin Santa Barbara e58a16e95a AWS kube-down: Issue warning if VPC not found
Issue #17219
2016-06-15 23:53:57 -04:00
Jing Dong 70ac7abb10 kube-up.sh should allow using existing DHCP option set without making changes to existing VPC configuration. 2016-06-13 15:02:14 +01:00
Marcin Wielgus edf21902b5 Rename ENABLE_NODE_AUTOSCALER to ENABLE_CLUSTER_AUTOSCALER - part 1 2016-06-08 13:35:38 +02:00
Josh Ellithorpe 07f8d025c8
Remove SecurityContextDeny from aws configurations 2016-06-04 15:52:10 -07:00
gmarek 049d7f6c50 Remove unused POLL_SLEEP_INTERVAL 2016-05-24 13:34:03 +02:00
k8s-merge-robot 7c1d37bdb5 Merge pull request #24464 from matthewrudy/aws-ap-northeast2
Automatic merge from submit-queue

AWS: More support for ap-northeast-2 region

Issue #24446

The new AWS region for Seoul, Korea (ap-northeast-2)
was launched in January 2016
https://aws.amazon.com/blogs/aws/now-open-aws-asia-pacific-seoul-region/

But it requires a few changes.

To test:
```
export KUBERNETES_PROVIDER=aws
export KUBE_AWS_ZONE=ap-northeast-2a
export MASTER_SIZE=t2.medium
export NODE_SIZE=t2.medium
export NUM_NODES=4
cluster/kube-up.sh
```

I assigned the AMIs by checking the specific version used from `ap-northeast-1`,
and finding the same image with the same datestamp.

<!-- 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/24464)
<!-- Reviewable:end -->
2016-05-17 04:01:39 -07:00
k8s-merge-robot 61f383e5d1 Merge pull request #23785 from ajohnstone/23784-aws-vpc-key-error
Automatic merge from submit-queue

AWS kube-down: don't fail if ELB not in VPC - #23784

Prevent python undefined key error.

```
Traceback (most recent call last):
  File "<string>", line 1, in <module>
KeyError: 'VPCId'
```

Fixes #23784

<!-- 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/23785)
<!-- Reviewable:end -->
2016-05-16 01:45:49 -07:00
Alexander Krassiev be2633a0a1 Fixed 'Invalid endpoint: https://ec2.us-east-.amazonaws.com'. #24420 #24020 2016-05-14 11:08:04 -07:00
Matthew Rudy Jacobs 895e44405c Add configuration for AWS ap-northeast-2 region
Added AWS_IMAGEs from https://cloud-images.ubuntu.com/locator/
2016-05-14 01:15:55 +08: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
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
Christian Stewart 1491e6c662
cluster/aws: Add option for kubeconfig context
Added KUBE_CONFIG_CONTEXT environment variable to customize the
kubeconfig context created at the end of the aws kube-up script.

Signed-off-by: Christian Stewart <christian@paral.in>
2016-04-28 00:06:58 -04:00
derekwaynecarr e3d58499db ResourceQuota should be last admission controller 2016-04-12 13:40:52 -04:00
Jeff Lowdermilk e17213a2a8 Merge pull request #23491 from onorua/master
set KillMode for kubelet to process, fix for #13511
2016-04-08 16:39:32 -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
Andrew Johnstone 06c04d17ce #23784 - check elb vpc key exists 2016-04-02 11:03:26 +01: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
Yaroslav Molocko 0bfc496496 fix for https://github.com/kubernetes/kubernetes/issues/13511 2016-03-25 22:29:09 +08:00
Miguel Flores Ruiz de Eguino 485aa7faba Allow to configure the base VPC CIDR 2016-03-22 16:50:16 -06: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
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
k8s-merge-robot 353c382761 Merge pull request #22783 from justinsb/fix_21147
Auto commit by PR queue bot
2016-03-11 17:08:17 -08:00
k8s-merge-robot fc40fad0b2 Merge pull request #22779 from justinsb/fix_21218
Auto commit by PR queue bot
2016-03-11 16:32:35 -08:00
k8s-merge-robot 1f98ba99f1 Merge pull request #22846 from wojtek-t/fix_master_size
Auto commit by PR queue bot
2016-03-11 01:38:11 -08:00
Wojciech Tyczynski 46994a6890 Fix AWS default master sizes 2016-03-11 09:45:22 +01:00
k8s-merge-robot 31903c8bb1 Merge pull request #22594 from justinsb/aws_ulite
Auto commit by PR queue bot
2016-03-10 10:15:28 -08:00
Justin Santa Barbara 6678a3f013 AWS kube-up: add retries around delete-security-group
If we deleted an ELB, we often fail to delete the security group,
because deleting the ELB is invisibly asynchronous.

Add a retry loop around delete-security-group to work around this.

Fix #21147
2016-03-10 06:38:48 -05:00
Justin Santa Barbara 562f7f1f71 AWS kube-up: Clean up distro handling
The only tested-working distros are vivid, wily & jessie.

vivid should not really be used because it is no longer supported, so
recommend wily or jessie instead.

For other distros, recommend jessie instead.

Fix #21218
2016-03-10 06:29:20 -05:00
k8s-merge-robot 36cb9d05ea Merge pull request #22728 from spxtr/tidy-shell
Auto commit by PR queue bot
2016-03-09 13:59:13 -08:00
Joe Finney 9845639e14 Remove cluster/kube-env.sh. 2016-03-08 16:57:31 -08:00