Skip to content

Commit

Permalink
Add extra tags to earthscope nodegroups requested by the community
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 committed Jun 19, 2024
1 parent 360fbb2 commit 1feabb6
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions eksctl/earthscope.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,27 @@ local nodeAz = "us-east-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: "r5.xlarge",
tags+: {
"earthscope:application:name": "geolab",
"earthscope:application:owner": "research-onramp-to-the-cloud"
},
},
{
instanceType: "r5.4xlarge",
tags+: {
"earthscope:application:name": "geolab",
"earthscope:application:owner": "research-onramp-to-the-cloud"
},
},
{
instanceType: "r5.16xlarge",
tags+: {
"earthscope:application:name": "geolab",
"earthscope:application:owner": "research-onramp-to-the-cloud"
},
},
];
local daskNodes = [
// Node definitions for dask worker nodes. Config here is merged
Expand All @@ -40,7 +58,13 @@ local daskNodes = [
// A not yet fully established policy is being developed about using a single
// node pool, see https://github.com/2i2c-org/infrastructure/issues/2687.
//
{ instancesDistribution+: { instanceTypes: ["r5.4xlarge"] }},
{
instancesDistribution+: { instanceTypes: ["r5.4xlarge"] },
tags+: {
"earthscope:application:name": "geolab",
"earthscope:application:owner": "research-onramp-to-the-cloud"
},
},
];


Expand Down Expand Up @@ -79,7 +103,7 @@ local daskNodes = [
nodeGroups: [
ng + {
namePrefix: 'core',
nameSuffix: 'a',
nameSuffix: 'b',
nameIncludeInstanceType: false,
availabilityZones: [nodeAz],
ssh: {
Expand All @@ -94,6 +118,8 @@ local daskNodes = [
},
tags+: {
"ManagedBy": "2i2c",
"earthscope:application:name": "geolab",
"earthscope:application:owner": "research-onramp-to-the-cloud"
},
},
] + [
Expand Down

0 comments on commit 1feabb6

Please sign in to comment.