# DaemonSet

DaemonSetDaemonSet represents the configuration of a daemon set.apiVersion: apps/v1import "k8s.io/api/apps/v1"DaemonSetDaemonSet represents the configuration of a daemon set.apiVersion: apps/v1kind: DaemonSetmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (DaemonSetSpec)The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusstatus (DaemonSetStatus)The current status of this daemon set. 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-statusDaemonSetSpecDaemonSetSpec is the specification of a daemon set.selector (LabelSelector), requiredA label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectorstemplate (PodTemplateSpec), requiredAn object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-templateminReadySeconds (int32)The minimum number of seconds for which a newly created DaemonSet 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).updateStrategy (DaemonSetUpdateStrategy)An update strategy to replace existing DaemonSet pods with new pods.DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.updateStrategy.type (string)Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.updateStrategy.rollingUpdate (RollingUpdateDaemonSet)Rolling update config params. Present only if type = "RollingUpdate".Spec to control the desired behavior of daemon set rolling update.updateStrategy.rollingUpdate.maxSurge (IntOrString)The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.updateStrategy.rollingUpdate.maxUnavailable (IntOrString)The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.revisionHistoryLimit (int32)The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.DaemonSetStatusDaemonSetStatus represents the current status of a daemon set.numberReady (int32), requirednumberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.numberAvailable (int32)The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)numberUnavailable (int32)The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)numberMisscheduled (int32), requiredThe number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/desiredNumberScheduled (int32), requiredThe total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/currentNumberScheduled (int32), requiredThe number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/updatedNumberScheduled (int32)The total number of nodes that are running updated daemon podcollisionCount (int32)Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.conditions ([]DaemonSetCondition)Patch strategy: merge on key typeMap: unique values on key type will be kept during a mergeRepresents the latest available observations of a DaemonSet's current state.DaemonSetCondition describes the state of a DaemonSet at a certain point.conditions.status (string), requiredStatus of the condition, one of True, False, Unknown.conditions.type (string), requiredType of DaemonSet condition.conditions.lastTransitionTime (Time)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)The most recent generation observed by the daemon set controller.DaemonSetListDaemonSetList is a collection of daemon sets.apiVersion: apps/v1kind: DaemonSetListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]DaemonSet), requiredA list of daemon sets.Operationsget read the specified DaemonSetHTTP RequestGET /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}Parametersname (in path): string, requiredname of the DaemonSetnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (DaemonSet): OK401: Unauthorizedget read status of the specified DaemonSetHTTP RequestGET /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/statusParametersname (in path): string, requiredname of the DaemonSetnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (DaemonSet): OK401: Unauthorizedlist list or watch objects of kind DaemonSetHTTP RequestGET /apis/apps/v1/namespaces/{namespace}/daemonsetsParametersnamespace (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 (DaemonSetList): OK401: Unauthorizedlist list or watch objects of kind DaemonSetHTTP RequestGET /apis/apps/v1/daemonsetsParametersallowWatchBookmarks (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 (DaemonSetList): OK401: Unauthorizedcreate create a DaemonSetHTTP RequestPOST /apis/apps/v1/namespaces/{namespace}/daemonsetsParametersnamespace (in path): string, requirednamespacebody: DaemonSet, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (DaemonSet): OK201 (DaemonSet): Created202 (DaemonSet): Accepted401: Unauthorizedupdate replace the specified DaemonSetHTTP RequestPUT /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}Parametersname (in path): string, requiredname of the DaemonSetnamespace (in path): string, requirednamespacebody: DaemonSet, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (DaemonSet): OK201 (DaemonSet): Created401: Unauthorizedupdate replace status of the specified DaemonSetHTTP RequestPUT /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/statusParametersname (in path): string, requiredname of the DaemonSetnamespace (in path): string, requirednamespacebody: DaemonSet, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (DaemonSet): OK201 (DaemonSet): Created401: Unauthorizedpatch partially update the specified DaemonSetHTTP RequestPATCH /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}Parametersname (in path): string, requiredname of the DaemonSetnamespace (in path): string, requirednamespacebody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (DaemonSet): OK201 (DaemonSet): Created401: Unauthorizedpatch partially update status of the specified DaemonSetHTTP RequestPATCH /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/statusParametersname (in path): string, requiredname of the DaemonSetnamespace (in path): string, requirednamespacebody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (DaemonSet): OK201 (DaemonSet): Created401: Unauthorizeddelete delete a DaemonSetHTTP RequestDELETE /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}Parametersname (in path): string, requiredname of the DaemonSetnamespace (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 DaemonSetHTTP RequestDELETE /apis/apps/v1/namespaces/{namespace}/daemonsetsParametersnamespace (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.