Class NodeKubeletConfig (0.52.0)

public final class NodeKubeletConfig extends GeneratedMessageV3 implements NodeKubeletConfigOrBuilder

Configuration for node pool kubelet options.

Protobuf type google.cloud.gkemulticloud.v1.NodeKubeletConfig

Static Fields

CPU_CFS_QUOTA_FIELD_NUMBER

public static final int CPU_CFS_QUOTA_FIELD_NUMBER
Field Value
Type Description
int

CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER

public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER
Field Value
Type Description
int

CPU_MANAGER_POLICY_FIELD_NUMBER

public static final int CPU_MANAGER_POLICY_FIELD_NUMBER
Field Value
Type Description
int

INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER

public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

POD_PIDS_LIMIT_FIELD_NUMBER

public static final int POD_PIDS_LIMIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NodeKubeletConfig getDefaultInstance()
Returns
Type Description
NodeKubeletConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static NodeKubeletConfig.Builder newBuilder()
Returns
Type Description
NodeKubeletConfig.Builder

newBuilder(NodeKubeletConfig prototype)

public static NodeKubeletConfig.Builder newBuilder(NodeKubeletConfig prototype)
Parameter
Name Description
prototype NodeKubeletConfig
Returns
Type Description
NodeKubeletConfig.Builder

parseDelimitedFrom(InputStream input)

public static NodeKubeletConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NodeKubeletConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NodeKubeletConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NodeKubeletConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NodeKubeletConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NodeKubeletConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeKubeletConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NodeKubeletConfig> parser()
Returns
Type Description
Parser<NodeKubeletConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCpuCfsQuota()

public boolean getCpuCfsQuota()

Optional. Enable CPU CFS quota enforcement for containers that specify CPU limits.

This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all.

Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits.

The default value is 'true' if unspecified.

optional bool cpu_cfs_quota = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The cpuCfsQuota.

getCpuCfsQuotaPeriod()

public String getCpuCfsQuotaPeriod()

Optional. Set the CPU CFS quota period value 'cpu.cfs_period_us'.

The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". The value must be a positive duration.

The default value is '100ms' if unspecified.

optional string cpu_cfs_quota_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The cpuCfsQuotaPeriod.

getCpuCfsQuotaPeriodBytes()

public ByteString getCpuCfsQuotaPeriodBytes()

Optional. Set the CPU CFS quota period value 'cpu.cfs_period_us'.

The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". The value must be a positive duration.

The default value is '100ms' if unspecified.

optional string cpu_cfs_quota_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for cpuCfsQuotaPeriod.

getCpuManagerPolicy()

public String getCpuManagerPolicy()

Optional. Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/

The following values are allowed.

  • "none": the default, which represents the existing scheduling behavior.
  • "static": allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is 'none' if unspecified.

optional string cpu_manager_policy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The cpuManagerPolicy.

getCpuManagerPolicyBytes()

public ByteString getCpuManagerPolicyBytes()

Optional. Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/

The following values are allowed.

  • "none": the default, which represents the existing scheduling behavior.
  • "static": allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is 'none' if unspecified.

optional string cpu_manager_policy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for cpuManagerPolicy.

getDefaultInstanceForType()

public NodeKubeletConfig getDefaultInstanceForType()
Returns
Type Description
NodeKubeletConfig

getInsecureKubeletReadonlyPortEnabled()

public boolean getInsecureKubeletReadonlyPortEnabled()

Optional. Enable the insecure kubelet read only port.

bool insecure_kubelet_readonly_port_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The insecureKubeletReadonlyPortEnabled.

getParserForType()

public Parser<NodeKubeletConfig> getParserForType()
Returns
Type Description
Parser<NodeKubeletConfig>
Overrides

getPodPidsLimit()

public long getPodPidsLimit()

Optional. Set the Pod PID limits. See https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits

Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304.

optional int64 pod_pids_limit = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The podPidsLimit.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCpuCfsQuota()

public boolean hasCpuCfsQuota()

Optional. Enable CPU CFS quota enforcement for containers that specify CPU limits.

This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all.

Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits.

The default value is 'true' if unspecified.

optional bool cpu_cfs_quota = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cpuCfsQuota field is set.

hasCpuCfsQuotaPeriod()

public boolean hasCpuCfsQuotaPeriod()

Optional. Set the CPU CFS quota period value 'cpu.cfs_period_us'.

The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". The value must be a positive duration.

The default value is '100ms' if unspecified.

optional string cpu_cfs_quota_period = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cpuCfsQuotaPeriod field is set.

hasCpuManagerPolicy()

public boolean hasCpuManagerPolicy()

Optional. Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/

The following values are allowed.

  • "none": the default, which represents the existing scheduling behavior.
  • "static": allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is 'none' if unspecified.

optional string cpu_manager_policy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cpuManagerPolicy field is set.

hasPodPidsLimit()

public boolean hasPodPidsLimit()

Optional. Set the Pod PID limits. See https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits

Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304.

optional int64 pod_pids_limit = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the podPidsLimit field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NodeKubeletConfig.Builder newBuilderForType()
Returns
Type Description
NodeKubeletConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NodeKubeletConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NodeKubeletConfig.Builder toBuilder()
Returns
Type Description
NodeKubeletConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException