Skip to content

Commit

Permalink
fix list initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktoras Makauskas committed Feb 22, 2024
1 parent c14f1a7 commit f6d5b6f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 30 deletions.
22 changes: 12 additions & 10 deletions examples/aks/aks_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,19 @@ module "castai-aks-cluster" {
# Optional: define custom priority for instances selection.
#
# 1. Prioritize Standard_Fs spot instances above all else, regardless of price.
custom_priority = {
instance_families = ["Standard_FS"]
spot = true
}
# 2. If Standard_FS is not available, try Standard_FXMDS family.
custom_priority = {
instance_families = ["Standard_FXMDS"]
spot = true
}
# 3. instances not matching any of custom priority groups will be tried after
# nothing matches from priority groups.
custom_priority = [
{
instance_families = ["Standard_FS"]
spot = true
},
{
instance_families = ["Standard_FXMDS"]
spot = true
}
# 3. instances not matching any of custom priority groups will be tried after
# nothing matches from priority groups.
]
}
}
}
Expand Down
22 changes: 12 additions & 10 deletions examples/eks/eks_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,19 @@ module "castai-eks-cluster" {
# Optional: define custom priority for instances selection.
#
# 1. Prioritize C5a and C5ad spot instances above all else, regardless of price.
custom_priority = {
instance_families = ["c5a", "c5ad"]
spot = true
}
# 2. If C5a is not available, try C6a family.
custom_priority = {
instance_families = ["c6a"]
spot = true
}
# 3. instances not matching any of custom priority groups will be tried after
# nothing matches from priority groups.
custom_priority = [
{
instance_families = ["c5a", "c5ad"]
spot = true
},
{
instance_families = ["c6a"]
spot = true
}
# 3. instances not matching any of custom priority groups will be tried after
# nothing matches from priority groups.
]
}
}
}
Expand Down
22 changes: 12 additions & 10 deletions examples/gke/gke_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,19 @@ module "castai-gke-cluster" {
# Optional: define custom priority for instances selection.
#
# 1. Prioritize C2D and C2 spot instances above all else, regardless of price.
custom_priority = {
instance_families = ["c2d", "c2"]
spot = true
}
# 2. If C2D and C2 is not available, try C3D family.
custom_priority = {
instance_families = ["c3d"]
spot = true
}
# 3. instances not matching any of custom priority groups will be tried after
# nothing matches from priority groups.
custom_priority = [
{
instance_families = ["c2d", "c2"]
spot = true
},
custom_priority = {
instance_families = ["c3d"]
spot = true
}
# 3. instances not matching any of custom priority groups will be tried after
# nothing matches from priority groups.
]
}

custom_instances_enabled = true
Expand Down

0 comments on commit f6d5b6f

Please sign in to comment.