Skip to content

Commit

Permalink
Add Workshop (on-demand) Profile Option
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Sep 9, 2024
1 parent 565313c commit f4f7c74
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions addons.tf
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ module "eks_blueprints_addons" {
name: cpu-on-demand
clusterName: ${module.eks.cluster_name}
instanceSizes: ["xlarge", "2xlarge", "4xlarge", "8xlarge", "16xlarge", "24xlarge"]
instanceFamilies: ["c5", "m5", "r5"]
karpenterRole: ${split("/", module.eks_blueprints_addons.karpenter.node_iam_role_arn)[1]}
capacityTypes: ["on-demand"]
EOT
Expand Down
2 changes: 1 addition & 1 deletion envs/dandi-staging/managed-jupyterhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ singleuser:
display_name: Image
- default: true
description: 6 CPU / 16 GB up to 12C/32G. May take up to 15 mins to start.
display_name: Base On Demand
display_name: MIT Workshop (tmp)
kubespawner_override:
cpu_guarantee: 6
cpu_limit: 12
Expand Down
2 changes: 1 addition & 1 deletion envs/shared/jupyterhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ singleuser:
mem_guarantee: 0.5G
node_selector:
NodePool: default
- display_name: "Base On Demand"
- display_name: "MIT Workshop (tmp)"
description: "6 CPU / 16 GB up to 12C/32G. May take up to 15 mins to start."
profile_options:
image:
Expand Down
6 changes: 4 additions & 2 deletions helm/karpenter-resources/templates/node-pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ spec:
values: ["amd64"]
- key: "karpenter.sh/capacity-type"
operator: In
values:
- {{ .Values.capacityTypes }}
{{- with .Values.capacityTypes }}
values:
{{- toYaml . | nindent 12 }}
{{- end }}
disruption:
consolidationPolicy: WhenEmpty
consolidateAfter: 30s
Expand Down

0 comments on commit f4f7c74

Please sign in to comment.