Commit Graph

279 Commits (4a9f402808385dfc06fb417c9d82192dfe7cadc0)

Author SHA1 Message Date
Kubernetes Submit Queue 10a25b1709 Merge pull request #28499 from Secful/parameterize_vpc_name
Automatic merge from submit-queue

Parameterize vpc name
2016-08-22 00:54:38 -07:00
Kubernetes Submit Queue 413677110b Merge pull request #27061 from Naddiseo/aws-ip-restrict-ssh-fixes-26661
Automatic merge from submit-queue

kube-up: Allow IP restrictions for SSH and HTTPS API access on AWS.

<!--
Checklist for submitting a Pull Request

Please remove this comment block before submitting.

1. Please read our [contributor guidelines](https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md).
2. See our [developer guide](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md).
3. If you want this PR to automatically close an issue when it is merged,
   add `fixes #<issue number>` or `fixes #<issue number>, fixes #<issue number>`
   to close multiple issues (see: https://github.com/blog/1506-closing-issues-via-pull-requests).
4. Follow the instructions for [labeling and writing a release note for this PR](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes) in the block below.
-->

```release-note

```


[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

Closes #26661
2016-08-21 20:45:06 -07:00
Zach Loafman ec33089519 AWS: Handle kube-down case where the LaunchConfig is dangling
Always query and attempt to delete the default launch-config
2016-08-17 14:45:43 -07:00
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
Michael Vilensky bc30b49a1e Parameterize vpc name 2016-07-04 16:22:40 +03: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
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 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
Richard Eames d9be75e9fe Allow IP restrictions for SSH and HTTPS API access on AWS.
Closes #26661
2016-06-08 12:33:15 -06: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
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
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
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 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
Joe Finney e660adbad8 Add connect timeout to ssh-to-node. 2016-03-07 13:29:04 -08:00
Justin Santa Barbara 523e1d0d8c Ubernetes-Lite: reuse existing configuration when reusing master
In particular, we need to share the kubelet cert & key, otherwise we
can't connect to the kube-api.

Fix #22593
2016-03-05 17:00:02 -05:00
k8s-merge-robot 2cf3c7809e Merge pull request #21471 from justinsb/kube_up_auto_upgrade
Auto commit by PR queue bot
2016-03-02 21:00:43 -08:00
Justin Santa Barbara 8b122b102f kube-up: Only upgrade if AUTO_UPGRADE set, but set it on AWS
Installing upgrades is kind of dangerous, so make it not the default.
But also set AUTO_UPGRADE=true on AWS.
2016-02-27 20:55:33 -05:00
Justin Santa Barbara 4e64c4586e AWS: Set OS defaults for kube 1.2
Default distro is jessie, due to the support situation with Ubuntu
distros.  Default ubuntu distro is wily.

Update the docs to reflect the recommended distros with kube-up, and to
encourage contributions for other distros.
2016-02-25 00:10:33 -05:00
Justin Santa Barbara 62898319df AWS kube-up: Increase timeout for spot instances
Spot instances take a lot longer to run; wait up to 15 minutes for the
nodes to launch when we're using spot instances.  (Previously we were
waiting 5 minutes).
2016-02-24 14:22:33 -05:00
k8s-merge-robot 58783bc256 Merge pull request #21684 from justinsb/fix_21200
Auto commit by PR queue bot
2016-02-23 07:06:08 -08:00
Justin Santa Barbara 050863cf93 AWS kube-up: Build kubeconfig asap
Once we've built the master, we can build kubeconfig.  By doing so, if
we time out waiting for the nodes, the system is still configured
correctly.

In particular, spot instances can be slow to launch.

Related to issue #21200
2016-02-22 10:46:56 -05:00
Justin Santa Barbara fb12c48cb7 AWS kube-up: Allow spot instances
I think we should probably leave this undocumented for now, until we
have a better way to launch multiple sets of nodes, but it's great for
cost savings while testing!

Fix #21200
2016-02-22 10:42:49 -05:00
k8s-merge-robot 1ce188e557 Merge pull request #21430 from spxtr/e2e-internal
Auto commit by PR queue bot
2016-02-21 12:08:22 -08:00
k8s-merge-robot d6192dd152 Merge pull request #21342 from spxtr/remove-e2e-test
Auto commit by PR queue bot
2016-02-21 00:39:38 -08:00
k8s-merge-robot a12a2e984a Merge pull request #21233 from justinsb/aws_wily
Auto commit by PR queue bot
2016-02-20 13:28:08 -08:00
Joe Finney 2b756ca56d Move E2E kube-up call into test-setup from e2e-internal. 2016-02-17 16:49:07 -08:00