I need to make enable GKE POD Horizontal Autoscaling with Memory Utilization Metrics through terraform IAC.
I found code with CPU Utilization, but not for Memory Utilization Metrics.
I also tried with following code but getting below error after applying terraform pipeline
ERROR Message:
[2024-07-09 10:50:07] Error: the server could not find the requested resource
[2024-07-09 10:50:07]
[2024-07-09 10:50:07] releases, based on feedback.
[2024-07-09 10:50:07]
[2024-07-09 10:50:07] If you have feedback on the design of this feature, please open a GitHub issue
[2024-07-09 10:50:07] to discuss it.
[2024-07-09 10:50:07]
[2024-07-09 10:50:07] (and 7 more similar warnings elsewhere)
[2024-07-09 10:50:07]
[2024-07-09 10:50:07] on .terraform/modules/query_service_dev1.query_service/k8s_hpa.tf line 32, in resource "kubernetes_horizontal_pod_autoscaler" "hpa":
[2024-07-09 10:50:07] 32: resource "kubernetes_horizontal_pod_autoscaler" "hpa"
Description
I need to make enable GKE POD Horizontal Autoscaling with Memory Utilization Metrics through terraform IAC. I found code with CPU Utilization, but not for Memory Utilization Metrics.
I also tried with following code but getting below error after applying terraform pipeline
ERROR Message:
[2024-07-09 10:50:07] Error: the server could not find the requested resource [2024-07-09 10:50:07] [2024-07-09 10:50:07] releases, based on feedback. [2024-07-09 10:50:07] [2024-07-09 10:50:07] If you have feedback on the design of this feature, please open a GitHub issue [2024-07-09 10:50:07] to discuss it. [2024-07-09 10:50:07] [2024-07-09 10:50:07] (and 7 more similar warnings elsewhere) [2024-07-09 10:50:07] [2024-07-09 10:50:07] on .terraform/modules/query_service_dev1.query_service/k8s_hpa.tf line 32, in resource "kubernetes_horizontal_pod_autoscaler" "hpa": [2024-07-09 10:50:07] 32: resource "kubernetes_horizontal_pod_autoscaler" "hpa"
Potential Terraform Configuration
References
Community Note