Skip to content

Commit

Permalink
eksctl: upgrade 7 EKS clusters at 1.25 to 1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Nov 19, 2023
1 parent f036995 commit d16ac2a
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 15 deletions.
4 changes: 2 additions & 2 deletions eksctl/2i2c-aws-us.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ local daskNodes = [
metadata+: {
name: "2i2c-aws-us",
region: clusterRegion,
version: '1.25'
version: '1.27',
},
availabilityZones: masterAzs,
iam: {
Expand Down Expand Up @@ -85,7 +85,7 @@ local daskNodes = [
],
nodeGroups: [
ng {
name: 'core-a',
name: 'core-b',
availabilityZones: [nodeAz],
ssh: {
publicKeyPath: 'ssh-keys/2i2c-aws-us.key.pub'
Expand Down
14 changes: 11 additions & 3 deletions eksctl/gridsst.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,19 @@ local nodeAz = "us-west-2a";
// A `node.kubernetes.io/instance-type label is added, so pods
// can request a particular kind of node with a nodeSelector
local notebookNodes = [
# FIXME: Ensure gridsst wants minSize 1. Before an event it was set to 0,
# but as part of scaling down after the event it stayed at one.
#
# scale up: https://github.com/2i2c-org/infrastructure/pull/1836
# scale down: https://github.com/2i2c-org/infrastructure/pull/1844
#
{ instanceType: "m5.large", minSize: 1 },
{ instanceType: "m5.xlarge", minSize: 0 },
{ instanceType: "m5.2xlarge", minSize: 0 },
{ instanceType: "m5.8xlarge", minSize: 0 },
{ instanceType: "r5.xlarge", minSize: 0 },
{ instanceType: "r5.4xlarge", minSize: 0 },
{ instanceType: "r5.16xlarge", minSize: 0 },
{
instanceType: "g4dn.xlarge", minSize: 0,
tags+: {
Expand Down Expand Up @@ -58,7 +67,7 @@ local daskNodes = [
metadata+: {
name: "gridsst",
region: clusterRegion,
version: '1.25'
version: "1.27",
},
availabilityZones: masterAzs,
iam: {
Expand Down Expand Up @@ -86,7 +95,7 @@ local daskNodes = [
],
nodeGroups: [
ng {
name: 'core-a',
name: 'core-b',
availabilityZones: [nodeAz],
ssh: {
publicKeyPath: 'ssh-keys/gridsst.key.pub'
Expand Down Expand Up @@ -119,7 +128,6 @@ local daskNodes = [
"hub.jupyter.org_dedicated": "user:NoSchedule",
"hub.jupyter.org/dedicated": "user:NoSchedule"
},

} + n for n in notebookNodes
] + [
ng {
Expand Down
7 changes: 5 additions & 2 deletions eksctl/jupyter-meets-the-earth.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ local nodeAz = "us-west-2a";
// A `node.kubernetes.io/instance-type label is added, so pods
// can request a particular kind of node with a nodeSelector
local notebookNodes = [
{ instanceType: "r5.xlarge" },
{ instanceType: "r5.4xlarge" },
{ instanceType: "r5.16xlarge" },
{ instanceType: "m5.xlarge" },
{ instanceType: "m5.4xlarge" },
{ instanceType: "m5.16xlarge" },
Expand Down Expand Up @@ -78,7 +81,7 @@ local daskNodes = [
metadata+: {
name: "jupyter-meets-the-earth",
region: clusterRegion,
version: '1.25'
version: "1.27",
},
availabilityZones: masterAzs,
iam: {
Expand Down Expand Up @@ -106,7 +109,7 @@ local daskNodes = [
],
nodeGroups: [
ng {
name: 'core-a',
name: 'core-b',
availabilityZones: [nodeAz],
ssh: {
publicKeyPath: 'ssh-keys/jupyter-meets-the-earth.key.pub'
Expand Down
6 changes: 4 additions & 2 deletions eksctl/nasa-cryo.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ local nodeAz = "us-west-2a";
// A `node.kubernetes.io/instance-type label is added, so pods
// can request a particular kind of node with a nodeSelector
local notebookNodes = [
# FIXME: The r5.xlarge node group is still at version 1.25 and should be
# upgraded by deleting it and adding it back when possible.
{ instanceType: "r5.xlarge" },
{ instanceType: "r5.4xlarge" },
{ instanceType: "r5.16xlarge" },
Expand Down Expand Up @@ -60,7 +62,7 @@ local daskNodes = [
metadata+: {
name: "nasa-cryo",
region: clusterRegion,
version: '1.25'
version: "1.27",
},
availabilityZones: masterAzs,
iam: {
Expand Down Expand Up @@ -88,7 +90,7 @@ local daskNodes = [
],
nodeGroups: [
ng {
name: 'core-a',
name: 'core-b',
availabilityZones: [nodeAz],
ssh: {
publicKeyPath: 'ssh-keys/nasa-cryo.key.pub'
Expand Down
4 changes: 2 additions & 2 deletions eksctl/nasa-veda.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ local daskNodes = [
metadata+: {
name: "nasa-veda",
region: clusterRegion,
version: '1.25'
version: "1.27",
},
availabilityZones: masterAzs,
iam: {
Expand Down Expand Up @@ -79,7 +79,7 @@ local daskNodes = [
],
nodeGroups: [
ng {
name: 'core-b',
name: 'core-a',
availabilityZones: [nodeAz],
ssh: {
publicKeyPath: 'ssh-keys/nasa-veda.key.pub'
Expand Down
4 changes: 2 additions & 2 deletions eksctl/smithsonian.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ local daskNodes = [
metadata+: {
name: "smithsonian",
region: clusterRegion,
version: '1.25'
version: "1.27",
},
availabilityZones: masterAzs,
iam: {
Expand Down Expand Up @@ -84,7 +84,7 @@ local daskNodes = [
],
nodeGroups: [
ng {
name: 'core-a',
name: 'core-b',
availabilityZones: [nodeAz],
ssh: {
publicKeyPath: 'ssh-keys/smithsonian.key.pub'
Expand Down
7 changes: 5 additions & 2 deletions eksctl/victor.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ local notebookNodes = [
{ instanceType: "m5.xlarge" },
{ instanceType: "m5.2xlarge" },
{ instanceType: "m5.8xlarge" },
{ instanceType: "r5.xlarge" },
{ instanceType: "r5.4xlarge" },
{ instanceType: "r5.16xlarge" },
];

local daskNodes = [
Expand All @@ -52,7 +55,7 @@ local daskNodes = [
metadata+: {
name: "victor",
region: clusterRegion,
version: '1.25'
version: "1.27",
},
availabilityZones: masterAzs,
iam: {
Expand Down Expand Up @@ -80,7 +83,7 @@ local daskNodes = [
],
nodeGroups: [
ng {
name: 'core-b',
name: 'core-a',
availabilityZones: [nodeAz],
ssh: {
publicKeyPath: 'ssh-keys/victor.key.pub'
Expand Down

0 comments on commit d16ac2a

Please sign in to comment.