Package com.google.container.v1
Class NodeKubeletConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.container.v1.NodeKubeletConfig
-
- All Implemented Interfaces:
NodeKubeletConfigOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class NodeKubeletConfig extends com.google.protobuf.GeneratedMessageV3 implements NodeKubeletConfigOrBuilder
Node kubelet configs.
Protobuf typegoogle.container.v1.NodeKubeletConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeKubeletConfig.Builder
Node kubelet configs.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CPU_CFS_QUOTA_FIELD_NUMBER
static int
CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER
static int
CPU_MANAGER_POLICY_FIELD_NUMBER
static int
INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER
static int
POD_PIDS_LIMIT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
com.google.protobuf.BoolValue
getCpuCfsQuota()
Enable CPU CFS quota enforcement for containers that specify CPU limits.com.google.protobuf.BoolValueOrBuilder
getCpuCfsQuotaOrBuilder()
Enable CPU CFS quota enforcement for containers that specify CPU limits.String
getCpuCfsQuotaPeriod()
Set the CPU CFS quota period value 'cpu.cfs_period_us'.com.google.protobuf.ByteString
getCpuCfsQuotaPeriodBytes()
Set the CPU CFS quota period value 'cpu.cfs_period_us'.String
getCpuManagerPolicy()
Control the CPU management policy on the node.com.google.protobuf.ByteString
getCpuManagerPolicyBytes()
Control the CPU management policy on the node.static NodeKubeletConfig
getDefaultInstance()
NodeKubeletConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
boolean
getInsecureKubeletReadonlyPortEnabled()
Enable or disable Kubelet read only port.com.google.protobuf.Parser<NodeKubeletConfig>
getParserForType()
long
getPodPidsLimit()
Set the Pod PID limits.int
getSerializedSize()
boolean
hasCpuCfsQuota()
Enable CPU CFS quota enforcement for containers that specify CPU limits.int
hashCode()
boolean
hasInsecureKubeletReadonlyPortEnabled()
Enable or disable Kubelet read only port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static NodeKubeletConfig.Builder
newBuilder()
static NodeKubeletConfig.Builder
newBuilder(NodeKubeletConfig prototype)
NodeKubeletConfig.Builder
newBuilderForType()
protected NodeKubeletConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static NodeKubeletConfig
parseDelimitedFrom(InputStream input)
static NodeKubeletConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NodeKubeletConfig
parseFrom(byte[] data)
static NodeKubeletConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NodeKubeletConfig
parseFrom(com.google.protobuf.ByteString data)
static NodeKubeletConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NodeKubeletConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static NodeKubeletConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NodeKubeletConfig
parseFrom(InputStream input)
static NodeKubeletConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NodeKubeletConfig
parseFrom(ByteBuffer data)
static NodeKubeletConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<NodeKubeletConfig>
parser()
NodeKubeletConfig.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CPU_MANAGER_POLICY_FIELD_NUMBER
public static final int CPU_MANAGER_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CPU_CFS_QUOTA_FIELD_NUMBER
public static final int CPU_CFS_QUOTA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER
public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POD_PIDS_LIMIT_FIELD_NUMBER
public static final int POD_PIDS_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER
public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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;
- Specified by:
getCpuManagerPolicy
in interfaceNodeKubeletConfigOrBuilder
- Returns:
- The cpuManagerPolicy.
-
getCpuManagerPolicyBytes
public com.google.protobuf.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;
- Specified by:
getCpuManagerPolicyBytes
in interfaceNodeKubeletConfigOrBuilder
- Returns:
- The bytes for cpuManagerPolicy.
-
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;
- Specified by:
hasCpuCfsQuota
in interfaceNodeKubeletConfigOrBuilder
- Returns:
- Whether the cpuCfsQuota field is set.
-
getCpuCfsQuota
public com.google.protobuf.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;
- Specified by:
getCpuCfsQuota
in interfaceNodeKubeletConfigOrBuilder
- Returns:
- The cpuCfsQuota.
-
getCpuCfsQuotaOrBuilder
public com.google.protobuf.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;
- Specified by:
getCpuCfsQuotaOrBuilder
in interfaceNodeKubeletConfigOrBuilder
-
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;
- Specified by:
getCpuCfsQuotaPeriod
in interfaceNodeKubeletConfigOrBuilder
- Returns:
- The cpuCfsQuotaPeriod.
-
getCpuCfsQuotaPeriodBytes
public com.google.protobuf.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;
- Specified by:
getCpuCfsQuotaPeriodBytes
in interfaceNodeKubeletConfigOrBuilder
- Returns:
- The bytes for cpuCfsQuotaPeriod.
-
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;
- Specified by:
getPodPidsLimit
in interfaceNodeKubeletConfigOrBuilder
- Returns:
- The podPidsLimit.
-
hasInsecureKubeletReadonlyPortEnabled
public boolean hasInsecureKubeletReadonlyPortEnabled()
Enable or disable Kubelet read only port.
optional bool insecure_kubelet_readonly_port_enabled = 7;
- Specified by:
hasInsecureKubeletReadonlyPortEnabled
in interfaceNodeKubeletConfigOrBuilder
- Returns:
- Whether the insecureKubeletReadonlyPortEnabled field is set.
-
getInsecureKubeletReadonlyPortEnabled
public boolean getInsecureKubeletReadonlyPortEnabled()
Enable or disable Kubelet read only port.
optional bool insecure_kubelet_readonly_port_enabled = 7;
- Specified by:
getInsecureKubeletReadonlyPortEnabled
in interfaceNodeKubeletConfigOrBuilder
- Returns:
- The insecureKubeletReadonlyPortEnabled.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static NodeKubeletConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeKubeletConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeKubeletConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeKubeletConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeKubeletConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeKubeletConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeKubeletConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NodeKubeletConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NodeKubeletConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NodeKubeletConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static NodeKubeletConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NodeKubeletConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public NodeKubeletConfig.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static NodeKubeletConfig.Builder newBuilder()
-
newBuilder
public static NodeKubeletConfig.Builder newBuilder(NodeKubeletConfig prototype)
-
toBuilder
public NodeKubeletConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NodeKubeletConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static NodeKubeletConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<NodeKubeletConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<NodeKubeletConfig> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public NodeKubeletConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-