你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

KubeletConfig Constructors

Definition

Overloads

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.

KubeletConfig()

Initializes a new instance of the KubeletConfig class.

public KubeletConfig ();
Public Sub New ()

Applies to

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.

public KubeletConfig (string cpuManagerPolicy = default, bool? cpuCfsQuota = default, string cpuCfsQuotaPeriod = default, int? imageGcHighThreshold = default, int? imageGcLowThreshold = default, string topologyManagerPolicy = default, System.Collections.Generic.IList<string> allowedUnsafeSysctls = default, bool? failSwapOn = default, int? containerLogMaxSizeMb = default, int? containerLogMaxFiles = default, int? podMaxPids = default);
new Microsoft.Azure.Management.ContainerService.Models.KubeletConfig : string * Nullable<bool> * string * Nullable<int> * Nullable<int> * string * System.Collections.Generic.IList<string> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.Azure.Management.ContainerService.Models.KubeletConfig
Public Sub New (Optional cpuManagerPolicy As String = Nothing, Optional cpuCfsQuota As Nullable(Of Boolean) = Nothing, Optional cpuCfsQuotaPeriod As String = Nothing, Optional imageGcHighThreshold As Nullable(Of Integer) = Nothing, Optional imageGcLowThreshold As Nullable(Of Integer) = Nothing, Optional topologyManagerPolicy As String = Nothing, Optional allowedUnsafeSysctls As IList(Of String) = Nothing, Optional failSwapOn As Nullable(Of Boolean) = Nothing, Optional containerLogMaxSizeMb As Nullable(Of Integer) = Nothing, Optional containerLogMaxFiles As Nullable(Of Integer) = Nothing, Optional podMaxPids As Nullable(Of Integer) = Nothing)

Parameters

cpuManagerPolicy
String

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

cpuCfsQuota
Nullable<Boolean>

The default is true.

cpuCfsQuotaPeriod
String

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

imageGcHighThreshold
Nullable<Int32>

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

imageGcLowThreshold
Nullable<Int32>

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

topologyManagerPolicy
String

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

allowedUnsafeSysctls
IList<String>

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

failSwapOn
Nullable<Boolean>

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

containerLogMaxSizeMb
Nullable<Int32>

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

containerLogMaxFiles
Nullable<Int32>

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

podMaxPids
Nullable<Int32>

The maximum number of processes per pod.

Applies to