Commit Graph

244 Commits

Author SHA1 Message Date
Ole Markus With 0ec71686b9 Refactor cloudinstancegroupmember in a more independent cloud instance representation
Apply suggestions from code review

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2020-08-30 21:37:03 +02:00
Ole Markus With ff6c04938d Add kops delete instance command
Add support for deleting instance by k8s node name

Add yes flag
2020-08-28 08:43:30 +02:00
Peter Rifel 4d9f0128a3
Upgrade to klog2
This splits up the kubernetes 1.19 PR to make it easier to keep up to date until we get it sorted out.
2020-08-16 20:56:48 -05:00
John Gardiner Myers 1a253dc574 Send the STS queries to the local region 2020-08-15 10:30:22 -07:00
John Gardiner Myers 5dcc95178f Verify the ARN's partition 2020-08-15 10:30:22 -07:00
John Gardiner Myers 9e99f76a6e Address review comments 2020-08-15 10:30:21 -07:00
John Gardiner Myers 9cfa169740 Add server code to kops-controller 2020-08-15 10:30:15 -07:00
John Gardiner Myers cfa262a81a Authenticate from nodeup to kops-controller 2020-08-15 09:50:08 -07:00
Ciprian Hacman 5a9cc3d216 Fix int to string conversions 2020-07-26 09:09:52 +03:00
Peter Rifel aadff94bc8
Use EC2's tag-on-create for various resources
This updates DHCP Options, EBS Volumes, InternetGateways, SecurityGroups, Subnets, and VPCs to specify tags at creation-time rather than calling ec2.CreateTags after the resource was created.

I didn't update NATGateway because it adds additional legacy tags that should be evaluated for whether or not they're needed.
I also didn't update SSHKey because it currently isn't tagged at all but it would be good for us to tag down the road.
2020-07-08 15:26:50 -05:00
Peter Rifel d923354d4f
Address review comments 2020-06-09 17:07:44 -05:00
Peter Rifel 95b6a3f837
Address feedback 2020-06-09 10:58:24 -05:00
Peter Rifel bc074e857c
Use ec2.DescribeInstanceTypes in awsup.GetMachineTypeInfo
This requires passing a cloud object in additional places throughout the validation package and originating mostly from cmd/kops

This means that some kops commands now require valid cloud provider credentials, but I don't think this is an issue because the vast majority of use-cases already require the same cloud provider credentials in order to interact with the state store.
2020-06-09 10:13:01 -05:00
Peter Rifel 64ef8c2d42
Add DescribeInstanceTypes to AWSCloud 2020-06-09 10:13:00 -05:00
liranp 23c0cdab36
feat(spotinst): new hybrid mode 2020-05-23 21:39:04 +03:00
John Gardiner Myers 154833e652 Fail cluster validation if too few nodes for ig's target size 2020-05-12 22:28:26 -07:00
Peter Rifel 1b29afb45d Switch to using ec2.DescribeInstanceTypes for building the MachineType list 2020-04-05 21:16:49 -05:00
Peter Rifel 4d24c4d1e6 Remove unused ECU and Burstable fields from AWSMachineTypeInfo
I tracked these fields back to a 2016 commit that added the entire struct but they still werent used even back then.
2020-04-03 22:19:05 -05:00
Peter Rifel a999b3ea61 fix OWNERS labels format
These need to be lists
2020-03-10 22:47:50 -05:00
Peter Rifel 237a125f2c Add labels to OWNERS files
This will automatically label PRs that touch these directories.

This makes it easier to query GitHub for PRs that affect certain areas of the code.

I mostly used existing labels but created some new ones as well.
2020-03-10 08:35:58 -05:00
John Gardiner Myers 1b7c5139e0 Merge branch 'master' into surge 2020-03-03 17:53:18 -08:00
John Gardiner Myers 9f9b98e9f4 Merge branch 'master' into surge 2020-02-17 09:17:26 -08:00
Hanfei Shen 5ff9b2b91e Treat nil of LaunchTemplateSpecification.Version as $Default [0]
[0] https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
2020-02-15 11:38:11 +08:00
Mike Splain 685ca73255 Fix Machine types vcpus 2020-02-10 20:49:09 -05:00
Ciprian Hacman 5f930683ed Update support for Amazon Linux 2 2020-01-28 08:13:45 +02:00
John Gardiner Myers cc5b6f4b8f Add fi.Cloud.DetachInstance() 2020-01-27 20:15:11 -08:00
John Gardiner Myers 640f5f5b74 Terminate AWS instances through EC2 instead of Autoscaling 2020-01-27 20:15:10 -08:00
Ciprian Hacman 7a42cf42cd Set the default instance type to t3.medium for AWS 2020-01-18 08:58:05 +02:00
tanjunchen f01e8e4cdd upup/pkg/fi/cloudup/ staticcheck 2019-12-31 16:15:28 +08:00
Justin SB 802b1add43
Refactor: Add Region() method to fi.Cloud
This enables us to simply the apply logic.
2019-12-22 13:40:38 -05:00
tanjunchen d5fef40863 upup/pkg/fi/cloudup/ upup/pkg/fi/nodeup/ hack/.staticcheck_failures : simplify code and remove code 2019-12-18 09:47:58 +08:00
mikesplain 77f9cb155e
Add inf1 isntances 2019-12-16 09:20:14 -05:00
Ryan Bonham 44888cec22
Fix typo 2019-12-04 10:06:04 -05:00
Ryan Bonham 9a127347f2
Fix Handling of LaunchTemplate Versions for MixedInstancePolicy 2019-12-03 13:26:57 -05:00
mikesplain e897124c50
Add new instance types 2019-11-18 09:44:52 -08:00
Kubernetes Prow Robot e86ccc1ea9
Merge pull request #7868 from diversario/fix-etcdclustername-assignment
awsup: fix shadowed var when looking for etcd cluster name
2019-11-05 08:58:38 -08:00
John Gardiner Myers 29d4471c06 Fix extraneous whitespace in warning message 2019-11-02 21:10:01 -07:00
Ilya Shaisultanov 5cc69202fb awsup: fix shadowed var when looking for etcd cluster name 2019-11-02 19:35:44 -07:00
tanjunchen 119e36be29 simplfy code 2019-10-04 22:19:08 +08:00
mikesplain c420249120 Add g4dn 2019-09-23 13:23:03 -04:00
Kubernetes Prow Robot 082eda37f0
Merge pull request #7445 from hippolin/fix-needsupdate-state-in-rolling-update
Fixed "NeedsUpdate" status of nodes in mixedinstancegroups after rolling update
2019-09-20 07:12:59 -07:00
mikesplain 9e55b8230a Update copyright notices
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Hippo 8be5e0f872
Add print error 2019-09-09 14:32:54 +08:00
mikesplain 2c95884c25 Update and add back some sizes 2019-09-03 15:15:35 -04:00
Justin SB 17186ff7ba
Generated vendor & bazel from `make gomod`
Automatically generated vendor & BUILD.bazel files
2019-08-25 16:00:41 -04:00
Justin SB b1f8f84306
Code changes for 1.15 2019-08-25 16:00:39 -04:00
Hippo 9326ff006e
Fix that the node of the instance group of the mixed instance type is in the "NeedsUpdate" state even after the rolling update 2019-08-22 09:56:52 +08:00
mikesplain a2265bcf44 Fix m5a.8xlarge and i3en.metal has been removed 2019-07-22 08:54:34 -04:00
Christophe GASMI 2cc94d53ab update instances list with make update-machine-types 2019-06-28 01:29:14 +02:00
Kubernetes Prow Robot a8e7109129
Merge pull request #7040 from spotinst/feature-spotinst-ocean
Spotinst: New instance group type: Ocean
2019-06-20 12:24:10 -07:00