Commit Graph

388 Commits (7a43808143c7945d5a8ecb124752407e32dbab77)

Author SHA1 Message Date
Justin Santa Barbara 0d8d63c288 AWS: Update jessie image, to fix reboot issue
The previous jessie image had a broken cloud-init, which would use an
Ubuntu-specific 'nobootwait' argument when mounting disks.  We now
override that in the image.

Fix #22549
2016-03-05 16:57:57 -05:00
Abhi Shah 05ba8ca7fa Merge pull request #22170 from metmajer/master
Pass through EXTRA_DOCKER_OPTS.
2016-03-04 10:40:17 -08: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 b058c6b3e1 AWS: Add sha to download-or-bust
download-or-bust was changed on the GCE side to verify a hash if passed,
so we need to pass a hash in the AWS scripts that reuse this function.
2016-03-02 10:12:39 -05:00
Martin Etmajer f1b2fc39ba Pass through EXTRA_DOCKER_OPTS. 2016-02-29 19:46:58 +01: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
k8s-merge-robot 9b62123b37 Merge pull request #21908 from justinsb/aws_spot_instance_timeout
Auto commit by PR queue bot
2016-02-24 17:25:16 -08:00
Alex Robinson cbcc25802e Merge pull request #21237 from justinsb/aws_jessie_support
AWS Debian Jessie Support
2016-02-24 14:34:48 -08:00
Justin Santa Barbara 5d7ed4d6e7 AWS kube-up: Stop docker before moving /mnt/docker
On Jessie, we now preinstall Docker.  Before moving /mnt/docker, make
sure we stop the docker service.
2016-02-24 15:01:20 -05:00
Justin Santa Barbara 7f3bbe1dfe AWS kube-up: Bump to the latest Jessie image, allow overriding
Jessie image can be selected by name using AWS_IMAGE_NAME. This is a
little easier than specifying the AMI ID.
2016-02-24 14:34:40 -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 aa57beb885 AWS Jessie: Find image by name
This means we don't have to code the AMI ids for each region.
2016-02-23 00:02:54 -05:00
Justin Santa Barbara 91eb370931 AWS Debian: Only install linux-image-extra on Ubuntu
It isn't available (and hopefully not needed) on Debian
2016-02-22 22:54:41 -05: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
k8s-merge-robot fe18055adc Merge pull request #21165 from justinsb/aws_master_pd_in_fstab
Auto commit by PR queue bot
2016-02-20 00:29:46 -08:00
k8s-merge-robot 6c5bf89ed3 Merge pull request #21160 from justinsb/aws_bigger_master
Auto commit by PR queue bot
2016-02-20 00:29:45 -08:00
k8s-merge-robot 5acdb92126 Merge pull request #21177 from laushinka/spelling-fixes
Auto commit by PR queue bot
2016-02-18 10:29:49 -08:00
k8s-merge-robot bcabc096f2 Merge pull request #21130 from madhusudancs/daemonset-enable-default
Auto commit by PR queue bot
2016-02-17 22:54:35 -08:00
k8s-merge-robot 78c294a66c Merge pull request #21164 from justinsb/aws_reboot_with_ephemeral
Auto commit by PR queue bot
2016-02-17 17:12:01 -08:00
Joe Finney 2b756ca56d Move E2E kube-up call into test-setup from e2e-internal. 2016-02-17 16:49:07 -08:00
laushinka 7ef585be22 Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
Madhusudan.C.S f06a195855 Remove all {KUBE_,}ENABLE_{DEPLOYMENT,DAEMONSET} variables from all our bash scripts. 2016-02-17 15:04:28 -08:00
Madhusudan.C.S ab1e9c200f Graduate DaemonSet to v1beta1 API, enable it by default. 2016-02-17 15:03:12 -08:00
Justin Santa Barbara 4d2c580781 AWS kube-up: Add support for wily
vivid is technically no longer supported now, so we should support
wily.
2016-02-17 10:45:21 -05:00
Justin Santa Barbara a16372ce40 AWS: Change master to m3.medium by default
m3.large for > 150 nodes.

t2.micro often runs out of memory.  The t2 class has very
difficult-to-understand behaviour when it runs out of CPU.  The
m3.medium is reasonably affordable, and avoids these problems.

Fix #21151

Issue #18975
2016-02-17 10:24:14 -05:00
Justin Santa Barbara c68c019150 AWS: Add comments to explain the symlink logic 2016-02-17 09:57:37 -05:00
Justin Santa Barbara affffdc9ab AWS kube-up: Put the master-pd into /etc/fstab, to mount it early
Otherwise we risk services coming up on the master before the backing
volume is ready.

If we then see the master-pd is already mounted, don't try to remount
it.

Issue #21155
2016-02-17 09:47:01 -05:00
k8s-merge-robot 22ad56dded Merge pull request #21161 from justinsb/aws_bootstrap_on_every_boot
Auto commit by PR queue bot
2016-02-17 06:45:24 -08:00
Joe Finney 6f7182e500 Remove hack/e2e-test.sh in favor of hack/e2e.go. 2016-02-16 14:54:50 -08:00
k8s-merge-robot 784f555fd9 Merge pull request #18821 from rastut/add_aws_detect_root_device
Auto commit by PR queue bot
2016-02-13 10:09:20 -08:00
k8s-merge-robot f2e845dd6d Merge pull request #21144 from justinsb/aws_fix_project_not_defined
Auto commit by PR queue bot
2016-02-13 08:33:53 -08:00
Justin Santa Barbara 69300c51b3 AWS kube-up: Reboot support with ephemeral storage
If the ephemeral volume is present and mounted, don't try to reinitialize
them.

Don't block the boot if the ephemeral volume is corrupt / missing -
this enables us to cope with a stop/start & presumably also corruption.
In this case, we'll reformat the ephemeral storage.

Fix #21157
2016-02-12 20:31:56 -05:00
Justin Santa Barbara 19cf622e88 AWS kube-up: make the bootstrap script run every boot
This is so we have the same behaviour as on GCE.

This also lets us change the bootstrap script or the config, which is
nice.  Instance data is immutable on AWS once it is booted.

Fix #21150
2016-02-12 20:30:47 -05:00
Janet Kuo 2874f30c05 Enable Deployments by default 2016-02-12 12:29:14 -08:00
Justin Santa Barbara 1852fab029 AWS: Fix kube-up generation of kubeconfig
We were assuming the PROJECT env var was set, which the e2e tests do.
But PROJECT is normally not set on AWS (it is set on GCE); this broke as
part of the harmonization.

Revert to the pre-existing behaviour here, where we use "aws_" as the
prefix.

Fix #21141
2016-02-12 09:53:22 -05:00
Chris Kühl 7fcc40bb27 docs: replace Rocket with rkt 2016-02-09 13:52:25 +01:00
k8s-merge-robot 68a165cda9 Merge pull request #20681 from justinsb/aws_sync_kubeup_gce_step3
Auto commit by PR queue bot
2016-02-09 02:08:48 -08:00
Michael Nikitochkin 55e2906f79 AWS: Allow to configure master ip and services mask
Fix script for case when neeed to setup cluster
in an existen VPC and subnet with ip mask example: 10.0.0.0/8.

Fixed bug to detect ip of master if provided MASTER_RESERVED_IP.

For some reason detecting master ip was moved to volumes and only when MASTER_RESERVED_IP=auto.
If specify IPv4 for MASTER_RESERVED_IP like `52.1.1.1`, than we could
not detect ip even during last steps of setuping cluster.
step the KUBE_MASTER_IP is reseted because there are no tag for the
volume.
2016-02-07 21:59:00 +01:00
Justin Santa Barbara 63743e9c1c AWS kube-up: Use the cert we generated in kubeconfig 2016-02-06 22:52:01 -05:00
Justin Santa Barbara 270fae4d66 kube-up: Support multiple additional IPs for SSL cert
And pass the public IP when setting up AWS
2016-02-06 22:52:01 -05:00
Justin Santa Barbara fd5c44c72e kube-up: Finish refactor of AWS to reuse GCE script
We override key functions in the GCE script with AWS equivalents.
2016-02-06 22:52:01 -05:00
k8s-merge-robot 9d981b696c Merge pull request #20642 from justinsb/aws_sync_kubeup_gce_step2
Auto commit by PR queue bot
2016-02-06 11:56:47 -08:00
k8s-merge-robot 5b046cccdb Merge pull request #20448 from justinsb/aws_fix_e2e_detect_master
Auto commit by PR queue bot
2016-02-04 16:24:20 -08:00
Justin Santa Barbara 732e76fb4e kube-up: Refactor SSL cert helpers into common
Next step in the the GCE/AWS harmonization
2016-02-04 09:10:41 -05:00