- 2.73.0 (latest)
- 2.71.0
- 2.70.0
- 2.67.0
- 2.66.0
- 2.65.0
- 2.63.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.2
- 2.4.1
- 2.3.8
public static final class NodeKubeletConfig.Builder extends GeneratedMessageV3.Builder<NodeKubeletConfig.Builder> implements NodeKubeletConfigOrBuilder
Node kubelet configs.
Protobuf type google.container.v1.NodeKubeletConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NodeKubeletConfig.BuilderImplements
NodeKubeletConfigOrBuilderStatic 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 |
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 |
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. |
clearEvictionMaxPodGracePeriodSeconds()
public NodeKubeletConfig.Builder clearEvictionMaxPodGracePeriodSeconds()
Optional. eviction_max_pod_grace_period_seconds is the maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met. This value effectively caps the Pod's terminationGracePeriodSeconds value during soft evictions. Default: 0. Range: [0, 300].
int32 eviction_max_pod_grace_period_seconds = 20 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
This builder for chaining. |
clearEvictionMinimumReclaim()
public NodeKubeletConfig.Builder clearEvictionMinimumReclaim()
Optional. eviction_minimum_reclaim is a map of signal names to quantities that defines minimum reclaims, which describe the minimum amount of a given resource the kubelet will reclaim when performing a pod eviction while that resource is under pressure.
.google.container.v1.EvictionMinimumReclaim eviction_minimum_reclaim = 19 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
clearEvictionSoft()
public NodeKubeletConfig.Builder clearEvictionSoft()
Optional. eviction_soft is a map of signal names to quantities that defines soft eviction thresholds. Each signal is compared to its corresponding threshold to determine if a pod eviction should occur.
.google.container.v1.EvictionSignals eviction_soft = 17 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
clearEvictionSoftGracePeriod()
public NodeKubeletConfig.Builder clearEvictionSoftGracePeriod()
Optional. eviction_soft_grace_period is a map of signal names to quantities that defines grace periods for each soft eviction signal. The grace period is the amount of time that a pod must be under pressure before an eviction occurs.
.google.container.v1.EvictionGracePeriod eviction_soft_grace_period = 18 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public NodeKubeletConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
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. |
clearMaxParallelImagePulls()
public NodeKubeletConfig.Builder clearMaxParallelImagePulls()
Optional. Defines the maximum number of image pulls in parallel. The range is 2 to 5, inclusive. The default value is 2 or 3 depending on the disk type.
See https://kubernetes.io/docs/concepts/containers/images/#maximum-parallel-image-pulls for more details.
int32 max_parallel_image_pulls = 21 [(.google.api.field_behavior) = OPTIONAL];
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 |
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. |
clearSingleProcessOomKill()
public NodeKubeletConfig.Builder clearSingleProcessOomKill()
Optional. Defines whether to enable single process OOM killer. If true, will prevent the memory.oom.group flag from being set for container cgroups in cgroups v2. This causes processes in the container to be OOM killed individually instead of as a group.
optional bool single_process_oom_kill = 22 [(.google.api.field_behavior) = OPTIONAL];
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 |
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 |
getEvictionMaxPodGracePeriodSeconds()
public int getEvictionMaxPodGracePeriodSeconds()
Optional. eviction_max_pod_grace_period_seconds is the maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met. This value effectively caps the Pod's terminationGracePeriodSeconds value during soft evictions. Default: 0. Range: [0, 300].
int32 eviction_max_pod_grace_period_seconds = 20 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The evictionMaxPodGracePeriodSeconds. |
getEvictionMinimumReclaim()
public EvictionMinimumReclaim getEvictionMinimumReclaim()
Optional. eviction_minimum_reclaim is a map of signal names to quantities that defines minimum reclaims, which describe the minimum amount of a given resource the kubelet will reclaim when performing a pod eviction while that resource is under pressure.
.google.container.v1.EvictionMinimumReclaim eviction_minimum_reclaim = 19 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EvictionMinimumReclaim |
The evictionMinimumReclaim. |
getEvictionMinimumReclaimBuilder()
public EvictionMinimumReclaim.Builder getEvictionMinimumReclaimBuilder()
Optional. eviction_minimum_reclaim is a map of signal names to quantities that defines minimum reclaims, which describe the minimum amount of a given resource the kubelet will reclaim when performing a pod eviction while that resource is under pressure.
.google.container.v1.EvictionMinimumReclaim eviction_minimum_reclaim = 19 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EvictionMinimumReclaim.Builder |
getEvictionMinimumReclaimOrBuilder()
public EvictionMinimumReclaimOrBuilder getEvictionMinimumReclaimOrBuilder()
Optional. eviction_minimum_reclaim is a map of signal names to quantities that defines minimum reclaims, which describe the minimum amount of a given resource the kubelet will reclaim when performing a pod eviction while that resource is under pressure.
.google.container.v1.EvictionMinimumReclaim eviction_minimum_reclaim = 19 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EvictionMinimumReclaimOrBuilder |
getEvictionSoft()
public EvictionSignals getEvictionSoft()
Optional. eviction_soft is a map of signal names to quantities that defines soft eviction thresholds. Each signal is compared to its corresponding threshold to determine if a pod eviction should occur.
.google.container.v1.EvictionSignals eviction_soft = 17 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EvictionSignals |
The evictionSoft. |
getEvictionSoftBuilder()
public EvictionSignals.Builder getEvictionSoftBuilder()
Optional. eviction_soft is a map of signal names to quantities that defines soft eviction thresholds. Each signal is compared to its corresponding threshold to determine if a pod eviction should occur.
.google.container.v1.EvictionSignals eviction_soft = 17 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EvictionSignals.Builder |
getEvictionSoftGracePeriod()
public EvictionGracePeriod getEvictionSoftGracePeriod()
Optional. eviction_soft_grace_period is a map of signal names to quantities that defines grace periods for each soft eviction signal. The grace period is the amount of time that a pod must be under pressure before an eviction occurs.
.google.container.v1.EvictionGracePeriod eviction_soft_grace_period = 18 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EvictionGracePeriod |
The evictionSoftGracePeriod. |
getEvictionSoftGracePeriodBuilder()
public EvictionGracePeriod.Builder getEvictionSoftGracePeriodBuilder()
Optional. eviction_soft_grace_period is a map of signal names to quantities that defines grace periods for each soft eviction signal. The grace period is the amount of time that a pod must be under pressure before an eviction occurs.
.google.container.v1.EvictionGracePeriod eviction_soft_grace_period = 18 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EvictionGracePeriod.Builder |
getEvictionSoftGracePeriodOrBuilder()
public EvictionGracePeriodOrBuilder getEvictionSoftGracePeriodOrBuilder()
Optional. eviction_soft_grace_period is a map of signal names to quantities that defines grace periods for each soft eviction signal. The grace period is the amount of time that a pod must be under pressure before an eviction occurs.
.google.container.v1.EvictionGracePeriod eviction_soft_grace_period = 18 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EvictionGracePeriodOrBuilder |
getEvictionSoftOrBuilder()
public EvictionSignalsOrBuilder getEvictionSoftOrBuilder()
Optional. eviction_soft is a map of signal names to quantities that defines soft eviction thresholds. Each signal is compared to its corresponding threshold to determine if a pod eviction should occur.
.google.container.v1.EvictionSignals eviction_soft = 17 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EvictionSignalsOrBuilder |
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. |
getMaxParallelImagePulls()
public int getMaxParallelImagePulls()
Optional. Defines the maximum number of image pulls in parallel. The range is 2 to 5, inclusive. The default value is 2 or 3 depending on the disk type.
See https://kubernetes.io/docs/concepts/containers/images/#maximum-parallel-image-pulls for more details.
int32 max_parallel_image_pulls = 21 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The maxParallelImagePulls. |
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. |
getSingleProcessOomKill()
public boolean getSingleProcessOomKill()
Optional. Defines whether to enable single process OOM killer. If true, will prevent the memory.oom.group flag from being set for container cgroups in cgroups v2. This causes processes in the container to be OOM killed individually instead of as a group.
optional bool single_process_oom_kill = 22 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
The singleProcessOomKill. |
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. |
hasEvictionMinimumReclaim()
public boolean hasEvictionMinimumReclaim()
Optional. eviction_minimum_reclaim is a map of signal names to quantities that defines minimum reclaims, which describe the minimum amount of a given resource the kubelet will reclaim when performing a pod eviction while that resource is under pressure.
.google.container.v1.EvictionMinimumReclaim eviction_minimum_reclaim = 19 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the evictionMinimumReclaim field is set. |
hasEvictionSoft()
public boolean hasEvictionSoft()
Optional. eviction_soft is a map of signal names to quantities that defines soft eviction thresholds. Each signal is compared to its corresponding threshold to determine if a pod eviction should occur.
.google.container.v1.EvictionSignals eviction_soft = 17 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the evictionSoft field is set. |
hasEvictionSoftGracePeriod()
public boolean hasEvictionSoftGracePeriod()
Optional. eviction_soft_grace_period is a map of signal names to quantities that defines grace periods for each soft eviction signal. The grace period is the amount of time that a pod must be under pressure before an eviction occurs.
.google.container.v1.EvictionGracePeriod eviction_soft_grace_period = 18 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the evictionSoftGracePeriod 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. |
hasSingleProcessOomKill()
public boolean hasSingleProcessOomKill()
Optional. Defines whether to enable single process OOM killer. If true, will prevent the memory.oom.group flag from being set for container cgroups in cgroups v2. This causes processes in the container to be OOM killed individually instead of as a group.
optional bool single_process_oom_kill = 22 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the singleProcessOomKill 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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
mergeEvictionMinimumReclaim(EvictionMinimumReclaim value)
public NodeKubeletConfig.Builder mergeEvictionMinimumReclaim(EvictionMinimumReclaim value)
Optional. eviction_minimum_reclaim is a map of signal names to quantities that defines minimum reclaims, which describe the minimum amount of a given resource the kubelet will reclaim when performing a pod eviction while that resource is under pressure.
.google.container.v1.EvictionMinimumReclaim eviction_minimum_reclaim = 19 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
EvictionMinimumReclaim |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
mergeEvictionSoft(EvictionSignals value)
public NodeKubeletConfig.Builder mergeEvictionSoft(EvictionSignals value)
Optional. eviction_soft is a map of signal names to quantities that defines soft eviction thresholds. Each signal is compared to its corresponding threshold to determine if a pod eviction should occur.
.google.container.v1.EvictionSignals eviction_soft = 17 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
EvictionSignals |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
mergeEvictionSoftGracePeriod(EvictionGracePeriod value)
public NodeKubeletConfig.Builder mergeEvictionSoftGracePeriod(EvictionGracePeriod value)
Optional. eviction_soft_grace_period is a map of signal names to quantities that defines grace periods for each soft eviction signal. The grace period is the amount of time that a pod must be under pressure before an eviction occurs.
.google.container.v1.EvictionGracePeriod eviction_soft_grace_period = 18 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
EvictionGracePeriod |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public NodeKubeletConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
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 |
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. |
setEvictionMaxPodGracePeriodSeconds(int value)
public NodeKubeletConfig.Builder setEvictionMaxPodGracePeriodSeconds(int value)
Optional. eviction_max_pod_grace_period_seconds is the maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met. This value effectively caps the Pod's terminationGracePeriodSeconds value during soft evictions. Default: 0. Range: [0, 300].
int32 eviction_max_pod_grace_period_seconds = 20 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The evictionMaxPodGracePeriodSeconds to set. |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
This builder for chaining. |
setEvictionMinimumReclaim(EvictionMinimumReclaim value)
public NodeKubeletConfig.Builder setEvictionMinimumReclaim(EvictionMinimumReclaim value)
Optional. eviction_minimum_reclaim is a map of signal names to quantities that defines minimum reclaims, which describe the minimum amount of a given resource the kubelet will reclaim when performing a pod eviction while that resource is under pressure.
.google.container.v1.EvictionMinimumReclaim eviction_minimum_reclaim = 19 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
EvictionMinimumReclaim |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
setEvictionMinimumReclaim(EvictionMinimumReclaim.Builder builderForValue)
public NodeKubeletConfig.Builder setEvictionMinimumReclaim(EvictionMinimumReclaim.Builder builderForValue)
Optional. eviction_minimum_reclaim is a map of signal names to quantities that defines minimum reclaims, which describe the minimum amount of a given resource the kubelet will reclaim when performing a pod eviction while that resource is under pressure.
.google.container.v1.EvictionMinimumReclaim eviction_minimum_reclaim = 19 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
EvictionMinimumReclaim.Builder |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
setEvictionSoft(EvictionSignals value)
public NodeKubeletConfig.Builder setEvictionSoft(EvictionSignals value)
Optional. eviction_soft is a map of signal names to quantities that defines soft eviction thresholds. Each signal is compared to its corresponding threshold to determine if a pod eviction should occur.
.google.container.v1.EvictionSignals eviction_soft = 17 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
EvictionSignals |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
setEvictionSoft(EvictionSignals.Builder builderForValue)
public NodeKubeletConfig.Builder setEvictionSoft(EvictionSignals.Builder builderForValue)
Optional. eviction_soft is a map of signal names to quantities that defines soft eviction thresholds. Each signal is compared to its corresponding threshold to determine if a pod eviction should occur.
.google.container.v1.EvictionSignals eviction_soft = 17 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
EvictionSignals.Builder |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
setEvictionSoftGracePeriod(EvictionGracePeriod value)
public NodeKubeletConfig.Builder setEvictionSoftGracePeriod(EvictionGracePeriod value)
Optional. eviction_soft_grace_period is a map of signal names to quantities that defines grace periods for each soft eviction signal. The grace period is the amount of time that a pod must be under pressure before an eviction occurs.
.google.container.v1.EvictionGracePeriod eviction_soft_grace_period = 18 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
EvictionGracePeriod |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
setEvictionSoftGracePeriod(EvictionGracePeriod.Builder builderForValue)
public NodeKubeletConfig.Builder setEvictionSoftGracePeriod(EvictionGracePeriod.Builder builderForValue)
Optional. eviction_soft_grace_period is a map of signal names to quantities that defines grace periods for each soft eviction signal. The grace period is the amount of time that a pod must be under pressure before an eviction occurs.
.google.container.v1.EvictionGracePeriod eviction_soft_grace_period = 18 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
EvictionGracePeriod.Builder |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
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 |
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. |
setMaxParallelImagePulls(int value)
public NodeKubeletConfig.Builder setMaxParallelImagePulls(int value)
Optional. Defines the maximum number of image pulls in parallel. The range is 2 to 5, inclusive. The default value is 2 or 3 depending on the disk type.
See https://kubernetes.io/docs/concepts/containers/images/#maximum-parallel-image-pulls for more details.
int32 max_parallel_image_pulls = 21 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The maxParallelImagePulls 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 |
setSingleProcessOomKill(boolean value)
public NodeKubeletConfig.Builder setSingleProcessOomKill(boolean value)
Optional. Defines whether to enable single process OOM killer. If true, will prevent the memory.oom.group flag from being set for container cgroups in cgroups v2. This causes processes in the container to be OOM killed individually instead of as a group.
optional bool single_process_oom_kill = 22 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
boolean The singleProcessOomKill to set. |
Returns | |
---|---|
Type | Description |
NodeKubeletConfig.Builder |
This builder for chaining. |
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 |