kubernetes_resource_quota_v1

A resource quota provides constraints that limit aggregate resource consumption per namespace. It can limit the quantity of objects that can be created in a namespace by type, as well as the total amount of compute resources that may be consumed by resources in that project.

Example Usage

resource "kubernetes_resource_quota_v1" "example" {
  metadata {
    name = "terraform-example"
  }
  spec {
    hard = {
      pods = 10
    }
    scopes = ["BestEffort"]
  }
}

Argument Reference

The following arguments are supported:

Nested Blocks

metadata

Arguments

Attributes

spec

Arguments

scope_selector

Arguments
match_expression
Arguments

Import

Resource Quota can be imported using its namespace and name, e.g.

$ terraform import kubernetes_resource_quota_v1.example default/terraform-example