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
Kubernetes Prow Robot
68dcc7ad48
Merge pull request #15125 from justinsb/node_challenge
...
Perform challenge callbacks into a node
2023-05-07 09:13:16 -07:00
Justin SB
c67f895226
Perform challenge callbacks into a node
...
In order to verify that the caller is running on the specified node,
we source the expected IP address from the cloud, and require that the
node set up a simple challenge/response server to answer requests.
Because the challenge server runs on a port outside of the nodePort
range, this also makes it harder for pods to impersonate their host
nodes - though we do combine this with TPM and similar functionality
where it is available.
2023-05-06 08:03:21 -04: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
Jesse Haka
b3c134be06
make openstack kops-controller boostrap auth better
2023-01-19 10:07:11 +02:00
John Gardiner Myers
ac06f4af48
AWS: Use pagination for DescribeImages call
2022-12-22 17:03:03 -08:00
John Gardiner Myers
7abacb9b3b
Get default CheckExisting from Target
2022-12-20 12:00:37 -08:00
John Gardiner Myers
7c3e32369a
Refactor Context into separate cloudup and nodeup types
2022-12-17 17:42:46 -08:00
John Gardiner Myers
235aa61594
v1alpha3: move networking fields under networking
2022-12-02 19:19:59 -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
8c12d5b035
When using kops create, set the provided machinetype in the written IG spec
2022-09-28 12:16:03 +02:00
Ole Markus With
16c60a1a0c
Change mock region/subnet names to match mockCloud
2022-09-17 13:14:30 +02:00
Ole Markus With
fdb72f2c34
Add create cluster test that includes apiserver
2022-08-19 18:57:43 +02: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
Ole Markus With
ce2e877aeb
Remove bazel files from vendor
2022-04-12 13:29:03 +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
Kubernetes Prow Robot
e0d22ce2f7
Merge pull request #12973 from olemarkus/karpenter-npr
...
Various nill pointer fixes for karpenter
2021-12-19 16:19:24 -08:00
justinsb
8b3372ec76
Need to truncate gce serviceaccounts to max 30 characters
2021-12-17 12:57:14 -05:00
justinsb
2f1ce3fa14
Move string truncation to its own package
2021-12-17 12:57:14 -05: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