mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Update description of fields for DaemonSet rolling udpate
This commit is contained in:
parent
1b8bd556a8
commit
4cebc865dc
@ -404,13 +404,14 @@ type RollingUpdateDaemonSet struct {
|
|||||||
// number is calculated from percentage by rounding up.
|
// number is calculated from percentage by rounding up.
|
||||||
// This cannot be 0.
|
// This cannot be 0.
|
||||||
// Default value is 1.
|
// Default value is 1.
|
||||||
// Example: when this is set to 30%, 30% of the currently running DaemonSet
|
// Example: when this is set to 30%, at most 30% of the total number of nodes
|
||||||
// pods can be stopped for an update at any given time. The update starts
|
// that should be running the daemon pod (i.e. DesiredNumberScheduled in
|
||||||
// by stopping at most 30% of the currently running DaemonSet pods and then
|
// DaemonSetStatus) can have their pods stopped for an update at any given
|
||||||
// brings up new DaemonSet pods in their place. Once the new pods are ready,
|
// time. The update starts by stopping at most 30% of those DaemonSet pods
|
||||||
// it then proceeds onto other DaemonSet pods, thus ensuring that at least
|
// and then brings up new DaemonSet pods in their place. Once the new pods
|
||||||
// 70% of original number of DaemonSet pods are available at all times
|
// are available, it then proceeds onto other DaemonSet pods, thus ensuring
|
||||||
// during the update.
|
// that at least 70% of original number of DaemonSet pods are available at
|
||||||
|
// all times during the update.
|
||||||
// +optional
|
// +optional
|
||||||
MaxUnavailable intstr.IntOrString
|
MaxUnavailable intstr.IntOrString
|
||||||
}
|
}
|
||||||
@ -435,7 +436,7 @@ type DaemonSetSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
UpdateStrategy DaemonSetUpdateStrategy
|
UpdateStrategy DaemonSetUpdateStrategy
|
||||||
|
|
||||||
// MinReadySeconds minimum number of seconds for which a newly created DaemonSet pod should
|
// 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
|
// 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
|
// available. Defaults to 0 (pod will be considered available as soon as it
|
||||||
// is ready).
|
// is ready).
|
||||||
|
@ -403,13 +403,14 @@ type RollingUpdateDaemonSet struct {
|
|||||||
// number is calculated from percentage by rounding up.
|
// number is calculated from percentage by rounding up.
|
||||||
// This cannot be 0.
|
// This cannot be 0.
|
||||||
// Default value is 1.
|
// Default value is 1.
|
||||||
// Example: when this is set to 30%, 30% of the currently running DaemonSet
|
// Example: when this is set to 30%, at most 30% of the total number of nodes
|
||||||
// pods can be stopped for an update at any given time. The update starts
|
// that should be running the daemon pod (i.e. DesiredNumberScheduled in
|
||||||
// by stopping at most 30% of the currently running DaemonSet pods and then
|
// DaemonSetStatus) can have their pods stopped for an update at any given
|
||||||
// brings up new DaemonSet pods in their place. Once the new pods are ready,
|
// time. The update starts by stopping at most 30% of those DaemonSet pods
|
||||||
// it then proceeds onto other DaemonSet pods, thus ensuring that at least
|
// and then brings up new DaemonSet pods in their place. Once the new pods
|
||||||
// 70% of original number of DaemonSet pods are available at all times
|
// are available, it then proceeds onto other DaemonSet pods, thus ensuring
|
||||||
// during the update.
|
// that at least 70% of original number of DaemonSet pods are available at
|
||||||
|
// all times during the update.
|
||||||
// +optional
|
// +optional
|
||||||
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"`
|
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"`
|
||||||
}
|
}
|
||||||
@ -434,7 +435,7 @@ type DaemonSetSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
UpdateStrategy DaemonSetUpdateStrategy `json:"updateStrategy,omitempty" protobuf:"bytes,3,opt,name=updateStrategy"`
|
UpdateStrategy DaemonSetUpdateStrategy `json:"updateStrategy,omitempty" protobuf:"bytes,3,opt,name=updateStrategy"`
|
||||||
|
|
||||||
// MinReadySeconds minimum number of seconds for which a newly created DaemonSet pod should
|
// 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
|
// 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
|
// available. Defaults to 0 (pod will be considered available as soon as it
|
||||||
// is ready).
|
// is ready).
|
||||||
|
Loading…
Reference in New Issue
Block a user