Class NodeKubeletConfig.Builder (2.67.0)

public static final class NodeKubeletConfig.Builder extends GeneratedMessageV3.Builder<NodeKubeletConfig.Builder> implements NodeKubeletConfigOrBuilder

Node kubelet configs.

Protobuf type google.container.v1.NodeKubeletConfig

Static Methods

getDescriptor()

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

Methods

addAllAllowedUnsafeSysctls(Iterable<String> values)

public NodeKubeletConfig.Builder addAllAllowedUnsafeSysctls(Iterable<String> values)

Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in *).

The unsafe namespaced sysctl groups are kernel.shm, kernel.msg, kernel.sem, fs.mqueue., and net.. Leaving this allowlist empty means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For example: kernel.msg*,net.ipv4.route.min_pmtu.

See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.

repeated string allowed_unsafe_sysctls = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The allowedUnsafeSysctls to add.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

addAllowedUnsafeSysctls(String value)

public NodeKubeletConfig.Builder addAllowedUnsafeSysctls(String value)

Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in *).

The unsafe namespaced sysctl groups are kernel.shm, kernel.msg, kernel.sem, fs.mqueue., and net.. Leaving this allowlist empty means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For example: kernel.msg*,net.ipv4.route.min_pmtu.

See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.

repeated string allowed_unsafe_sysctls = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The allowedUnsafeSysctls to add.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

addAllowedUnsafeSysctlsBytes(ByteString value)

public NodeKubeletConfig.Builder addAllowedUnsafeSysctlsBytes(ByteString value)

Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in *).

The unsafe namespaced sysctl groups are kernel.shm, kernel.msg, kernel.sem, fs.mqueue., and net.. Leaving this allowlist empty means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For example: kernel.msg*,net.ipv4.route.min_pmtu.

See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.

repeated string allowed_unsafe_sysctls = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the allowedUnsafeSysctls to add.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeKubeletConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

build()

public NodeKubeletConfig build()
Returns
Type Description
NodeKubeletConfig

buildPartial()

public NodeKubeletConfig buildPartial()
Returns
Type Description
NodeKubeletConfig

clear()

public NodeKubeletConfig.Builder clear()
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

clearAllowedUnsafeSysctls()

public NodeKubeletConfig.Builder clearAllowedUnsafeSysctls()

Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in *).

The unsafe namespaced sysctl groups are kernel.shm, kernel.msg, kernel.sem, fs.mqueue., and net.. Leaving this allowlist empty means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For example: kernel.msg*,net.ipv4.route.min_pmtu.

See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.

repeated string allowed_unsafe_sysctls = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearContainerLogMaxFiles()

public NodeKubeletConfig.Builder clearContainerLogMaxFiles()

Optional. Defines the maximum number of container log files that can be present for a container. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation

The value must be an integer between 2 and 10, inclusive. The default value is 5 if unspecified.

int32 container_log_max_files = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearContainerLogMaxSize()

public NodeKubeletConfig.Builder clearContainerLogMaxSize()

Optional. Defines the maximum size of the container log file before it is rotated. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation

Valid format is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be between 10Mi and 500Mi, inclusive.

Note that the total container log size (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the node, to avoid disk pressure caused by log files.

The default value is 10Mi if unspecified.

string container_log_max_size = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearCpuCfsQuota()

public NodeKubeletConfig.Builder clearCpuCfsQuota()

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
Type Description
NodeKubeletConfig.Builder

clearCpuCfsQuotaPeriod()

public NodeKubeletConfig.Builder clearCpuCfsQuotaPeriod()

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
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearCpuManagerPolicy()

public NodeKubeletConfig.Builder clearCpuManagerPolicy()

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
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NodeKubeletConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

clearImageGcHighThresholdPercent()

public NodeKubeletConfig.Builder clearImageGcHighThresholdPercent()

Optional. Defines the percent of disk usage after which image garbage collection is always run. The percent is calculated as this field value out of 100.

The value must be between 10 and 85, inclusive and greater than image_gc_low_threshold_percent.

The default value is 85 if unspecified.

int32 image_gc_high_threshold_percent = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearImageGcLowThresholdPercent()

public NodeKubeletConfig.Builder clearImageGcLowThresholdPercent()

Optional. Defines the percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to. The percent is calculated as this field value out of 100.

The value must be between 10 and 85, inclusive and smaller than image_gc_high_threshold_percent.

The default value is 80 if unspecified.

int32 image_gc_low_threshold_percent = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearImageMaximumGcAge()

public NodeKubeletConfig.Builder clearImageMaximumGcAge()

Optional. Defines the maximum age an image can be unused before it is garbage collected. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

The value must be a positive duration greater than image_minimum_gc_age or "0s".

The default value is "0s" if unspecified, which disables this field, meaning images won't be garbage collected based on being unused for too long.

string image_maximum_gc_age = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearImageMinimumGcAge()

public NodeKubeletConfig.Builder clearImageMinimumGcAge()

Optional. Defines the minimum age for an unused image before it is garbage collected.

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

The value must be a positive duration less than or equal to 2 minutes.

The default value is "2m0s" if unspecified.

string image_minimum_gc_age = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearInsecureKubeletReadonlyPortEnabled()

public NodeKubeletConfig.Builder clearInsecureKubeletReadonlyPortEnabled()

Enable or disable Kubelet read only port.

optional bool insecure_kubelet_readonly_port_enabled = 7;

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearMemoryManager()

public NodeKubeletConfig.Builder clearMemoryManager()

Optional. Controls NUMA-aware Memory Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/

.google.container.v1.MemoryManager memory_manager = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NodeKubeletConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

clearPodPidsLimit()

public NodeKubeletConfig.Builder clearPodPidsLimit()

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
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

clearTopologyManager()

public NodeKubeletConfig.Builder clearTopologyManager()

Optional. Controls Topology Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/

.google.container.v1.TopologyManager topology_manager = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.Builder

clone()

public NodeKubeletConfig.Builder clone()
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

getAllowedUnsafeSysctls(int index)

public String getAllowedUnsafeSysctls(int index)

Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in *).

The unsafe namespaced sysctl groups are kernel.shm, kernel.msg, kernel.sem, fs.mqueue., and net.. Leaving this allowlist empty means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For example: kernel.msg*,net.ipv4.route.min_pmtu.

See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.

repeated string allowed_unsafe_sysctls = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedUnsafeSysctls at the given index.

getAllowedUnsafeSysctlsBytes(int index)

public ByteString getAllowedUnsafeSysctlsBytes(int index)

Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in *).

The unsafe namespaced sysctl groups are kernel.shm, kernel.msg, kernel.sem, fs.mqueue., and net.. Leaving this allowlist empty means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For example: kernel.msg*,net.ipv4.route.min_pmtu.

See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.

repeated string allowed_unsafe_sysctls = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedUnsafeSysctls at the given index.

getAllowedUnsafeSysctlsCount()

public int getAllowedUnsafeSysctlsCount()

Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in *).

The unsafe namespaced sysctl groups are kernel.shm, kernel.msg, kernel.sem, fs.mqueue., and net.. Leaving this allowlist empty means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For example: kernel.msg*,net.ipv4.route.min_pmtu.

See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.

repeated string allowed_unsafe_sysctls = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of allowedUnsafeSysctls.

getAllowedUnsafeSysctlsList()

public ProtocolStringList getAllowedUnsafeSysctlsList()

Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in *).

The unsafe namespaced sysctl groups are kernel.shm, kernel.msg, kernel.sem, fs.mqueue., and net.. Leaving this allowlist empty means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For example: kernel.msg*,net.ipv4.route.min_pmtu.

See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.

repeated string allowed_unsafe_sysctls = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the allowedUnsafeSysctls.

getContainerLogMaxFiles()

public int getContainerLogMaxFiles()

Optional. Defines the maximum number of container log files that can be present for a container. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation

The value must be an integer between 2 and 10, inclusive. The default value is 5 if unspecified.

int32 container_log_max_files = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The containerLogMaxFiles.

getContainerLogMaxSize()

public String getContainerLogMaxSize()

Optional. Defines the maximum size of the container log file before it is rotated. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation

Valid format is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be between 10Mi and 500Mi, inclusive.

Note that the total container log size (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the node, to avoid disk pressure caused by log files.

The default value is 10Mi if unspecified.

string container_log_max_size = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The containerLogMaxSize.

getContainerLogMaxSizeBytes()

public ByteString getContainerLogMaxSizeBytes()

Optional. Defines the maximum size of the container log file before it is rotated. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation

Valid format is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be between 10Mi and 500Mi, inclusive.

Note that the total container log size (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the node, to avoid disk pressure caused by log files.

The default value is 10Mi if unspecified.

string container_log_max_size = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for containerLogMaxSize.

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
Type Description
BoolValue

The cpuCfsQuota.

getCpuCfsQuotaBuilder()

public BoolValue.Builder getCpuCfsQuotaBuilder()

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
Type Description
Builder

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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for cpuManagerPolicy.

getDefaultInstanceForType()

public NodeKubeletConfig getDefaultInstanceForType()
Returns
Type Description
NodeKubeletConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getImageGcHighThresholdPercent()

public int getImageGcHighThresholdPercent()

Optional. Defines the percent of disk usage after which image garbage collection is always run. The percent is calculated as this field value out of 100.

The value must be between 10 and 85, inclusive and greater than image_gc_low_threshold_percent.

The default value is 85 if unspecified.

int32 image_gc_high_threshold_percent = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The imageGcHighThresholdPercent.

getImageGcLowThresholdPercent()

public int getImageGcLowThresholdPercent()

Optional. Defines the percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to. The percent is calculated as this field value out of 100.

The value must be between 10 and 85, inclusive and smaller than image_gc_high_threshold_percent.

The default value is 80 if unspecified.

int32 image_gc_low_threshold_percent = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The imageGcLowThresholdPercent.

getImageMaximumGcAge()

public String getImageMaximumGcAge()

Optional. Defines the maximum age an image can be unused before it is garbage collected. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

The value must be a positive duration greater than image_minimum_gc_age or "0s".

The default value is "0s" if unspecified, which disables this field, meaning images won't be garbage collected based on being unused for too long.

string image_maximum_gc_age = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The imageMaximumGcAge.

getImageMaximumGcAgeBytes()

public ByteString getImageMaximumGcAgeBytes()

Optional. Defines the maximum age an image can be unused before it is garbage collected. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

The value must be a positive duration greater than image_minimum_gc_age or "0s".

The default value is "0s" if unspecified, which disables this field, meaning images won't be garbage collected based on being unused for too long.

string image_maximum_gc_age = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for imageMaximumGcAge.

getImageMinimumGcAge()

public String getImageMinimumGcAge()

Optional. Defines the minimum age for an unused image before it is garbage collected.

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

The value must be a positive duration less than or equal to 2 minutes.

The default value is "2m0s" if unspecified.

string image_minimum_gc_age = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The imageMinimumGcAge.

getImageMinimumGcAgeBytes()

public ByteString getImageMinimumGcAgeBytes()

Optional. Defines the minimum age for an unused image before it is garbage collected.

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

The value must be a positive duration less than or equal to 2 minutes.

The default value is "2m0s" if unspecified.

string image_minimum_gc_age = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for imageMinimumGcAge.

getInsecureKubeletReadonlyPortEnabled()

public boolean getInsecureKubeletReadonlyPortEnabled()

Enable or disable Kubelet read only port.

optional bool insecure_kubelet_readonly_port_enabled = 7;

Returns
Type Description
boolean

The insecureKubeletReadonlyPortEnabled.

getMemoryManager()

public MemoryManager getMemoryManager()

Optional. Controls NUMA-aware Memory Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/

.google.container.v1.MemoryManager memory_manager = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MemoryManager

The memoryManager.

getMemoryManagerBuilder()

public MemoryManager.Builder getMemoryManagerBuilder()

Optional. Controls NUMA-aware Memory Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/

.google.container.v1.MemoryManager memory_manager = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MemoryManager.Builder

getMemoryManagerOrBuilder()

public MemoryManagerOrBuilder getMemoryManagerOrBuilder()

Optional. Controls NUMA-aware Memory Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/

.google.container.v1.MemoryManager memory_manager = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MemoryManagerOrBuilder

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
Type Description
long

The podPidsLimit.

getTopologyManager()

public TopologyManager getTopologyManager()

Optional. Controls Topology Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/

.google.container.v1.TopologyManager topology_manager = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TopologyManager

The topologyManager.

getTopologyManagerBuilder()

public TopologyManager.Builder getTopologyManagerBuilder()

Optional. Controls Topology Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/

.google.container.v1.TopologyManager topology_manager = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TopologyManager.Builder

getTopologyManagerOrBuilder()

public TopologyManagerOrBuilder getTopologyManagerOrBuilder()

Optional. Controls Topology Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/

.google.container.v1.TopologyManager topology_manager = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TopologyManagerOrBuilder

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
Type Description
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
Type Description
boolean

Whether the insecureKubeletReadonlyPortEnabled field is set.

hasMemoryManager()

public boolean hasMemoryManager()

Optional. Controls NUMA-aware Memory Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/

.google.container.v1.MemoryManager memory_manager = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the memoryManager field is set.

hasTopologyManager()

public boolean hasTopologyManager()

Optional. Controls Topology Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/

.google.container.v1.TopologyManager topology_manager = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the topologyManager field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCpuCfsQuota(BoolValue value)

public NodeKubeletConfig.Builder mergeCpuCfsQuota(BoolValue value)

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;

Parameter
Name Description
value BoolValue
Returns
Type Description
NodeKubeletConfig.Builder

mergeFrom(NodeKubeletConfig other)

public NodeKubeletConfig.Builder mergeFrom(NodeKubeletConfig other)
Parameter
Name Description
other NodeKubeletConfig
Returns
Type Description
NodeKubeletConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NodeKubeletConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeKubeletConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NodeKubeletConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

mergeMemoryManager(MemoryManager value)

public NodeKubeletConfig.Builder mergeMemoryManager(MemoryManager value)

Optional. Controls NUMA-aware Memory Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/

.google.container.v1.MemoryManager memory_manager = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MemoryManager
Returns
Type Description
NodeKubeletConfig.Builder

mergeTopologyManager(TopologyManager value)

public NodeKubeletConfig.Builder mergeTopologyManager(TopologyManager value)

Optional. Controls Topology Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/

.google.container.v1.TopologyManager topology_manager = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TopologyManager
Returns
Type Description
NodeKubeletConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeKubeletConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

setAllowedUnsafeSysctls(int index, String value)

public NodeKubeletConfig.Builder setAllowedUnsafeSysctls(int index, String value)

Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in *).

The unsafe namespaced sysctl groups are kernel.shm, kernel.msg, kernel.sem, fs.mqueue., and net.. Leaving this allowlist empty means they cannot be set on Pods.

To allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For example: kernel.msg*,net.ipv4.route.min_pmtu.

See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.

repeated string allowed_unsafe_sysctls = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedUnsafeSysctls to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setContainerLogMaxFiles(int value)

public NodeKubeletConfig.Builder setContainerLogMaxFiles(int value)

Optional. Defines the maximum number of container log files that can be present for a container. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation

The value must be an integer between 2 and 10, inclusive. The default value is 5 if unspecified.

int32 container_log_max_files = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The containerLogMaxFiles to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setContainerLogMaxSize(String value)

public NodeKubeletConfig.Builder setContainerLogMaxSize(String value)

Optional. Defines the maximum size of the container log file before it is rotated. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation

Valid format is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be between 10Mi and 500Mi, inclusive.

Note that the total container log size (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the node, to avoid disk pressure caused by log files.

The default value is 10Mi if unspecified.

string container_log_max_size = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The containerLogMaxSize to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setContainerLogMaxSizeBytes(ByteString value)

public NodeKubeletConfig.Builder setContainerLogMaxSizeBytes(ByteString value)

Optional. Defines the maximum size of the container log file before it is rotated. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation

Valid format is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be between 10Mi and 500Mi, inclusive.

Note that the total container log size (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the node, to avoid disk pressure caused by log files.

The default value is 10Mi if unspecified.

string container_log_max_size = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for containerLogMaxSize to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setCpuCfsQuota(BoolValue value)

public NodeKubeletConfig.Builder setCpuCfsQuota(BoolValue value)

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;

Parameter
Name Description
value BoolValue
Returns
Type Description
NodeKubeletConfig.Builder

setCpuCfsQuota(BoolValue.Builder builderForValue)

public NodeKubeletConfig.Builder setCpuCfsQuota(BoolValue.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
NodeKubeletConfig.Builder

setCpuCfsQuotaPeriod(String value)

public NodeKubeletConfig.Builder setCpuCfsQuotaPeriod(String value)

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;

Parameter
Name Description
value String

The cpuCfsQuotaPeriod to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setCpuCfsQuotaPeriodBytes(ByteString value)

public NodeKubeletConfig.Builder setCpuCfsQuotaPeriodBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for cpuCfsQuotaPeriod to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setCpuManagerPolicy(String value)

public NodeKubeletConfig.Builder setCpuManagerPolicy(String value)

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;

Parameter
Name Description
value String

The cpuManagerPolicy to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setCpuManagerPolicyBytes(ByteString value)

public NodeKubeletConfig.Builder setCpuManagerPolicyBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for cpuManagerPolicy to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NodeKubeletConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

setImageGcHighThresholdPercent(int value)

public NodeKubeletConfig.Builder setImageGcHighThresholdPercent(int value)

Optional. Defines the percent of disk usage after which image garbage collection is always run. The percent is calculated as this field value out of 100.

The value must be between 10 and 85, inclusive and greater than image_gc_low_threshold_percent.

The default value is 85 if unspecified.

int32 image_gc_high_threshold_percent = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The imageGcHighThresholdPercent to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setImageGcLowThresholdPercent(int value)

public NodeKubeletConfig.Builder setImageGcLowThresholdPercent(int value)

Optional. Defines the percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to. The percent is calculated as this field value out of 100.

The value must be between 10 and 85, inclusive and smaller than image_gc_high_threshold_percent.

The default value is 80 if unspecified.

int32 image_gc_low_threshold_percent = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The imageGcLowThresholdPercent to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setImageMaximumGcAge(String value)

public NodeKubeletConfig.Builder setImageMaximumGcAge(String value)

Optional. Defines the maximum age an image can be unused before it is garbage collected. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

The value must be a positive duration greater than image_minimum_gc_age or "0s".

The default value is "0s" if unspecified, which disables this field, meaning images won't be garbage collected based on being unused for too long.

string image_maximum_gc_age = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The imageMaximumGcAge to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setImageMaximumGcAgeBytes(ByteString value)

public NodeKubeletConfig.Builder setImageMaximumGcAgeBytes(ByteString value)

Optional. Defines the maximum age an image can be unused before it is garbage collected. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

The value must be a positive duration greater than image_minimum_gc_age or "0s".

The default value is "0s" if unspecified, which disables this field, meaning images won't be garbage collected based on being unused for too long.

string image_maximum_gc_age = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for imageMaximumGcAge to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setImageMinimumGcAge(String value)

public NodeKubeletConfig.Builder setImageMinimumGcAge(String value)

Optional. Defines the minimum age for an unused image before it is garbage collected.

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

The value must be a positive duration less than or equal to 2 minutes.

The default value is "2m0s" if unspecified.

string image_minimum_gc_age = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The imageMinimumGcAge to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setImageMinimumGcAgeBytes(ByteString value)

public NodeKubeletConfig.Builder setImageMinimumGcAgeBytes(ByteString value)

Optional. Defines the minimum age for an unused image before it is garbage collected.

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

The value must be a positive duration less than or equal to 2 minutes.

The default value is "2m0s" if unspecified.

string image_minimum_gc_age = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for imageMinimumGcAge to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setInsecureKubeletReadonlyPortEnabled(boolean value)

public NodeKubeletConfig.Builder setInsecureKubeletReadonlyPortEnabled(boolean value)

Enable or disable Kubelet read only port.

optional bool insecure_kubelet_readonly_port_enabled = 7;

Parameter
Name Description
value boolean

The insecureKubeletReadonlyPortEnabled to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setMemoryManager(MemoryManager value)

public NodeKubeletConfig.Builder setMemoryManager(MemoryManager value)

Optional. Controls NUMA-aware Memory Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/

.google.container.v1.MemoryManager memory_manager = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MemoryManager
Returns
Type Description
NodeKubeletConfig.Builder

setMemoryManager(MemoryManager.Builder builderForValue)

public NodeKubeletConfig.Builder setMemoryManager(MemoryManager.Builder builderForValue)

Optional. Controls NUMA-aware Memory Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/

.google.container.v1.MemoryManager memory_manager = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue MemoryManager.Builder
Returns
Type Description
NodeKubeletConfig.Builder

setPodPidsLimit(long value)

public NodeKubeletConfig.Builder setPodPidsLimit(long value)

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;

Parameter
Name Description
value long

The podPidsLimit to set.

Returns
Type Description
NodeKubeletConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NodeKubeletConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NodeKubeletConfig.Builder
Overrides

setTopologyManager(TopologyManager value)

public NodeKubeletConfig.Builder setTopologyManager(TopologyManager value)

Optional. Controls Topology Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/

.google.container.v1.TopologyManager topology_manager = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TopologyManager
Returns
Type Description
NodeKubeletConfig.Builder

setTopologyManager(TopologyManager.Builder builderForValue)

public NodeKubeletConfig.Builder setTopologyManager(TopologyManager.Builder builderForValue)

Optional. Controls Topology Manager configuration on the node. For more information, see: https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/

.google.container.v1.TopologyManager topology_manager = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TopologyManager.Builder
Returns
Type Description
NodeKubeletConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeKubeletConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeKubeletConfig.Builder
Overrides