Show / Hide Table of Contents

Class V1RollingUpdateDaemonSet

Spec to control the desired behavior of daemon set rolling update.

Inheritance
object
V1RollingUpdateDaemonSet
Implements
IEquatable<V1RollingUpdateDaemonSet>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1RollingUpdateDaemonSet : IEquatable<V1RollingUpdateDaemonSet>

Constructors

View Source

V1RollingUpdateDaemonSet()

Declaration
public V1RollingUpdateDaemonSet()
View Source

V1RollingUpdateDaemonSet(V1RollingUpdateDaemonSet)

Declaration
protected V1RollingUpdateDaemonSet(V1RollingUpdateDaemonSet original)
Parameters
Type Name Description
V1RollingUpdateDaemonSet original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

MaxSurge

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.

Declaration
[JsonPropertyName("maxSurge")]
public IntOrString MaxSurge { get; set; }
Property Value
Type Description
IntOrString
View Source

MaxUnavailable

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.

Declaration
[JsonPropertyName("maxUnavailable")]
public IntOrString MaxUnavailable { get; set; }
Property Value
Type Description
IntOrString

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1RollingUpdateDaemonSet?)

Declaration
public virtual bool Equals(V1RollingUpdateDaemonSet? other)
Parameters
Type Name Description
V1RollingUpdateDaemonSet other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1RollingUpdateDaemonSet?, V1RollingUpdateDaemonSet?)

Declaration
public static bool operator ==(V1RollingUpdateDaemonSet? left, V1RollingUpdateDaemonSet? right)
Parameters
Type Name Description
V1RollingUpdateDaemonSet left
V1RollingUpdateDaemonSet right
Returns
Type Description
bool
View Source

operator !=(V1RollingUpdateDaemonSet?, V1RollingUpdateDaemonSet?)

Declaration
public static bool operator !=(V1RollingUpdateDaemonSet? left, V1RollingUpdateDaemonSet? right)
Parameters
Type Name Description
V1RollingUpdateDaemonSet left
V1RollingUpdateDaemonSet right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX