Class NodeKubeletConfig (2.40.0)

public final class NodeKubeletConfig extends GeneratedMessageV3 implements NodeKubeletConfigOrBuilder

Node kubelet configs.

Protobuf type google.container.v1.NodeKubeletConfig

Static Fields

CPU_CFS_QUOTA_FIELD_NUMBER

public static final int CPU_CFS_QUOTA_FIELD_NUMBER
Field Value
TypeDescription
int

CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER

public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER
Field Value
TypeDescription
int

CPU_MANAGER_POLICY_FIELD_NUMBER

public static final int CPU_MANAGER_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER

public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

POD_PIDS_LIMIT_FIELD_NUMBER

public static final int POD_PIDS_LIMIT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NodeKubeletConfig getDefaultInstance()
Returns
TypeDescription
NodeKubeletConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static NodeKubeletConfig.Builder newBuilder()
Returns
TypeDescription
NodeKubeletConfig.Builder

newBuilder(NodeKubeletConfig prototype)

public static NodeKubeletConfig.Builder newBuilder(NodeKubeletConfig prototype)
Parameter
NameDescription
prototypeNodeKubeletConfig
Returns
TypeDescription
NodeKubeletConfig.Builder

parseDelimitedFrom(InputStream input)

public static NodeKubeletConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NodeKubeletConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NodeKubeletConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NodeKubeletConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NodeKubeletConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NodeKubeletConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NodeKubeletConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeKubeletConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NodeKubeletConfig> parser()
Returns
TypeDescription
Parser<NodeKubeletConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCpuCfsQuota()

public BoolValue getCpuCfsQuota()

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.

.google.protobuf.BoolValue cpu_cfs_quota = 2;

Returns
TypeDescription
BoolValue

The cpuCfsQuota.

getCpuCfsQuotaOrBuilder()

public BoolValueOrBuilder getCpuCfsQuotaOrBuilder()

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.

.google.protobuf.BoolValue cpu_cfs_quota = 2;

Returns
TypeDescription
BoolValueOrBuilder

getCpuCfsQuotaPeriod()

public String getCpuCfsQuotaPeriod()

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.

string cpu_cfs_quota_period = 3;

Returns
TypeDescription
String

The cpuCfsQuotaPeriod.

getCpuCfsQuotaPeriodBytes()

public ByteString getCpuCfsQuotaPeriodBytes()

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.

string cpu_cfs_quota_period = 3;

Returns
TypeDescription
ByteString

The bytes for cpuCfsQuotaPeriod.

getCpuManagerPolicy()

public String getCpuManagerPolicy()

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.

string cpu_manager_policy = 1;

Returns
TypeDescription
String

The cpuManagerPolicy.

getCpuManagerPolicyBytes()

public ByteString getCpuManagerPolicyBytes()

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.

string cpu_manager_policy = 1;

Returns
TypeDescription
ByteString

The bytes for cpuManagerPolicy.

getDefaultInstanceForType()

public NodeKubeletConfig getDefaultInstanceForType()
Returns
TypeDescription
NodeKubeletConfig

getInsecureKubeletReadonlyPortEnabled()

public boolean getInsecureKubeletReadonlyPortEnabled()

Enable or disable Kubelet read only port.

optional bool insecure_kubelet_readonly_port_enabled = 7;

Returns
TypeDescription
boolean

The insecureKubeletReadonlyPortEnabled.

getParserForType()

public Parser<NodeKubeletConfig> getParserForType()
Returns
TypeDescription
Parser<NodeKubeletConfig>
Overrides

getPodPidsLimit()

public long getPodPidsLimit()

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.

int64 pod_pids_limit = 4;

Returns
TypeDescription
long

The podPidsLimit.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCpuCfsQuota()

public boolean hasCpuCfsQuota()

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.

.google.protobuf.BoolValue cpu_cfs_quota = 2;

Returns
TypeDescription
boolean

Whether the cpuCfsQuota field is set.

hasInsecureKubeletReadonlyPortEnabled()

public boolean hasInsecureKubeletReadonlyPortEnabled()

Enable or disable Kubelet read only port.

optional bool insecure_kubelet_readonly_port_enabled = 7;

Returns
TypeDescription
boolean

Whether the insecureKubeletReadonlyPortEnabled field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NodeKubeletConfig.Builder newBuilderForType()
Returns
TypeDescription
NodeKubeletConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NodeKubeletConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NodeKubeletConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NodeKubeletConfig.Builder toBuilder()
Returns
TypeDescription
NodeKubeletConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException