Share via


KubeletConfig interface

Kubelet configurations of agent nodes. See AKS custom node configuration for more details.

Properties

allowedUnsafeSysctls

Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in *).

containerLogMaxFiles

The maximum number of container log files that can be present for a container. The number must be ≥ 2.

containerLogMaxSizeMB

The maximum size (e.g. 10Mi) of container log file before it is rotated.

cpuCfsQuota

If CPU CFS quota enforcement is enabled for containers that specify CPU limits. The default is true.

cpuCfsQuotaPeriod

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'.

cpuManagerPolicy

The CPU Manager policy to use. The default is 'none'. See Kubernetes CPU management policies for more information. Allowed values are 'none' and 'static'.

failSwapOn

If set to true it will make the Kubelet fail to start if swap is enabled on the node.

imageGcHighThreshold

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%

imageGcLowThreshold

The percent of disk usage before which image garbage collection is never run. This cannot be set higher than imageGcHighThreshold. The default is 80%

podMaxPids

The maximum number of processes per pod.

topologyManagerPolicy

The Topology Manager policy to use. For more information see Kubernetes Topology Manager. The default is 'none'. Allowed values are 'none', 'best-effort', 'restricted', and 'single-numa-node'.

Property Details

allowedUnsafeSysctls

Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in *).

allowedUnsafeSysctls?: string[]

Property Value

string[]

containerLogMaxFiles

The maximum number of container log files that can be present for a container. The number must be ≥ 2.

containerLogMaxFiles?: number

Property Value

number

containerLogMaxSizeMB

The maximum size (e.g. 10Mi) of container log file before it is rotated.

containerLogMaxSizeMB?: number

Property Value

number

cpuCfsQuota

If CPU CFS quota enforcement is enabled for containers that specify CPU limits. The default is true.

cpuCfsQuota?: boolean

Property Value

boolean

cpuCfsQuotaPeriod

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'.

cpuCfsQuotaPeriod?: string

Property Value

string

cpuManagerPolicy

The CPU Manager policy to use. The default is 'none'. See Kubernetes CPU management policies for more information. Allowed values are 'none' and 'static'.

cpuManagerPolicy?: string

Property Value

string

failSwapOn

If set to true it will make the Kubelet fail to start if swap is enabled on the node.

failSwapOn?: boolean

Property Value

boolean

imageGcHighThreshold

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%

imageGcHighThreshold?: number

Property Value

number

imageGcLowThreshold

The percent of disk usage before which image garbage collection is never run. This cannot be set higher than imageGcHighThreshold. The default is 80%

imageGcLowThreshold?: number

Property Value

number

podMaxPids

The maximum number of processes per pod.

podMaxPids?: number

Property Value

number

topologyManagerPolicy

The Topology Manager policy to use. For more information see Kubernetes Topology Manager. The default is 'none'. Allowed values are 'none', 'best-effort', 'restricted', and 'single-numa-node'.

topologyManagerPolicy?: string

Property Value

string