Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sarvesh-cast committed Aug 18, 2024
1 parent c51cdb0 commit b3f8060
Showing 1 changed file with 17 additions and 29 deletions.
46 changes: 17 additions & 29 deletions examples/resources/castai_node_template/resource.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
resource "castai_node_template" "this" {
cluster_id = castai_eks_cluster.castai_cluster.id
resource "castai_node_template" "default" {
cluster_id = castai_eks_cluster.test.id

name = "my-node-template"
is_default = false
is_default = true
is_enabled = true
configuration_id = "config-id-123"
configuration_id = castai_node_configuration.default.id
should_taint = true

custom_labels = {
Expand All @@ -18,47 +18,35 @@ resource "castai_node_template" "this" {
}

constraints {
compute_optimized = true
storage_optimized = false
compute_optimized_state = "on"
storage_optimized_state = "off"
is_gpu_only = false
spot = true
on_demand = false
on_demand = true
spot = false
use_spot_fallbacks = true
fallback_restore_rate_seconds = 300
enable_spot_diversity = true
spot_diversity_price_increase_limit_percent = 20
spot_interruption_predictions_enabled = true
spot_interruption_predictions_type = "history"
spot_interruption_predictions_type = "aws-rebalance-recommendations"
compute_optimized_state = "disabled"
storage_optimized_state = "disabled"
is_gpu_only = false
min_cpu = 2
max_cpu = 8
min_memory = 4096
max_memory = 16384
architectures = ["amd64"]
azs = ["us-east-1a", "us-east-1b"]
burstable_instances = false
customer_specific = false
azs = ["us-east-2a", "us-east-2b"]
burstable_instances = "disabled"
customer_specific = "enabled"

instance_families {
include = ["m5", "m6i"]
exclude = ["m4"]
}

gpu {
manufacturers = ["nvidia"]
include_names = ["p2"]
exclude_names = ["p3"]
min_count = 1
max_count = 4
include = ["c5"]
}

custom_priority {
instance_families = ["m5", "m6i"]
spot = true
on_demand = false
instance_families = ["c5"]
spot = false
on_demand = true
}
}

depends_on = [castai_autoscaler.castai_autoscaler_policies]
}

0 comments on commit b3f8060

Please sign in to comment.