Freigeben über


KubeletConfig Class

Definition

See AKS custom node configuration for more details.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.KubeletConfigTypeConverter))]
public class KubeletConfig : Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IKubeletConfig
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.KubeletConfigTypeConverter))>]
type KubeletConfig = class
    interface IKubeletConfig
    interface IJsonSerializable
Public Class KubeletConfig
Implements IKubeletConfig
Inheritance
KubeletConfig
Attributes
Implements

Constructors

KubeletConfig()

Creates an new KubeletConfig instance.

Properties

AllowedUnsafeSysctl

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

ContainerLogMaxFile

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

The default is true.

CpuCfsQuotaPeriod

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

To disable image garbage collection, set to 100. The default is 85%

ImageGcLowThreshold

This cannot be set higher than imageGcHighThreshold. The default is 80%

PodMaxPid

The maximum number of processes per pod.

TopologyManagerPolicy

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

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of KubeletConfig.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of KubeletConfig.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IKubeletConfig.

FromJsonString(String)

Creates a new instance of KubeletConfig, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of KubeletConfig into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to