Class: Google::Container::V1beta1::NodeTaint

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb

Overview

Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.

For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

Defined Under Namespace

Modules: Effect

Instance Attribute Summary collapse

Instance Attribute Details

#effectGoogle::Container::V1beta1::NodeTaint::Effect

Returns Effect for taint.

Returns:



186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb', line 186

class NodeTaint
  # Possible values for Effect in taint.
  module Effect
    # Not set
    EFFECT_UNSPECIFIED = 0

    # NoSchedule
    NO_SCHEDULE = 1

    # PreferNoSchedule
    PREFER_NO_SCHEDULE = 2

    # NoExecute
    NO_EXECUTE = 3
  end
end

#keyString

Returns Key for taint.

Returns:

  • (String)

    Key for taint.



186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb', line 186

class NodeTaint
  # Possible values for Effect in taint.
  module Effect
    # Not set
    EFFECT_UNSPECIFIED = 0

    # NoSchedule
    NO_SCHEDULE = 1

    # PreferNoSchedule
    PREFER_NO_SCHEDULE = 2

    # NoExecute
    NO_EXECUTE = 3
  end
end

#valueString

Returns Value for taint.

Returns:

  • (String)

    Value for taint.



186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb', line 186

class NodeTaint
  # Possible values for Effect in taint.
  module Effect
    # Not set
    EFFECT_UNSPECIFIED = 0

    # NoSchedule
    NO_SCHEDULE = 1

    # PreferNoSchedule
    PREFER_NO_SCHEDULE = 2

    # NoExecute
    NO_EXECUTE = 3
  end
end