Share via


KubeletConfig Class

Definition

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

public class KubeletConfig : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ContainerService.Models.KubeletConfig>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ContainerService.Models.KubeletConfig>
public class KubeletConfig
type KubeletConfig = class
    interface IJsonModel<KubeletConfig>
    interface IPersistableModel<KubeletConfig>
type KubeletConfig = class
Public Class KubeletConfig
Implements IJsonModel(Of KubeletConfig), IPersistableModel(Of KubeletConfig)
Public Class KubeletConfig
Inheritance
KubeletConfig
Implements

Constructors

Name Description
KubeletConfig()

Initializes a new instance of KubeletConfig.

Properties

Name Description
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.

ContainerLogMaxSizeInMB

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

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

FailStartWithSwapOn

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

IsCpuCfsQuotaEnabled

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

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

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<KubeletConfig>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<KubeletConfig>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<KubeletConfig>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<KubeletConfig>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<KubeletConfig>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to