Skip to content

Commit be1e4ab

Browse files
author
Max Twardowski
committed
update examples
1 parent b09391e commit be1e4ab

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

examples/eks/eks_cluster_gitops/castai.tf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,27 @@ resource "castai_node_template" "default_by_castai" {
9191

9292
}
9393

94+
resource "castai_node_template" "example_capacity_reservation" {
95+
cluster_id = castai_eks_cluster.my_castai_cluster.id
96+
97+
name = "example_capacity_reservation"
98+
is_default = false
99+
is_enabled = true
100+
configuration_id = castai_node_configuration.default.id
101+
should_taint = false
102+
103+
constraints {
104+
on_demand = true
105+
106+
aws {
107+
capacity_reservations {
108+
id = "cr-12345678901234567"
109+
type = "ON_DEMAND_CAPACITY_RESERVATION"
110+
}
111+
}
112+
}
113+
}
114+
94115
resource "castai_node_template" "example_spot_template" {
95116
cluster_id = castai_eks_cluster.my_castai_cluster.id
96117

0 commit comments

Comments
 (0)