Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/karpenter/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Given that karpenter itself is stateless, we set the `single_nodegroup` in order

#### Implementation Steps

1. Add the following to the infra.tfvars and nodes.tfvars:
1. Check if the karpenter_node_groups variable exists then update or add it to the following to the infra.tfvars and nodes.tfvars:

```hcl
# Consult the karpenter_node_groups variable for additional options.
Expand All @@ -95,7 +95,7 @@ karpenter_node_groups = {
}
```

2. Add the following to the cluster.tfvars:
2. Check if the karpenter variable exists then update or add it to the cluster.tfvars:

```hcl
# Consult the karpenter variable for additional options.
Expand Down Expand Up @@ -214,7 +214,8 @@ If you do not wish to use the script to create and apply the `ec2nodeclasses` an
3. Apply the Karpenter configurations:

```bash
./karpenter/karpenter-configs.sh apply
cd karpenter
./karpenter-configs.sh apply
```


Expand Down
1 change: 1 addition & 0 deletions examples/karpenter/karpenter-configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ check_directories

case "$1" in
"render")
render
echo "Templates rendered successfully!"
;;
"apply")
Expand Down
6 changes: 3 additions & 3 deletions examples/karpenter/templates/nodepools/compute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ spec:
dominodatalab.com/domino-node: "true"
dominodatalab.com/node-pool: default
spec:
limits:
cpu: 240
memory: 960Gi
# limits:
# cpu: 240
# memory: 960Gi
expireAfter: Never
nodeClassRef:
group: karpenter.k8s.aws
Expand Down
8 changes: 4 additions & 4 deletions examples/karpenter/templates/nodepools/gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ spec:
dominodatalab.com/node-pool: default-gpu
nvidia.com/gpu: "true"
spec:
limits:
cpu: 80
memory: 320Gi
nvidia.com/gpu: 10
# limits:
# cpu: 80
# memory: 320Gi
# nvidia.com/gpu: 10
expireAfter: Never
nodeClassRef:
group: karpenter.k8s.aws
Expand Down
8 changes: 4 additions & 4 deletions examples/karpenter/templates/nodepools/neuron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ spec:
dominodatalab.com/domino-node: "true"
dominodatalab.com/node-pool: trainium
spec:
limits:
aws.amazon.com/neuron: 10
cpu: 80
memory: 320Gi
# limits:
# aws.amazon.com/neuron: 10
# cpu: 80
# memory: 320Gi
expireAfter: Never
nodeClassRef:
group: karpenter.k8s.aws
Expand Down
6 changes: 3 additions & 3 deletions examples/karpenter/templates/nodepools/platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ spec:
dominodatalab.com/domino-node: "true"
dominodatalab.com/node-pool: platform
spec:
limits:
cpu: 160
memory: 640Gi
# limits:
# cpu: 160
# memory: 640Gi
expireAfter: Never
nodeClassRef:
group: karpenter.k8s.aws
Expand Down
Loading