다음을 통해 공유


KubeletConfig Class

Definition

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

public class KubeletConfig
type KubeletConfig = class
Public Class KubeletConfig
Inheritance
KubeletConfig

Remarks

See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details.

Constructors

Name Description
KubeletConfig()

Initializes a new instance of the KubeletConfig class.

KubeletConfig(String, Nullable<Boolean>, String, Nullable<Int32>, Nullable<Int32>, String, IList<String>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the KubeletConfig class.

Properties

Name Description
AllowedUnsafeSysctls

Gets or sets allowed list of unsafe sysctls or unsafe sysctl patterns (ending in *).

ContainerLogMaxFiles

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

ContainerLogMaxSizeMb

Gets or sets the maximum size (e.g. 10Mi) of container log file before it is rotated.

CpuCfsQuota

Gets or sets if CPU CFS quota enforcement is enabled for containers that specify CPU limits. The default is true.

CpuCfsQuotaPeriod

Gets or sets 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

Gets or sets 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

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

ImageGcHighThreshold

Gets or sets 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

Gets or sets 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

Gets or sets the maximum number of processes per pod.

TopologyManagerPolicy

Gets or sets 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'.

Methods

Name Description
Validate()

Validate the object.

Applies to