Justin Santa Barbara
94c4e5fb4c
Merge pull request #1274 from justinsb/kops_inspect
...
First step towards cluster-dump command
2017-01-04 23:19:36 -05:00
Justin Santa Barbara
a08af4205a
Dump instances also
2016-12-30 10:04:59 -05:00
Justin Santa Barbara
6b01c15328
First step towards dump command
2016-12-30 10:04:59 -05:00
Justin Santa Barbara
e3eb7454d2
Fixes for import from kube-up
2016-12-27 00:18:18 -05:00
Kris Childress
50f9028106
Fixing for tests, removing old function
2016-12-16 06:28:14 -07:00
Kris Childress
b0d0fd312d
Fixing orphaned LC's with kops
2016-12-16 06:26:07 -07:00
Justin Santa Barbara
933506bdbb
Apply gofmt
2016-11-13 21:06:55 -05:00
Kris Childress
479c7782d6
Fixing DNS annotations on pods / Bumping failed iterations
...
- Adding template functions to nodeup
- Adding 30 -> 42 iteration boost for attempted iterations without progress
- Adding template to kube api manifest
2016-11-08 15:16:41 -08:00
Kris Childress
835e24f788
Working EIP and NGW CRUD for private networking..
...
Next step.. lets piece them all together
2016-11-08 15:16:41 -08:00
Kris Childress
a3dd1257ce
Working ElasticIP associations on subnet. Delete and Create!
2016-11-08 15:16:41 -08:00
Justin Santa Barbara
27fb687058
Fix typo: becasue -> because
2016-11-05 01:41:47 -04:00
Justin Santa Barbara
1d239d9b09
Don't remove route tables tagged with another cluster
2016-10-18 22:21:39 -04:00
Justin Santa Barbara
6ec5da2827
Add unit test for deleting untagged route table
2016-10-18 22:16:05 -04:00
Justin Santa Barbara
ba8514d840
Delete route tables, even if untagged, if we are deleting the VPC
...
The route table cannot exist without a VPC; if we're deleting the VPC we
must delete the route table also.
This will help fix problems when we fail to tag the route-table.
Issue #597
2016-10-18 21:59:56 -04:00
Chris Love
0d78c65498
Merge pull request #660 from justinsb/fix_upgrade
...
Fix upgrade from kube-up
2016-10-18 10:39:33 -06:00
Justin Santa Barbara
d563d5589a
Fix deletion logic to ignore terminated instances
...
Silly mistake because golang case statements do not fall though
Fix #673
2016-10-18 00:30:31 -04:00
chrislovecnm
8fa2aac99f
fixing more headers
2016-10-15 19:20:56 -06:00
Justin Santa Barbara
2af1fde49d
Reuse the route table when importing
...
Not only is this lower-impact, but it also avoid a bug because the
subnets were considered "shared", and thus we would not manage the
route-table any more.
2016-10-15 14:18:30 -04:00
Justin Santa Barbara
c234f20d05
Fix logging of instance ids
2016-10-05 23:11:54 -04:00
Justin Santa Barbara
5137e2546e
Tolerate InvalidInstanceID.NotFound when deleting instances
...
We treat as instance-already-deleted, i.e. not an error
Fix #592
2016-10-05 02:12:11 -04:00
Justin Santa Barbara
bb01cf6ddd
Make AWSCloud an interface, mock it out in tests
...
Beginnings of a mock for the AWSCloud, so that hopefully we aren't
calling out to AWS at all in the tests. We will likely start mocking
the actual EC2 APIs in future, but this seems a good starting point.
Fix #425
2016-09-24 15:52:52 -04:00
Justin Santa Barbara
9d7a7fc6e8
Merge pull request #349 from justinsb/govet_fixes
...
govet fixes
2016-08-26 02:16:12 -04:00
Justin Santa Barbara
637a10be12
govet fixes
2016-08-20 01:09:19 -04:00
Justin Santa Barbara
a7ece228fb
Fix issue with deleting DNS records when multiple matching zones found
...
We were accidentally reusing the variable we were closing over, I
believe
2016-08-19 23:55:38 -04:00
Justin Santa Barbara
a3cfec6c24
Support changing the SSH public key
...
This requires that we include the OpenSSH fingerprint in the AWS key
name.
2016-08-11 12:00:52 -04:00
Justin Santa Barbara
e3e58f605e
support multiple zones in `kops import`
...
Seems to be less special-cased also.
Fix #216
2016-07-27 11:03:22 -04:00
Justin Santa Barbara
9e9855d1a4
Simpler upgrade procedure: reuse subnet
...
By reusing the subnet & security groups, we are able to skip the ELB
steps of the upgrade procedure. The new cluster also has the same
identity as the old cluster for security groups, so we don't need to
reconfigure ELB etc.
Fixes #175
Fixes #174
2016-07-22 11:47:12 -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
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
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
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
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
Justin Santa Barbara
274a8eff3c
Fetch ELB tags in chunks of 20
...
ELB DescribeTags has a limit of 20 ELBs / call. So we paginate the
DescribeLoadBalancers call with page size = 20 also.
2016-07-06 13:46:16 -04:00
Justin Santa Barbara
d427858477
Rename to kops
...
The upup tool is now called kops, and we have moved repos
2016-06-30 09:25:25 -04:00
Justin Santa Barbara
be4be57f3a
upup: workaround for secrets problem with upgrade
2016-06-28 13:08:41 -04:00
Justin Santa Barbara
e315564cfa
upup: More delete cleanup, use statestore by default
2016-06-28 11:47:19 -04:00
Justin Santa Barbara
ee8bdb907e
upup delete: don't always print dependencies
2016-06-27 15:00:51 -04:00
Justin Santa Barbara
87b7c71fcc
Remove spurious errors when deleting a cluster
2016-06-27 00:03:49 -04:00
Justin Santa Barbara
ee325435e6
Rationalize properties to the minimal set
2016-06-26 09:45:05 -04:00
Justin Santa Barbara
90d7fb87ad
upup: improved delete; create upup export and upup upgrade
2016-06-23 08:59:20 -04:00
Justin Santa Barbara
1e7159a923
upup: detach internet gateway if vpc is to be deleted
2016-06-17 09:36:27 -04:00
Justin Santa Barbara
3ede6c1f4a
upup: uncompress gzipped data in delete cluster
2016-06-17 09:36:12 -04:00
Justin Santa Barbara
72afa859a3
upup: delete cluster should take -name to be consistent
...
Still not entirely sure on cluster-id vs name, but name is consistent
2016-06-11 23:08:40 -04:00
Justin Santa Barbara
0263826163
upup: delete cluster should check status of ASG
...
Before deleting the ASG, we need to check it exists.
Issue #99
2016-06-11 21:33:56 -04:00
Justin Santa Barbara
e63426ce65
upup: delete cluster should eventually give up
...
If it isn't making progress, eventually we should bail out so that we
can use this in scripts. However, we don't need to be too aggressive,
because it is not good to leak resources, and a user will likely
Control-C us pretty fast when they see they're in a loop.
Issue #99
2016-06-11 21:33:56 -04:00
Justin Santa Barbara
9b32edfb81
upup: add experimental cluster rolling-update command
...
Little more than a hack right now, but a good place to start.
2016-06-10 11:36:57 -04:00
Justin Santa Barbara
6e7c4209de
upup: Simple tag fixes to avoid comparison failures
...
We populate the actual expected tags in-place now
2016-06-10 11:33:33 -04:00