Commit Graph

407 Commits

Author SHA1 Message Date
Justin Santa Barbara d77d6f4859 Add version command that prints compiled version
Fix #128
2016-07-12 22:30:12 -04:00
Justin Santa Barbara 2cdd4a5e16 Merge pull request #130 from justinsb/fix_75
DNS fixes
2016-07-12 22:21:09 -04:00
Justin Santa Barbara fb1fa97bec Fix DNS zone creation
Though we don't actually expect to use it, we now pass the nonce that
was missing.

Fix #29
2016-07-12 22:16:48 -04:00
Justin Santa Barbara cae256340b Find matching existing DNS hosted zone
We choose the longest matching existing hosted zone as the default,
rather than the previous heuristic which was overly simplistic.

We also require the hosted zone to exist now; it doesn't seem to really
cost us anything given that the user has to set up DNS delegation
anyway.

Fix #125
2016-07-12 22:15:20 -04:00
Justin Santa Barbara b69ee2a0ee Accept a hosted zone ID for dns-zone
There isn't any real ambiguity.

Fix #75
2016-07-12 22:14:26 -04:00
Justin Santa Barbara e6c454b1c1 Merge pull request #121 from justinsb/docs_root_volume
Add docs for changing root volume type/size
2016-07-11 00:30:29 -04:00
Justin Santa Barbara 6f61e0c5b0 Better formatting for commands with responses 2016-07-11 00:29:00 -04:00
Justin Santa Barbara 9f1143781d Add docs for changing root volume type/size 2016-07-11 00:26:05 -04:00
Justin Santa Barbara 1db0833470 Merge pull request #120 from justinsb/gitignore
Update gitignore
2016-07-11 00:13:29 -04:00
Justin Santa Barbara cd3d7aa882 Update gitignore 2016-07-11 00:12:32 -04:00
Justin Santa Barbara 4dfe3fe8a1 Merge pull request #119 from justinsb/ig_cli
Refactor and improvements to CLI
2016-07-11 00:11:01 -04:00
Justin Santa Barbara d1b399a97d Fix reissue of CA key 2016-07-11 00:09:47 -04:00
Justin Santa Barbara 0f4999aade Fix cluster validation so it is less strict
We now validate the user-provided spec, so we can't enforce that all
fields are populated.  Instead we enforce that if they are populated
they are not invalid.
2016-07-11 00:09:12 -04:00
Justin Santa Barbara 0aed68c260 Add support for deleting an InstanceGroup 2016-07-11 00:08:55 -04:00
Justin Santa Barbara c4f2fbfcaf Tweaks to rolling-update CLI 2016-07-11 00:08:21 -04:00
Justin Santa Barbara 1d59f2aa80 Replace StateStore with a registry
StateStore was highly orientated towards a VFS system; replace it with a
Registry abstraction that is more object based.

We also rationalize much of the CLI (cmd) command logic also.
2016-07-11 00:07:59 -04:00
Justin Santa Barbara 050a6e6190 Merge pull request #118 from justinsb/import_fixes
Import cluster should create the same style name
2016-07-11 00:04:23 -04:00
Justin Santa Barbara eb589fd025 Import cluster should create the same style name 2016-07-11 00:03:22 -04:00
Justin Santa Barbara 0a59675c4b Merge pull request #117 from justinsb/fix_58
Add support for spot instances
2016-07-11 00:02:01 -04:00
Justin Santa Barbara f771c2af4c Add support for spot instances
Fixes #58
2016-07-10 23:56:16 -04:00
Justin Santa Barbara 4ac0395a9f Merge pull request #103 from justinsb/delete_shutting_down_state
Tolerate shutting-down state on instance during delete
2016-07-09 22:32:21 -04:00
Justin Santa Barbara 0c867a8971 Merge pull request #108 from justinsb/fix_96
Detect & delete new ASG launch configs
2016-07-09 22:29:56 -04:00
Justin Santa Barbara a8ee484b11 Merge pull request #109 from justinsb/fix_107
Delete cluster deletes keypairs
2016-07-09 22:29:43 -04:00
Justin Santa Barbara 524fb645d0 Delete cluster deletes keypairs
Again we delete by name, which is why we name them by the very unlikely
to conflict name "kubernetes.<clustername>"

Issue #107
2016-07-09 22:26:12 -04:00
Justin Santa Barbara 5b8b4d4da3 Detect & delete new ASG launch configs
We now output a ClusterName property into the launchconfig, even though
we don't technically need it.  But it allows us to more easily detect
the cluster, and it generally seems like a good idea.

Also rename to 'autoscaling-config' and clean up the cluster name
detection logic.

Fix #96
2016-07-09 22:07:24 -04:00
Justin Santa Barbara b98422fb3a Merge pull request #101 from justinsb/eventual_consistency_igw_tag
Tolerate eventual consistency error tagging gateways
2016-07-09 22:03:40 -04:00
Justin Santa Barbara 2632a46561 Merge pull request #106 from justinsb/fix_97
Clean up IAM roles as part of delete
2016-07-09 21:33:16 -04:00
Justin Santa Barbara d705a1001c Clean up IAM roles
We match by name; this seems acceptable given that we make the cluster
name a FQDN.

Issue #97
2016-07-09 15:33:57 -04:00
Justin Santa Barbara 885b728eb9 Merge pull request #105 from justinsb/fix_80
Move delete output to table helper
2016-07-09 14:53:40 -04:00
Justin Santa Barbara 952e74714f Sort table output
Currently sort order is locked to table order, but this could be changed
if needed.

Fix #80
2016-07-09 14:49:54 -04:00
Justin Santa Barbara e28c770c18 Move delete output to table helper 2016-07-09 13:57:02 -04:00
Justin Santa Barbara 555c637d93 Merge pull request #94 from justinsb/fix_66
Support `kops get/edit instancegroup`
2016-07-09 13:50:04 -04:00
Justin Santa Barbara fdfe710c92 Merge pull request #104 from justinsb/fix_35
More tweaks to the IAM async creation tolerance
2016-07-09 13:49:15 -04:00
Justin Santa Barbara 359fb8234a Merge pull request #102 from justinsb/fix_74
Delete Route53 host records on cluster-down
2016-07-09 02:46:53 -04:00
Justin Santa Barbara 0a8b94e748 More tweaks to the IAM async creation tolerance
Issue #35
2016-07-09 02:45:30 -04:00
Justin Santa Barbara c058a0c2a8 Tolerate shutting-down state on instance during delete 2016-07-09 02:41:56 -04:00
Justin Santa Barbara 5c65600229 Delete Route53 host records on cluster-down
Initial implementation: we match by name, for example; when we have a
hosted zone id we should plumb it through.

Does implement bulk deletion, because on Route53 we have to delete
multiple resources at once.

Issue #74
2016-07-09 02:41:25 -04:00
Justin Santa Barbara 935b08fba2 Tolerate eventual consistency error tagging gateways 2016-07-09 01:46:32 -04:00
Justin Santa Barbara 7ee06887f0 Merge pull request #100 from justinsb/fix_model
Fix model: numbers must be quoted
2016-07-09 01:42:17 -04:00
Justin Santa Barbara 126c508426 Fix model: numbers must be quoted 2016-07-09 01:41:04 -04:00
Justin Santa Barbara 6c6410dc81 Merge pull request #87 from justinsb/fix_35_part2
Report less-scary message when IAM instance profile is not ready yet
2016-07-09 01:25:28 -04:00
Justin Santa Barbara 13e514aeac Merge pull request #93 from justinsb/fix_24
Allow configurable RootDeviceSize & RootDeviceType
2016-07-09 01:25:20 -04:00
Justin Santa Barbara 5edef741b9 Merge pull request #99 from justinsb/node_role_name
Change node role tag to match master pattern
2016-07-09 01:25:09 -04:00
Justin Santa Barbara b42765816e Change node role tag to match master pattern
It's not currently used, and we hadn't updated it to match the better
pattern.

k8s.io/role=master can only be in one role
k8s.io/role/master=1 allows for multiple roles
2016-07-08 22:02:32 -04:00
Justin Santa Barbara 992a3e7d7f Support `kops get/edit instancegroup`
This lets us start to manage instancegroups through the CLI

Issue #66
2016-07-08 01:21:15 -04:00
Justin Santa Barbara 13b8e81bd6 Allow configurable RootDeviceSize & RootDeviceType
This allows for a larger EBS root volume (and we now default to 20GB,
just like kube-up did).

We remove the BlockDeviceMappings support because it wasn't used and
made things a lot more complicated.  We always map the ephemeral
devices.

Issue #24
2016-07-08 01:11:14 -04:00
Justin Santa Barbara 6264714e14 Merge pull request #86 from justinsb/docs_4
First pass at docs describing how kops boots k8s
2016-07-07 21:02:38 -04:00
Justin Santa Barbara 9d1770ad31 Merge pull request #89 from justinsb/format_expose_secret
When exposing secrets, output a blank line afterwards
2016-07-07 15:28:40 -04:00
Justin Santa Barbara 29dbbe3af3 When exposing secrets, output a blank line afterwards
Otherwise it becomes hard to copy and paste
2016-07-07 11:52:52 -04:00
Justin Santa Barbara d1ef7580a9 Report less-scary message when IAM instance profile is not ready yet
IAM instance profile creation is very async, and this causes dependent
resources to fail.  That's fine - we have good retry logic - but we
should output a less frightening error message.

Issue #35
2016-07-07 10:22:44 -04:00