KubeletConfig Class

See AKS custom node configuration for more details.

Inheritance
KubeletConfig

Constructor

KubeletConfig(*, cpu_manager_policy: Optional[str] = None, cpu_cfs_quota: Optional[bool] = None, cpu_cfs_quota_period: Optional[str] = None, image_gc_high_threshold: Optional[int] = None, image_gc_low_threshold: Optional[int] = None, topology_manager_policy: Optional[str] = None, allowed_unsafe_sysctls: Optional[List[str]] = None, fail_swap_on: Optional[bool] = None, container_log_max_size_mb: Optional[int] = None, container_log_max_files: Optional[int] = None, pod_max_pids: Optional[int] = None, **kwargs)

Variables

cpu_manager_policy
str

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

cpu_cfs_quota
bool

The default is true.

cpu_cfs_quota_period
str

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

image_gc_high_threshold
int

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

image_gc_low_threshold
int

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

topology_manager_policy
str

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

allowed_unsafe_sysctls
list[str]

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

fail_swap_on
bool

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

container_log_max_size_mb
int

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

container_log_max_files
int

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

pod_max_pids
int

The maximum number of processes per pod.