Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable new EKS regions & versions #8701

Closed
gaktive opened this issue Apr 19, 2023 · 20 comments
Closed

Enable new EKS regions & versions #8701

gaktive opened this issue Apr 19, 2023 · 20 comments
Assignees
Labels
Milestone

Comments

@gaktive
Copy link
Member

gaktive commented Apr 19, 2023

From @furkatgofurov7, we need to update the hardcoded EKS supported k8s versions list with newer versions based on https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html

Since tech debt #7295 is still open, we need to manually update this. PRs provided already.

rancher/ui#5009
rancher/ui#5008

@gaktive
Copy link
Member Author

gaktive commented Apr 19, 2023

Similar (and already approved): rancher/ui#5006

@pgonin & @kkaempf let us know if there are more.

@pgonin
Copy link

pgonin commented Apr 20, 2023

@gaktive @furkatgofurov7 while we're on the topic we could add the missing following regions:
ap-southeast-4
ap-south-2
me-central-1
eu-central-2
eu-south-2

Though I have not checked if EKS is available in all those regions

@furkatgofurov7
Copy link

@pgonin I'll check the list for EKS and send a PR if I find any of the regions are missing

@gaktive
Copy link
Member Author

gaktive commented Apr 24, 2023

We'd need to do #8721 first since adding unsupported versions requires a fix.

@gaktive gaktive changed the title Enable new EKS regions Enable new EKS regions & versions Apr 26, 2023
@gaktive gaktive added size/0.5 Size Estimate 0.5 [zube]: Groomed and removed [zube]: Backlog labels Apr 26, 2023
@Sahota1225 Sahota1225 added the team/highlander Highlander label May 30, 2023
@cpinjani
Copy link

Validated the fixes from below PRs on build > v2.7.5-rc5
rancher/ui#5009
rancher/ui#5008

Able to provision EKS cluster with version 1.25, 1.26 and in region ap-northeast-3:

image

@furkatgofurov7
Copy link

@gaktive @furkatgofurov7 while we're on the topic we could add the missing following regions: ap-southeast-4 ap-south-2 me-central-1 eu-central-2 eu-south-2

Though I have not checked if EKS is available in all those regions

@pgonin here is the pr: rancher/ui#5037

@cpinjani
Copy link

Test Result - ❌
Validated changes from rancher/ui#5037 on build

v2.7-head - 9a33c24

There is mismatch between, supported AWS region list for Cloud credentials <-> AWS region list for provisioning EKS clusters. Therefore provisioning EKS cluster in newly added regions fails eg. eu-south-2 (since eu-south-2 is not present in AWS cloud credentials regions list)

To reproduce

  • Add AWS cloud credentials in supported region
  • Provision EKS cluster in new region eg. eu-south2

image

@richard-cox
Copy link
Member

richard-cox commented Jun 21, 2023

Blocked on rancher/machine#209 (though we could get the PR ready to go).

From lib/shared/addon/utils/amazon.js REGIONS should match collection updated in rancher/machine#209. In theory, as the other collection EKS_REGIONS has updated, that's all that needs to happen

@rmweir
Copy link

rmweir commented Jun 22, 2023

@richard-cox that I was late to review that PR and it is stale now. Once its updated anyone can review including you, see rancher/machine#209 (comment). Also, KEv2 doesn't use rancher-machine. You shouldn't need that PR for it.

@richard-cox
Copy link
Member

I think there's a knowledge gap UI side how this part works.

We have two helper collections which contain amazon regions

The questions are...

  • Should the regions list that supports node drivers track the collection in Add new regions and corresponding AMIs machine#209?
    • If so we should get that PR in to support the new changes UI side
    • UI side we can't really test / approve that PR
  • Can the same regions list be used for both cluster and node driver worlds?
    • If so UI side we just keep both our lists aligned

@rmweir
Copy link

rmweir commented Jun 22, 2023

We use rancher-machine to generate the cloud credentials I believe but otherwise EKS should not use or depend on rancher-driver at all. EKS also does not use any driver itself. It uses the eks-operator.

@richard-cox
Copy link
Member

Ok, so anything AWS credentials related needs to have the same regions list as https://github.com/rancher/machine/blob/master/drivers/amazonec2/region.go#L13?

In the node driver world, used to create ec2 nodes, does the region list have an restrictions other than it needs to appear in https://cloud-images.ubuntu.com/locator/ec2/?

Assuming there are no restrictions other than ami list on ec2 nodes

@rmweir
Copy link

rmweir commented Jun 22, 2023

Not necessarily. That is used for provisoning non EKS clusters. EKS regions are usually a smaller subset and no ami info is needed because EKS does that automatically. The AMI info is specifically for when we create ec2 instances which we do not do ourselves for EKS.

As for EC2, I don't think so?

I don't think that's needed for creds. Creds uses rancher-machine to understand what the shape of the credential will be, AMI/region info is irrelevant here. I don't think it does much else with it rancher-machine for creds.

@richard-cox
Copy link
Member

richard-cox commented Jun 22, 2023

/forwardport v2.7.next3

@rancherbot
Copy link
Collaborator

@richard-cox, Target is empty in comment for issue 8701 in repository dashboard, skipping comment

@gaktive
Copy link
Member Author

gaktive commented Jun 22, 2023

@richard-cox looks like 2.7.5 is merged so this ticket is now for the forward port?

@richard-cox
Copy link
Member

@gaktive this one is for 2.7.5, #9181 is for 2.7q3 / master

@richard-cox
Copy link
Member

until rancher/rancher#41914 merges, in order to test this, in Settings --> Settings

... and refresh

@gaktive
Copy link
Member Author

gaktive commented Jun 26, 2023

PR 41914 has been merged.

@cpinjani
Copy link

cpinjani commented Jun 27, 2023

Validated the fixes from below merged PRs on build > v2.7-3aedc24d3087c3bbc4deb4d8c5ae40f55945e913-head
rancher/ui#5009
rancher/ui#5008
rancher/ui#5037
rancher/ui#5039

New regions added: ap-northeast-3, ap-southeast-4, ap-south-2, me-central-1, eu-central-2, eu-south-2
New versions added: 1.25, 1.26

Results

  1. The new EKS regions and versions are visible and selectable on create EKS cluster page, while adding new cloud credentials and EKS regions list
  2. Able to create EKS cluster in all new regions and new versions

CPT2306271919-1903x1014 (1)

@zube zube bot removed the [zube]: Done label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants