You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"kubernetes_horizontal_pod_autoscaler""this" {
dynamic"metadata" {
for_each=var.metadatacontent {
# annotations - (optional) is a type of map of stringannotations=metadata.value["annotations"]
# generate_name - (optional) is a type of stringgenerate_name=metadata.value["generate_name"]
# labels - (optional) is a type of map of stringlabels=metadata.value["labels"]
# name - (optional) is a type of stringname=metadata.value["name"]
# namespace - (optional) is a type of stringnamespace=metadata.value["namespace"]
}
}
dynamic"spec" {
for_each=var.speccontent {
# max_replicas - (required) is a type of numbermax_replicas=spec.value["max_replicas"]
# min_replicas - (optional) is a type of numbermin_replicas=spec.value["min_replicas"]
# target_cpu_utilization_percentage - (optional) is a type of numbertarget_cpu_utilization_percentage=spec.value["target_cpu_utilization_percentage"]
dynamic"metric" {
for_each=spec.value.metriccontent {
# type - (required) is a type of stringtype=metric.value["type"]
dynamic"external" {
for_each=metric.value.externalcontent {
dynamic"metric" {
for_each=external.value.metriccontent {
# name - (required) is a type of stringname=metric.value["name"]
dynamic"selector" {
for_each=metric.value.selectorcontent {
# match_labels - (optional) is a type of map of stringmatch_labels=selector.value["match_labels"]
dynamic"match_expressions" {
for_each=selector.value.match_expressionscontent {
# key - (optional) is a type of stringkey=match_expressions.value["key"]
# operator - (optional) is a type of stringoperator=match_expressions.value["operator"]
# values - (optional) is a type of set of stringvalues=match_expressions.value["values"]
}
}
}
}
}
}
dynamic"target" {
for_each=external.value.targetcontent {
# average_utilization - (optional) is a type of numberaverage_utilization=target.value["average_utilization"]
# average_value - (optional) is a type of stringaverage_value=target.value["average_value"]
# type - (required) is a type of stringtype=target.value["type"]
# value - (optional) is a type of stringvalue=target.value["value"]
}
}
}
}
dynamic"object" {
for_each=metric.value.objectcontent {
dynamic"described_object" {
for_each=object.value.described_objectcontent {
# api_version - (required) is a type of stringapi_version=described_object.value["api_version"]
# kind - (required) is a type of stringkind=described_object.value["kind"]
# name - (required) is a type of stringname=described_object.value["name"]
}
}
dynamic"metric" {
for_each=object.value.metriccontent {
# name - (required) is a type of stringname=metric.value["name"]
dynamic"selector" {
for_each=metric.value.selectorcontent {
# match_labels - (optional) is a type of map of stringmatch_labels=selector.value["match_labels"]
dynamic"match_expressions" {
for_each=selector.value.match_expressionscontent {
# key - (optional) is a type of stringkey=match_expressions.value["key"]
# operator - (optional) is a type of stringoperator=match_expressions.value["operator"]
# values - (optional) is a type of set of stringvalues=match_expressions.value["values"]
}
}
}
}
}
}
dynamic"target" {
for_each=object.value.targetcontent {
# average_utilization - (optional) is a type of numberaverage_utilization=target.value["average_utilization"]
# average_value - (optional) is a type of stringaverage_value=target.value["average_value"]
# type - (required) is a type of stringtype=target.value["type"]
# value - (optional) is a type of stringvalue=target.value["value"]
}
}
}
}
dynamic"pods" {
for_each=metric.value.podscontent {
dynamic"metric" {
for_each=pods.value.metriccontent {
# name - (required) is a type of stringname=metric.value["name"]
dynamic"selector" {
for_each=metric.value.selectorcontent {
# match_labels - (optional) is a type of map of stringmatch_labels=selector.value["match_labels"]
dynamic"match_expressions" {
for_each=selector.value.match_expressionscontent {
# key - (optional) is a type of stringkey=match_expressions.value["key"]
# operator - (optional) is a type of stringoperator=match_expressions.value["operator"]
# values - (optional) is a type of set of stringvalues=match_expressions.value["values"]
}
}
}
}
}
}
dynamic"target" {
for_each=pods.value.targetcontent {
# average_utilization - (optional) is a type of numberaverage_utilization=target.value["average_utilization"]
# average_value - (optional) is a type of stringaverage_value=target.value["average_value"]
# type - (required) is a type of stringtype=target.value["type"]
# value - (optional) is a type of stringvalue=target.value["value"]
}
}
}
}
dynamic"resource" {
for_each=metric.value.resourcecontent {
# name - (required) is a type of stringname=resource.value["name"]
dynamic"target" {
for_each=resource.value.targetcontent {
# average_utilization - (optional) is a type of numberaverage_utilization=target.value["average_utilization"]
# average_value - (optional) is a type of stringaverage_value=target.value["average_value"]
# type - (required) is a type of stringtype=target.value["type"]
# value - (optional) is a type of stringvalue=target.value["value"]
}
}
}
}
}
}
dynamic"scale_target_ref" {
for_each=spec.value.scale_target_refcontent {
# api_version - (optional) is a type of stringapi_version=scale_target_ref.value["api_version"]
# kind - (required) is a type of stringkind=scale_target_ref.value["kind"]
# name - (required) is a type of stringname=scale_target_ref.value["name"]
}
}
}
}
}