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

Document procedure and migrate existing AWS EKS based hubs from k8s 1.21+ to 1.24+ #2057

Closed
10 tasks done
consideRatio opened this issue Jan 18, 2023 · 9 comments
Closed
10 tasks done
Assignees
Labels
Engineering:SRE Cloud infrastructure operations and development.

Comments

@consideRatio
Copy link
Contributor

consideRatio commented Jan 18, 2023

Amazon EKS has deprecated Kubernetes version 1.22 and this version will no longer be supported on June 4, 2023. Starting that day, you will no longer be able to create new 1.22 clusters and all EKS clusters running Kubernetes version 1.22 will be updated to the latest available platform version of Kubernetes version 1.23.

This is the current status of AWS EKS clusters.

Action points

Related

Original outdated issue

Click to expand

Such migration will require some additional steps related to #2054 and #2056.

In practice, I think it involves updating the .jsonnet templates of eksctl cluster configuration files that we have in the eksctl folder to match how they would look if we re-generated them from the jinja2 template (template.jsonnet) of these .jsonnet template files.

It also involves manually adding the EKSCTL addon with a eksctl command, and recreating the node pools, etc. This will cause disruption.

I've outlined the steps I took when I updated the JMTE hub in the eksctl cluster config file part of the JMTE PR branch. These may not be the exact steps we ought to take, but help guide the steps we should take.


Update: I think for the ebs driver stuff, I think we need to add the ebs driver addon and not add iam stuff to the nodeGroups. If I'm wrong, we may need to revert 8fe4009 from #2056.

@consideRatio

This comment was marked as outdated.

@consideRatio consideRatio changed the title Migrate existing AWS EKS based hubs from k8s 1.22 to 1.24 Migrate existing AWS EKS based hubs from k8s 1.19+ to 1.24 Jan 23, 2023
@consideRatio

This comment was marked as resolved.

@consideRatio

This comment was marked as outdated.

@damianavila

This comment was marked as resolved.

@consideRatio consideRatio changed the title Migrate existing AWS EKS based hubs from k8s 1.19+ to 1.24 Migrate existing AWS EKS based hubs from k8s 1.21+ to 1.24 Feb 1, 2023
@yuvipanda
Copy link
Member

Re: GKE, I specifically put us in 'unspecified' because if we are in a channel, not just the control plane but all the nodes would restart at an arbitrary time that GCP chooses. However, in practice since we haven't been upgrading them ourselves, they've just been upgrading at a much slower level. Figuring out a way here to minimize disruption would be great. I think using GKE release channels could redo entire large dask clusters or notebook nodes at inopportune times, so I think keeping the upgrade process manual but actually doing upgrades is probably the way to go

@consideRatio
Copy link
Contributor Author

@yuvipanda maybe it could be communicated with users that maintenance will be done automatically in pre-agreed time-windows, which we may need anyhow if we do the upgrade ourselves. Maybe there is trouble for terraform if we let GKE do it instead of ourselves though? I'm not sure.

But let's table this deliberation for another issue and let this issue focus on upgrading EKS clusters manually. I think it would be good to upgrade the GKE clusters manually at least once as well to gain experience and such with doing it manually to start so I've opened #2157 about it.

@consideRatio
Copy link
Contributor Author

  • All EKS clusters now have the EBS addon
  • Upgrade docs PR in docs: add an aws k8s cluster upgrade guide #2142
  • I conclude uwhackweeks was still at k8s 1.21, not k8s 1.22 as I previously had summarized. This is a cluster that may be fully deleted soon though so let's ignore it for a while.

@consideRatio consideRatio changed the title Migrate existing AWS EKS based hubs from k8s 1.21+ to 1.24 Migrate existing AWS EKS based hubs from k8s 1.21+ to 1.24+ Feb 22, 2023
@consideRatio consideRatio removed their assignment Mar 2, 2023
@consideRatio
Copy link
Contributor Author

consideRatio commented Mar 2, 2023

I removed myself from being assigned to this. There is now documentation on how to make the upgrade, so I think it would be good if I'm not doing all the AWS upgrades.

@damianavila damianavila moved this to Todo 👍 in Sprint Board Mar 2, 2023
@damianavila damianavila moved this from Todo 👍 to In Progress ⚡ in Sprint Board Mar 2, 2023
@consideRatio consideRatio mentioned this issue Mar 2, 2023
3 tasks
@consideRatio
Copy link
Contributor Author

Its done!!! All EKS k8s clusters are v1.24 or v1.25 now!

@consideRatio consideRatio changed the title Migrate existing AWS EKS based hubs from k8s 1.21+ to 1.24+ Document procedure and migrate existing AWS EKS based hubs from k8s 1.21+ to 1.24+ Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering:SRE Cloud infrastructure operations and development.
Projects
No open projects
Archived in project
Development

No branches or pull requests

3 participants