File tree Expand file tree Collapse file tree 3 files changed +26
-6
lines changed
Expand file tree Collapse file tree 3 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,13 @@ module "castai_gke_cluster" {
217217 }
218218 }
219219
220+ anomaly_detection = {
221+ cpu_pressure = {
222+ cpu_stall_threshold_percentage = 50
223+ min_pressured_pod_percentage = 30
224+ }
225+ }
226+
220227 excluded_containers = ["container-1", "container-2"]
221228 }
222229 }
@@ -503,7 +510,7 @@ Usage examples are located in [terraform provider repo](https://github.com/casta
503510| Name | Version |
504511|------|---------|
505512| <a name="requirement_terraform"></a> [terraform](#requirement\_ terraform) | >= 0.13 |
506- | <a name="requirement_castai"></a> [castai](#requirement\_ castai) | >= 8.24 .0 |
513+ | <a name="requirement_castai"></a> [castai](#requirement\_ castai) | >= 8.26 .0 |
507514| <a name="requirement_google"></a> [google](#requirement\_ google) | >= 2.49 |
508515| <a name="requirement_helm"></a> [helm](#requirement\_ helm) | >= 3.0.0 |
509516| <a name="requirement_null"></a> [null](#requirement\_ null) | >= 3.0 |
@@ -512,10 +519,10 @@ Usage examples are located in [terraform provider repo](https://github.com/casta
512519
513520| Name | Version |
514521|------|---------|
515- | <a name="provider_castai"></a> [castai](#provider\_ castai) | 8.24 .0 |
516- | <a name="provider_google"></a> [google](#provider\_ google) | 7.25.0 |
517- | <a name="provider_helm"></a> [helm](#provider\_ helm) | 3.1.1 |
518- | <a name="provider_null"></a> [null](#provider\_ null) | 3.2.4 |
522+ | <a name="provider_castai"></a> [castai](#provider\_ castai) | >= 8.26 .0 |
523+ | <a name="provider_google"></a> [google](#provider\_ google) | >= 2.49 |
524+ | <a name="provider_helm"></a> [helm](#provider\_ helm) | >= 3.0.0 |
525+ | <a name="provider_null"></a> [null](#provider\_ null) | >= 3.0 |
519526
520527## Modules
521528
Original file line number Diff line number Diff line change @@ -372,6 +372,19 @@ resource "castai_workload_scaling_policy" "this" {
372372 }
373373 }
374374 }
375+
376+ dynamic "anomaly_detection" {
377+ for_each = try ([each . value . anomaly_detection ], [])
378+ content {
379+ dynamic "cpu_pressure" {
380+ for_each = try ([anomaly_detection . value . cpu_pressure ], [])
381+ content {
382+ cpu_stall_threshold_percentage = try (cpu_pressure. value . cpu_stall_threshold_percentage , null )
383+ min_pressured_pod_percentage = try (cpu_pressure. value . min_pressured_pod_percentage , null )
384+ }
385+ }
386+ }
387+ }
375388}
376389
377390resource "helm_release" "castai_agent" {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ terraform {
88 }
99 castai = {
1010 source = " castai/castai"
11- version = " >= 8.24 .0"
11+ version = " >= 8.26 .0"
1212 }
1313 helm = {
1414 source = " hashicorp/helm"
You can’t perform that action at this time.
0 commit comments