Class V1Apps.RollingUpdateDaemonSet

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1Apps.RollingUpdateDaemonSet
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Apps.RollingUpdateDaemonSetOrBuilder, Serializable
Enclosing class:
V1Apps

public static final class V1Apps.RollingUpdateDaemonSet extends com.google.protobuf.GeneratedMessageV3 implements V1Apps.RollingUpdateDaemonSetOrBuilder
 Spec to control the desired behavior of daemon set rolling update.
 
Protobuf type k8s.io.api.apps.v1.RollingUpdateDaemonSet
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasMaxUnavailable

      public boolean hasMaxUnavailable()
       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.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
      Specified by:
      hasMaxUnavailable in interface V1Apps.RollingUpdateDaemonSetOrBuilder
    • getMaxUnavailable

      public IntStr.IntOrString getMaxUnavailable()
       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.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
      Specified by:
      getMaxUnavailable in interface V1Apps.RollingUpdateDaemonSetOrBuilder
    • getMaxUnavailableOrBuilder

      public IntStr.IntOrStringOrBuilder getMaxUnavailableOrBuilder()
       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.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
      Specified by:
      getMaxUnavailableOrBuilder in interface V1Apps.RollingUpdateDaemonSetOrBuilder
    • hasMaxSurge

      public boolean hasMaxSurge()
       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 immediatedly 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.
       This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
      Specified by:
      hasMaxSurge in interface V1Apps.RollingUpdateDaemonSetOrBuilder
    • getMaxSurge

      public IntStr.IntOrString getMaxSurge()
       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 immediatedly 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.
       This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
      Specified by:
      getMaxSurge in interface V1Apps.RollingUpdateDaemonSetOrBuilder
    • getMaxSurgeOrBuilder

      public IntStr.IntOrStringOrBuilder getMaxSurgeOrBuilder()
       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 immediatedly 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.
       This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
      Specified by:
      getMaxSurgeOrBuilder in interface V1Apps.RollingUpdateDaemonSetOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Apps.RollingUpdateDaemonSet parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Apps.RollingUpdateDaemonSet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Apps.RollingUpdateDaemonSet parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1Apps.RollingUpdateDaemonSet.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1Apps.RollingUpdateDaemonSet.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1Apps.RollingUpdateDaemonSet.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1Apps.RollingUpdateDaemonSet getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1Apps.RollingUpdateDaemonSet> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1Apps.RollingUpdateDaemonSet> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public V1Apps.RollingUpdateDaemonSet getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder