Class KubeletConfig
See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedUnsafeSysctls property: Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in `*`).Get the containerLogMaxFiles property: The maximum number of container log files that can be present for a container.Get the containerLogMaxSizeMB property: The maximum size (e.g.Get the cpuCfsQuota property: If CPU CFS quota enforcement is enabled for containers that specify CPU limits.Get the cpuCfsQuotaPeriod property: The CPU CFS quota period value.Get the cpuManagerPolicy property: The CPU Manager policy to use.Get the failSwapOn property: If set to true it will make the Kubelet fail to start if swap is enabled on the node.Get the imageGcHighThreshold property: The percent of disk usage after which image garbage collection is always run.Get the imageGcLowThreshold property: The percent of disk usage before which image garbage collection is never run.Get the podMaxPids property: The maximum number of processes per pod.Get the topologyManagerPolicy property: The Topology Manager policy to use.voidvalidate()Validates the instance.withAllowedUnsafeSysctls(List<String> allowedUnsafeSysctls) Set the allowedUnsafeSysctls property: Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in `*`).withContainerLogMaxFiles(Integer containerLogMaxFiles) Set the containerLogMaxFiles property: The maximum number of container log files that can be present for a container.withContainerLogMaxSizeMB(Integer containerLogMaxSizeMB) Set the containerLogMaxSizeMB property: The maximum size (e.g.withCpuCfsQuota(Boolean cpuCfsQuota) Set the cpuCfsQuota property: If CPU CFS quota enforcement is enabled for containers that specify CPU limits.withCpuCfsQuotaPeriod(String cpuCfsQuotaPeriod) Set the cpuCfsQuotaPeriod property: The CPU CFS quota period value.withCpuManagerPolicy(String cpuManagerPolicy) Set the cpuManagerPolicy property: The CPU Manager policy to use.withFailSwapOn(Boolean failSwapOn) Set the failSwapOn property: If set to true it will make the Kubelet fail to start if swap is enabled on the node.withImageGcHighThreshold(Integer imageGcHighThreshold) Set the imageGcHighThreshold property: The percent of disk usage after which image garbage collection is always run.withImageGcLowThreshold(Integer imageGcLowThreshold) Set the imageGcLowThreshold property: The percent of disk usage before which image garbage collection is never run.withPodMaxPids(Integer podMaxPids) Set the podMaxPids property: The maximum number of processes per pod.withTopologyManagerPolicy(String topologyManagerPolicy) Set the topologyManagerPolicy property: The Topology Manager policy to use.
-
Constructor Details
-
KubeletConfig
public KubeletConfig()
-
-
Method Details
-
cpuManagerPolicy
Get the cpuManagerPolicy property: The CPU Manager policy to use.The default is 'none'. See [Kubernetes CPU management policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#cpu-management-policies) for more information. Allowed values are 'none' and 'static'.
- Returns:
- the cpuManagerPolicy value.
-
withCpuManagerPolicy
Set the cpuManagerPolicy property: The CPU Manager policy to use.The default is 'none'. See [Kubernetes CPU management policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#cpu-management-policies) for more information. Allowed values are 'none' and 'static'.
- Parameters:
cpuManagerPolicy- the cpuManagerPolicy value to set.- Returns:
- the KubeletConfig object itself.
-
cpuCfsQuota
Get the cpuCfsQuota property: If CPU CFS quota enforcement is enabled for containers that specify CPU limits.The default is true.
- Returns:
- the cpuCfsQuota value.
-
withCpuCfsQuota
Set the cpuCfsQuota property: If CPU CFS quota enforcement is enabled for containers that specify CPU limits.The default is true.
- Parameters:
cpuCfsQuota- the cpuCfsQuota value to set.- Returns:
- the KubeletConfig object itself.
-
cpuCfsQuotaPeriod
Get the cpuCfsQuotaPeriod property: The CPU CFS quota period value.The default is '100ms.' Valid values are a sequence of decimal numbers with an optional fraction and a unit suffix. For example: '300ms', '2h45m'. Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'.
- Returns:
- the cpuCfsQuotaPeriod value.
-
withCpuCfsQuotaPeriod
Set the cpuCfsQuotaPeriod property: The CPU CFS quota period value.The default is '100ms.' Valid values are a sequence of decimal numbers with an optional fraction and a unit suffix. For example: '300ms', '2h45m'. Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'.
- Parameters:
cpuCfsQuotaPeriod- the cpuCfsQuotaPeriod value to set.- Returns:
- the KubeletConfig object itself.
-
imageGcHighThreshold
Get the imageGcHighThreshold property: The percent of disk usage after which image garbage collection is always run.To disable image garbage collection, set to 100. The default is 85%.
- Returns:
- the imageGcHighThreshold value.
-
withImageGcHighThreshold
Set the imageGcHighThreshold property: The percent of disk usage after which image garbage collection is always run.To disable image garbage collection, set to 100. The default is 85%.
- Parameters:
imageGcHighThreshold- the imageGcHighThreshold value to set.- Returns:
- the KubeletConfig object itself.
-
imageGcLowThreshold
Get the imageGcLowThreshold property: The percent of disk usage before which image garbage collection is never run.This cannot be set higher than imageGcHighThreshold. The default is 80%.
- Returns:
- the imageGcLowThreshold value.
-
withImageGcLowThreshold
Set the imageGcLowThreshold property: The percent of disk usage before which image garbage collection is never run.This cannot be set higher than imageGcHighThreshold. The default is 80%.
- Parameters:
imageGcLowThreshold- the imageGcLowThreshold value to set.- Returns:
- the KubeletConfig object itself.
-
topologyManagerPolicy
Get the topologyManagerPolicy property: The Topology Manager policy to use.For more information see [Kubernetes Topology Manager](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager). The default is 'none'. Allowed values are 'none', 'best-effort', 'restricted', and 'single-numa-node'.
- Returns:
- the topologyManagerPolicy value.
-
withTopologyManagerPolicy
Set the topologyManagerPolicy property: The Topology Manager policy to use.For more information see [Kubernetes Topology Manager](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager). The default is 'none'. Allowed values are 'none', 'best-effort', 'restricted', and 'single-numa-node'.
- Parameters:
topologyManagerPolicy- the topologyManagerPolicy value to set.- Returns:
- the KubeletConfig object itself.
-
allowedUnsafeSysctls
Get the allowedUnsafeSysctls property: Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in `*`).- Returns:
- the allowedUnsafeSysctls value.
-
withAllowedUnsafeSysctls
Set the allowedUnsafeSysctls property: Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in `*`).- Parameters:
allowedUnsafeSysctls- the allowedUnsafeSysctls value to set.- Returns:
- the KubeletConfig object itself.
-
failSwapOn
Get the failSwapOn property: If set to true it will make the Kubelet fail to start if swap is enabled on the node.- Returns:
- the failSwapOn value.
-
withFailSwapOn
Set the failSwapOn property: If set to true it will make the Kubelet fail to start if swap is enabled on the node.- Parameters:
failSwapOn- the failSwapOn value to set.- Returns:
- the KubeletConfig object itself.
-
containerLogMaxSizeMB
Get the containerLogMaxSizeMB property: The maximum size (e.g. 10Mi) of container log file before it is rotated.- Returns:
- the containerLogMaxSizeMB value.
-
withContainerLogMaxSizeMB
Set the containerLogMaxSizeMB property: The maximum size (e.g. 10Mi) of container log file before it is rotated.- Parameters:
containerLogMaxSizeMB- the containerLogMaxSizeMB value to set.- Returns:
- the KubeletConfig object itself.
-
containerLogMaxFiles
Get the containerLogMaxFiles property: The maximum number of container log files that can be present for a container. The number must be ≥ 2.- Returns:
- the containerLogMaxFiles value.
-
withContainerLogMaxFiles
Set the containerLogMaxFiles property: The maximum number of container log files that can be present for a container. The number must be ≥ 2.- Parameters:
containerLogMaxFiles- the containerLogMaxFiles value to set.- Returns:
- the KubeletConfig object itself.
-
podMaxPids
Get the podMaxPids property: The maximum number of processes per pod.- Returns:
- the podMaxPids value.
-
withPodMaxPids
Set the podMaxPids property: The maximum number of processes per pod.- Parameters:
podMaxPids- the podMaxPids value to set.- Returns:
- the KubeletConfig object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-