Commit Graph

28 Commits

Author SHA1 Message Date
Justin Santa Barbara 0a6260f7c4 Merge pull request #130 from justinsb/upup_vfs_context
upup: Add VFS context object, centralize usage
2016-06-23 10:30:09 -04:00
Justin Santa Barbara 1737f7dadb upup: temporarily mark GCE as not-necessarily working
It's lagging a bit, so fail early
2016-06-23 10:28:25 -04:00
Justin Santa Barbara 75af0d089d upup: Add VFS context object, centralize usage
Replaces ad-hoc construction of VFS paths
2016-06-23 10:27:32 -04:00
Justin Santa Barbara 93f634b428 upup: use vfs for secretstore/keystore
This is needed so that we can have encrypted storage and complex keys
(e.g. multiple CA certs).  Multiple CA certs are needed for an in-place
upgrade from kube-up v1.
2016-06-23 08:58:54 -04:00
Justin Santa Barbara 1c4d5eaa43 upup: glog flag parsing with cobra
Bind the glog flags to the root command, use the goflag
parse-empty-slice trick to avoid warnings.
2016-06-13 17:37:30 -04:00
Justin Santa Barbara 0559ec1210 upup: Support for shared VPCs
A lot of work that had to happen here:

* Better reuse of config
* Ability to mark VPC & InternetGateway as shared
* Find models relative to the executable, to run from a dir-per-cluster

Fixes #95
2016-06-13 11:37:06 -04:00
Justin Santa Barbara 7006746be4 upup: allow master-size to be specified through CLI 2016-06-11 23:09:44 -04:00
Justin Santa Barbara 771c436101 Merge pull request #103 from justinsb/upup_dns_zone
upup: allow -dns-zone to be specified
2016-06-11 23:06:04 -04:00
Justin Santa Barbara 68f899756c upup: allow -dns-zone to be specified
We default to the last two components of the cluster DNS name.  But a
lot of people will delelgate a subdomain and want to use that.

Fixes #98
2016-06-11 22:37:24 -04:00
Justin Santa Barbara b52877e2ce upup: separate node & master zone configuration; validate
We allow --zones & --master-zones to be specified separately now, but we
validate for common errors (using a region where you meant a zone,
duplicating a zone, spanning regions, entering an invalid AZ etc)
2016-06-11 21:06:31 -04:00
Justin Santa Barbara 70002068fa upup: Allow node-count to be specified on the CLI
The other super-important option!
2016-06-10 13:35:16 -04:00
Justin Santa Barbara 7543d1c19d upup: apply gofmt
Missed a few gofmt places
2016-06-10 11:41:10 -04:00
Justin Santa Barbara 52496ac73a upup: split launchconfiguration from ASG
It is much more logical this way, and mirrors the way GCE & terraform
work.
2016-06-10 11:36:17 -04:00
Justin Santa Barbara e8af8f8efc upup: allow node size to be specific on CLI 2016-06-10 11:31:11 -04:00
Justin Santa Barbara 6e203da852 upup: split model into two parts
This is probably a good idea anyway, but it also lets us side-step the
terraform no-dots-in-tags bug.
2016-06-09 23:14:36 -04:00
Justin Santa Barbara 5d10678c23 Merge pull request #77 from justinsb/upup_default_release
upup: default to latest stable release
2016-06-09 23:12:59 -04:00
Justin Santa Barbara f3359d4bb9 upup: default to latest stable release
Avoids an extra CLI arg
2016-06-09 23:11:06 -04:00
Justin Santa Barbara 338f158d22 upup: Add VFS for storing state in S3 or locally
This also fixes a few concurrency issues, because we're writing in one
place now.
2016-06-09 23:08:10 -04:00
Justin Santa Barbara c826f46a60 upup: support for terraform on AWS
All seems good except for a bug with volume tagging
2016-06-08 12:19:15 -04:00
Justin Santa Barbara e4c093a229 upup: protokube is launched from a container; asset not needed
We don't need to include an asset for protokube; we're running it from
the docker registry (like most of the k8s core components)
2016-06-08 12:18:07 -04:00
Justin Santa Barbara 9934755bde upup: use bare binaries, instead of the release tarball
Expanding the release tarball was one of the slowest pieces of the
install, and we only need kubelet & kubectl from it.
2016-06-08 12:18:07 -04:00
Justin Santa Barbara 1eaf0d36a8 upup: HA support
Specifying multiple zones will bring up an HA cluster.
2016-06-07 15:44:00 -04:00
Justin Santa Barbara 8a53149eef upup: use protokube
This wires up protokube, replacing a lot of the nodeup functionality.

The option of not using protokube is retained, via the _not_protokube
tag.
2016-06-07 15:32:37 -04:00
Justin Santa Barbara c95656177f cloudup: Add support for ELB health checks 2016-06-07 09:01:35 -04:00
Justin Santa Barbara a4408f76be upup: better secrets support
Start creating commands to manage secrets, and also stop implicitly
creating them.
2016-05-30 18:47:20 -04:00
Justin Santa Barbara 1c97a94d87 Rework keypair to fit our change model
We also remove another special-case context (pki), so that it is just
another object type.
2016-05-15 21:46:53 -04:00
Justin Santa Barbara caccb8953f UpUp: AWS support
Adds AWS support for both cloudup & nodeup.
Also cleaning up things found along the way!
2016-05-09 13:08:27 -04:00
Justin Santa Barbara d4c2cfaae7 Initial version of upup: cloudup & nodeup
* GCE support only
* Key and secret generation
* "Direct mode" makes API calls
* "Dry run mode" previews the changes
* Terraform output (though key generation not working for master ip)
* cloud-init output (though debian image does not ship with cloud-init)
2016-05-06 16:01:33 -04:00