Class 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 type google.container.v1beta1.NodeKubeletConfig
    See Also:
    Serialized Form
    • 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 class com.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 class com.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 interface NodeKubeletConfigOrBuilder
        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 interface NodeKubeletConfigOrBuilder
        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 interface NodeKubeletConfigOrBuilder
        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 interface NodeKubeletConfigOrBuilder
        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 interface NodeKubeletConfigOrBuilder
      • 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 interface NodeKubeletConfigOrBuilder
        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 interface NodeKubeletConfigOrBuilder
        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 interface NodeKubeletConfigOrBuilder
        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 interface NodeKubeletConfigOrBuilder
        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 interface NodeKubeletConfigOrBuilder
        Returns:
        The insecureKubeletReadonlyPortEnabled.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Throws:
        IOException
      • newBuilderForType

        public NodeKubeletConfig.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public NodeKubeletConfig.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected NodeKubeletConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<NodeKubeletConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public NodeKubeletConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder