terraform/website/source/docs/providers/kubernetes/r/resource_quota.html.markdown

3.1 KiB

layout page_title sidebar_current description
kubernetes Kubernetes: kubernetes_resource_quota docs-kubernetes-resource-resource-quota 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.

kubernetes_resource_quota

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" "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

Import

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

$ terraform import kubernetes_resource_quota.example terraform-example