# ReplicationController

ReplicationControllerReplicationController represents the configuration of a replication controller.apiVersion: v1import "k8s.io/api/core/v1"ReplicationControllerReplicationController represents the configuration of a replication controller.apiVersion: v1kind: ReplicationControllermetadata (ObjectMeta)If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (ReplicationControllerSpec)Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusstatus (ReplicationControllerStatus)Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusReplicationControllerSpecReplicationControllerSpec is the specification of a replication controller.selector (map[string]string)Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectorstemplate (PodTemplateSpec)Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-templatereplicas (int32)Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontrollerminReadySeconds (int32)Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)ReplicationControllerStatusReplicationControllerStatus represents the current status of a replication controller.replicas (int32), requiredReplicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontrolleravailableReplicas (int32)The number of available replicas (ready for at least minReadySeconds) for this replication controller.readyReplicas (int32)The number of ready replicas for this replication controller.fullyLabeledReplicas (int32)The number of pods that have labels matching the labels of the pod template of the replication controller.conditions ([]ReplicationControllerCondition)Patch strategy: merge on key typeMap: unique values on key type will be kept during a mergeRepresents the latest available observations of a replication controller's current state.ReplicationControllerCondition describes the state of a replication controller at a certain point.conditions.status (string), requiredStatus of the condition, one of True, False, Unknown.conditions.type (string), requiredType of replication controller condition.conditions.lastTransitionTime (Time)The last time the condition transitioned from one status to another.Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.conditions.message (string)A human readable message indicating details about the transition.conditions.reason (string)The reason for the condition's last transition.observedGeneration (int64)ObservedGeneration reflects the generation of the most recently observed replication controller.ReplicationControllerListReplicationControllerList is a collection of replication controllers.apiVersion: v1kind: ReplicationControllerListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]ReplicationController), requiredList of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontrollerOperationsget read the specified ReplicationControllerHTTP RequestGET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}Parametersname (in path): string, requiredname of the ReplicationControllernamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (ReplicationController): OK401: Unauthorizedget read status of the specified ReplicationControllerHTTP RequestGET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/statusParametersname (in path): string, requiredname of the ReplicationControllernamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (ReplicationController): OK401: Unauthorizedlist list or watch objects of kind ReplicationControllerHTTP RequestGET /api/v1/namespaces/{namespace}/replicationcontrollersParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (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 (ReplicationControllerList): OK401: Unauthorizedlist list or watch objects of kind ReplicationControllerHTTP RequestGET /api/v1/replicationcontrollersParametersallowWatchBookmarks (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 (ReplicationControllerList): OK401: Unauthorizedcreate create a ReplicationControllerHTTP RequestPOST /api/v1/namespaces/{namespace}/replicationcontrollersParametersnamespace (in path): string, requirednamespacebody: ReplicationController, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ReplicationController): OK201 (ReplicationController): Created202 (ReplicationController): Accepted401: Unauthorizedupdate replace the specified ReplicationControllerHTTP RequestPUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}Parametersname (in path): string, requiredname of the ReplicationControllernamespace (in path): string, requirednamespacebody: ReplicationController, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ReplicationController): OK201 (ReplicationController): Created401: Unauthorizedupdate replace status of the specified ReplicationControllerHTTP RequestPUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/statusParametersname (in path): string, requiredname of the ReplicationControllernamespace (in path): string, requirednamespacebody: ReplicationController, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ReplicationController): OK201 (ReplicationController): Created401: Unauthorizedpatch partially update the specified ReplicationControllerHTTP RequestPATCH /api/v1/namespaces/{namespace}/replicationcontrollers/{name}Parametersname (in path): string, requiredname of the ReplicationControllernamespace (in path): string, requirednamespacebody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (ReplicationController): OK201 (ReplicationController): Created401: Unauthorizedpatch partially update status of the specified ReplicationControllerHTTP RequestPATCH /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/statusParametersname (in path): string, requiredname of the ReplicationControllernamespace (in path): string, requirednamespacebody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (ReplicationController): OK201 (ReplicationController): Created401: Unauthorizeddelete delete a ReplicationControllerHTTP RequestDELETE /api/v1/namespaces/{namespace}/replicationcontrollers/{name}Parametersname (in path): string, requiredname of the ReplicationControllernamespace (in path): string, requirednamespacebody: DeleteOptionsdryRun (in query): stringdryRungracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentialpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyResponse200 (Status): OK202 (Status): Accepted401: Unauthorizeddeletecollection delete collection of ReplicationControllerHTTP RequestDELETE /api/v1/namespaces/{namespace}/replicationcontrollersParametersnamespace (in path): string, requirednamespacebody: 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.