Class NodeKubeletConfig.Builder

    • Method Detail

      • 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.Builder<NodeKubeletConfig.Builder>
      • clear

        public NodeKubeletConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public NodeKubeletConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • setField

        public NodeKubeletConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • clearField

        public NodeKubeletConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • clearOneof

        public NodeKubeletConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • setRepeatedField

        public NodeKubeletConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • addRepeatedField

        public NodeKubeletConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • mergeFrom

        public NodeKubeletConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NodeKubeletConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • mergeFrom

        public NodeKubeletConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NodeKubeletConfig.Builder>
        Throws:
        IOException
      • 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.
      • setCpuManagerPolicy

        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;
        Parameters:
        value - The cpuManagerPolicy to set.
        Returns:
        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:
        This builder for chaining.
      • setCpuManagerPolicyBytes

        public NodeKubeletConfig.Builder setCpuManagerPolicyBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for cpuManagerPolicy to set.
        Returns:
        This builder for chaining.
      • 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.
      • setCpuCfsQuota

        public NodeKubeletConfig.Builder setCpuCfsQuota​(com.google.protobuf.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;
      • setCpuCfsQuota

        public NodeKubeletConfig.Builder setCpuCfsQuota​(com.google.protobuf.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;
      • mergeCpuCfsQuota

        public NodeKubeletConfig.Builder mergeCpuCfsQuota​(com.google.protobuf.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;
      • 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;
      • getCpuCfsQuotaBuilder

        public com.google.protobuf.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;
      • 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.
      • setCpuCfsQuotaPeriod

        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;
        Parameters:
        value - The cpuCfsQuotaPeriod to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setCpuCfsQuotaPeriodBytes

        public NodeKubeletConfig.Builder setCpuCfsQuotaPeriodBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for cpuCfsQuotaPeriod to set.
        Returns:
        This builder for chaining.
      • 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.
      • setPodPidsLimit

        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;
        Parameters:
        value - The podPidsLimit to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • 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.
      • setInsecureKubeletReadonlyPortEnabled

        public NodeKubeletConfig.Builder setInsecureKubeletReadonlyPortEnabled​(boolean value)
         Enable or disable Kubelet read only port.
         
        optional bool insecure_kubelet_readonly_port_enabled = 7;
        Parameters:
        value - The insecureKubeletReadonlyPortEnabled to set.
        Returns:
        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:
        This builder for chaining.
      • setUnknownFields

        public final NodeKubeletConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>
      • mergeUnknownFields

        public final NodeKubeletConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodeKubeletConfig.Builder>