Lucas Telles
08dbad9a2b
fix: implement LaunchTemplate with paginator on buildKarpenterGroup
2023-08-15 22:56:36 -03:00
Ciprian Hacman
bd98fe19a4
Pass error when failing to get SSM parameter
2023-08-12 07:15:22 +03:00
Fernando
1e3214539c
Add a mutex lock to 'awsCloudInstances' map ( #15415 )
...
* Add a mutex lock to 'awsCloudInstances' map
We're using terraform kops provider to manage our AWS kops clusters.
Time to time we hit a race condition with the stack trace points to
`awsup.NewAWSCloud` function, when writing to a concurrent map, that
maintains a map between regions and `AWSCloud` objects.
This PR changes this to variable so it belongs to a new type, that wraps
the map into its own struct where access is controlled by a mutex lock.
Let me know if that makes sense to you all.
Thanks for building this awesome project!
* lock on reads as well
* cosmetic change, removing empty line
2023-05-19 07:48:31 -07:00
Jesse Haka
3aca8fee4f
use KOPS_AWS_ROLE_ARN
2023-05-09 16:49:55 +03:00
Jesse Haka
f31d8d5aa8
make it possible to use assume role
2023-05-09 16:49:53 +03:00
Lucas Telles
39639f9a32
fix typo
2023-04-27 11:53:52 -03:00
Lucas Telles
0bacc2b6da
Create func to reset awsCloudInstances
2023-04-27 11:52:49 -03:00
Lucas Telles
97964a12fb
Make var awsCloudInstances public and create func to initialize it
2023-04-13 15:52:50 -03:00
justinsb
9964bb8d01
Log detailed reasons when we can't match an instance type
2023-03-29 10:55:43 -04:00
John Gardiner Myers
ac06f4af48
AWS: Use pagination for DescribeImages call
2022-12-22 17:03:03 -08:00
John Gardiner Myers
19b1591cc4
aws: remove obsolete workaround code
2022-11-27 13:18:44 -08:00
John Gardiner Myers
87925bf0ca
Remove CloudFormation support
2022-11-22 21:02:50 -08:00
John Gardiner Myers
d39ba74bd7
Change the control-plane IG role to "ControlPlane" in v1alpha3 API
2022-11-22 17:05:29 -08:00
John Gardiner Myers
5fca16aa30
v1alpha3: Move API-related settings under API
2022-11-19 10:27:12 -08:00
Ciprian Hacman
d29812fc6e
Replace fi.Bool/Float*/Int*/StringValue() with fi.ValueOf
2022-11-19 03:45:23 +02:00
Ciprian Hacman
211c82d8ad
aws: Fix SIGSEGV when using instance selector
2022-11-17 12:22:22 +02:00
Justin SB
c6e9a75490
Clearer error messages around instance types not found
...
Issue #14481
Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2022-11-14 11:37:58 -05:00
Ciprian Hacman
edb44610f7
aws: Create cluster without DNS or Gossip
2022-11-02 12:54:27 +02:00
John Gardiner Myers
eb69f8ac60
Remove well known account aliases for unsupported distros
2022-11-01 16:20:27 -07:00
John Gardiner Myers
63111f662a
ipv6: NPE fixes for IPv6-only instances
2022-10-28 13:43:54 -07:00
John Gardiner Myers
71246dbd9c
Pick appropriate default image types for ARM images
2022-10-27 11:07:17 -07:00
Bronson Mirafuentes
b87fbc3853
add option to query AMIs IDs from SSM
2022-10-19 11:39:39 -07:00
Ole Markus With
cb37d0faf1
Set higher verbosity on some karpenter logging
2022-08-01 21:06:28 +02:00
Ciprian Hacman
10f10a00c4
Skip deregistering the instance during rolling update for Spotinst
2022-07-12 10:13:46 +03:00
Ole Markus With
15ba6610ab
Depend on external cloud providers rather than cloud-providers-legacy
2022-06-16 11:08:36 +02:00
Bronson Mirafuentes
dd46a82065
add additional log message
2022-03-15 11:11:59 -07:00
Bronson Mirafuentes
4fc4057935
wait for all targetGroups to drain
2022-03-15 10:44:47 -07:00
justinsb
fc6d9aa656
Replace deprecated aws.BackgroundContext with context.Background
...
aws.BackgroundContext was intended for go 1.6 and earlier.
2022-01-30 13:19:06 -05:00
Jesse Haka
117b98decb
implement aws deregister
2021-12-31 13:19:50 +02:00
Jesse Haka
b88d110f58
Drain OpenStack loadbalancers
2021-12-31 13:16:02 +02:00
Bronson Mirafuentes
fa956e3909
add instance connection draining for NLBs
2021-12-20 10:08:05 -08:00
Ole Markus With
fab77b45ee
Do not try to deregister karpenter nodes from ELBs
2021-12-15 09:56:33 +01:00
Kubernetes Prow Robot
424452a855
Merge pull request #12906 from olemarkus/karpenter
...
Support Karpenter
2021-12-14 13:58:50 -08:00
Ole Markus With
b785965c50
Rename InstanceManager to Manager
2021-12-13 09:14:24 +01:00
Bronson Mirafuentes
5883d01a6e
fix formatting
2021-12-12 20:46:32 -08:00
Bronson Mirafuentes
0ccb8b166c
use describeInstanceHealth api
2021-12-12 20:41:53 -08:00
Bronson Mirafuentes
6e93352459
use describeInstanceHealth api
2021-12-12 20:41:51 -08:00
Bronson Mirafuentes
e27d726fe5
improve clarifying comments
2021-12-12 20:41:13 -08:00
Bronson Mirafuentes
4c35cf2317
switch sleep time to 5s
2021-12-12 20:41:13 -08:00
Bronson Mirafuentes
b487016f80
get loadbalancer details from asg
2021-12-12 20:41:13 -08:00
Bronson Mirafuentes
c55d34af5f
wait for instances to drain from classic LB
2021-12-12 20:41:13 -08:00
Ole Markus With
d4ec7cc7e0
Make kops get instances work with karpenter
2021-12-12 19:33:41 +01:00
Kubernetes Prow Robot
b28cc53252
Merge pull request #12629 from rifelpet/iam-profile-tag
...
Ignore InvalidAction errors when tagging IAM Instance Profiles
2021-12-10 16:40:33 -08:00
Kubernetes Prow Robot
f7e66049d6
Merge pull request #12862 from johngmyers/instanceid-nodename
...
Use instance ID as node name when AWS CCM supports it
2021-12-05 14:58:32 -08:00
Peter Rifel
fd2370c8e8
Ignore InvalidAction errors when tagging IAM Instance Profiles
2021-12-02 08:12:16 -06:00
Ciprian Hacman
ea7df00719
Run hack/update-gofmt.sh
2021-12-01 22:39:50 +02:00
John Gardiner Myers
73f164e229
Use instance ID as node name when AWS CCM supports it
2021-11-30 17:54:54 -08:00
justinsb
4dc2c062fd
Support GCE TPM verification
2021-10-06 08:40:20 -04:00
Jesse Haka
0cfcd418e7
check does iface has associations
2021-08-31 14:27:55 +03:00
Ole Markus With
ad16042a1f
Add IPs to kubelet server cert
...
Since AWS does not resolve instance hostnames to ipv6, ipv6-only pods that talk to kubelet API has to use node IP, not hostname. Thus we need to add IPs to kubelet server cert.
2021-08-26 20:54:02 +02:00