A PriorityClass is a non-namespaced object that defines a mapping from a priority class name to the integer value of the priority.
resource "kubernetes_priority_class" "example" {
metadata {
name = "terraform-example"
}
value = 100
}
The following arguments are supported:
metadata
- (Required) Standard resource quota's metadata. For more info see Kubernetes referencevalue
- (Required, Forces new resource) The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.description
- (Optional) An arbitrary string that usually provides guidelines on when this priority class should be used.global_default
- (Optional) Boolean that specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.preemption_policy
- (Optional) PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.metadata
annotations
- (Optional) An unstructured key value map stored with the resource quota that may be used to store arbitrary metadata.labels
- (Optional) Map of string keys and values that can be used to organize and categorize (scope and select) the resource quota. May match selectors of replication controllers and services.name
- (Optional) Name of the resource quota, must be unique. Cannot be updated. For more info see Kubernetes referencegeneration
- A sequence number representing a specific generation of the desired state.resource_version
- An opaque value that represents the internal version of this resource quota that can be used by clients to determine when resource quota has changed. For more info see Kubernetes referenceuid
- The unique in time and space value for this resource quota. For more info see Kubernetes referencePriority Class can be imported using its name, e.g.
$ terraform import kubernetes_priority_class.example terraform-example