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

Update AWS EKS terraform jinja templates to so we can use k8s 1.24 #2054

Closed
consideRatio opened this issue Jan 18, 2023 · 0 comments · Fixed by #2056
Closed

Update AWS EKS terraform jinja templates to so we can use k8s 1.24 #2054

consideRatio opened this issue Jan 18, 2023 · 0 comments · Fixed by #2056
Assignees
Labels
Engineering:SRE Cloud infrastructure operations and development.

Comments

@consideRatio
Copy link
Contributor

consideRatio commented Jan 18, 2023

I wrote this issue quickly as I think it should be blocking #2017. I can get it done myself I think.

Background

In #2044 deploying a AWS EKS hub I did some changes related to "EBS" so that we could deploy k8s 1.24 instead of be stuck at k8s 1.22.

I did not do those changes to a eksctl related jinja template though, so it needs to be re-done for future hubs we setup. So, I'm creating this issue to track the need to update the terraform template now that we can conclude that the changes I made did the trick.

Related

k8s version should be 1.24 (latest supported by eksctl atm I think)

kind: 'ClusterConfig',
metadata+: {
name: "<< cluster_name >>",
region: clusterRegion,
// Warning: version 1.23 introduces some breaking changes
// Checkout the docs before upgrading
// ref: https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi-migration-faq.html
version: '1.22'
},
availabilityZones: masterAzs,
iam: {
withOIDC: true,
},

We need the EBS addon + iam permissions for nodes

Without this, what happens is that PVC (request for storage) is not given storage, and pods that wants to mount this storages doesn't get scheduled.

addons: [
{
name: 'aws-ebs-csi-driver',
wellKnownPolicies: {
ebsCSIController: true,
},
},
],

iam+: {
withAddonPolicies+: {
ebs: true,
},
},

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

Successfully merging a pull request may close this issue.

1 participant