# PriorityClass

PriorityClassPriorityClass defines mapping from a priority class name to the priority integer value.apiVersion: scheduling.k8s.io/v1import "k8s.io/api/scheduling/v1"PriorityClassPriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.apiVersion: scheduling.k8s.io/v1kind: PriorityClassmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatavalue (int32), requiredvalue represents the integer 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 (string)description is an arbitrary string that usually provides guidelines on when this priority class should be used.globalDefault (boolean)globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as globalDefault. However, if more than one PriorityClasses exists with their globalDefault field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.preemptionPolicy (string)preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.PriorityClassListPriorityClassList is a collection of priority classes.apiVersion: scheduling.k8s.io/v1kind: PriorityClassListmetadata (ListMeta)Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]PriorityClass), requireditems is the list of PriorityClassesOperationsget read the specified PriorityClassHTTP RequestGET /apis/scheduling.k8s.io/v1/priorityclasses/{name}Parametersname (in path): string, requiredname of the PriorityClasspretty (in query): stringprettyResponse200 (PriorityClass): OK401: Unauthorizedlist list or watch objects of kind PriorityClassHTTP RequestGET /apis/scheduling.k8s.io/v1/priorityclassesParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (PriorityClassList): OK401: Unauthorizedcreate create a PriorityClassHTTP RequestPOST /apis/scheduling.k8s.io/v1/priorityclassesParametersbody: PriorityClass, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (PriorityClass): OK201 (PriorityClass): Created202 (PriorityClass): Accepted401: Unauthorizedupdate replace the specified PriorityClassHTTP RequestPUT /apis/scheduling.k8s.io/v1/priorityclasses/{name}Parametersname (in path): string, requiredname of the PriorityClassbody: PriorityClass, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (PriorityClass): OK201 (PriorityClass): Created401: Unauthorizedpatch partially update the specified PriorityClassHTTP RequestPATCH /apis/scheduling.k8s.io/v1/priorityclasses/{name}Parametersname (in path): string, requiredname of the PriorityClassbody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (PriorityClass): OK201 (PriorityClass): Created401: Unauthorizeddelete delete a PriorityClassHTTP RequestDELETE /apis/scheduling.k8s.io/v1/priorityclasses/{name}Parametersname (in path): string, requiredname of the PriorityClassbody: DeleteOptionsdryRun (in query): stringdryRungracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentialpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyResponse200 (Status): OK202 (Status): Accepted401: Unauthorizeddeletecollection delete collection of PriorityClassHTTP RequestDELETE /apis/scheduling.k8s.io/v1/priorityclassesParametersbody: DeleteOptionscontinue (in query): stringcontinuedryRun (in query): stringdryRunfieldSelector (in query): stringfieldSelectorgracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentiallabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondsResponse200 (Status): OK401: UnauthorizedThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.