Update description of fields for DaemonSet rolling udpate

This commit is contained in:
Janet Kuo 2017-03-17 13:41:21 -07:00
parent 1b8bd556a8
commit 4cebc865dc
2 changed files with 18 additions and 16 deletions

View File

@ -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).

View File

@ -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).