LinuxOSConfig Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.LinuxOSConfig

Implements

public final class LinuxOSConfig
implements JsonSerializable<LinuxOSConfig>

OS configurations of Linux agent nodes. See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details.

Constructor Summary

Constructor Description
LinuxOSConfig()

Creates an instance of LinuxOSConfig class.

Method Summary

Modifier and Type Method and Description
static LinuxOSConfig fromJson(JsonReader jsonReader)

Reads an instance of LinuxOSConfig from the JsonReader.

Integer swapFileSizeMB()

Get the swapFileSizeMB property: The size in MB of a swap file that will be created on each node.

SysctlConfig sysctls()

Get the sysctls property: Sysctl settings for Linux agent nodes.

JsonWriter toJson(JsonWriter jsonWriter)
String transparentHugePageDefrag()

Get the transparentHugePageDefrag property: Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and 'never'.

String transparentHugePageEnabled()

Get the transparentHugePageEnabled property: Valid values are 'always', 'madvise', and 'never'.

void validate()

Validates the instance.

LinuxOSConfig withSwapFileSizeMB(Integer swapFileSizeMB)

Set the swapFileSizeMB property: The size in MB of a swap file that will be created on each node.

LinuxOSConfig withSysctls(SysctlConfig sysctls)

Set the sysctls property: Sysctl settings for Linux agent nodes.

LinuxOSConfig withTransparentHugePageDefrag(String transparentHugePageDefrag)

Set the transparentHugePageDefrag property: Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and 'never'.

LinuxOSConfig withTransparentHugePageEnabled(String transparentHugePageEnabled)

Set the transparentHugePageEnabled property: Valid values are 'always', 'madvise', and 'never'.

Methods inherited from java.lang.Object

Constructor Details

LinuxOSConfig

public LinuxOSConfig()

Creates an instance of LinuxOSConfig class.

Method Details

fromJson

public static LinuxOSConfig fromJson(JsonReader jsonReader)

Reads an instance of LinuxOSConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LinuxOSConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the LinuxOSConfig.

swapFileSizeMB

public Integer swapFileSizeMB()

Get the swapFileSizeMB property: The size in MB of a swap file that will be created on each node.

Returns:

the swapFileSizeMB value.

sysctls

public SysctlConfig sysctls()

Get the sysctls property: Sysctl settings for Linux agent nodes.

Returns:

the sysctls value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transparentHugePageDefrag

public String transparentHugePageDefrag()

Get the transparentHugePageDefrag property: Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and 'never'. The default is 'madvise'. For more information see [Transparent Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html\#admin-guide-transhuge).

Returns:

the transparentHugePageDefrag value.

transparentHugePageEnabled

public String transparentHugePageEnabled()

Get the transparentHugePageEnabled property: Valid values are 'always', 'madvise', and 'never'. The default is 'always'. For more information see [Transparent Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html\#admin-guide-transhuge).

Returns:

the transparentHugePageEnabled value.

validate

public void validate()

Validates the instance.

withSwapFileSizeMB

public LinuxOSConfig withSwapFileSizeMB(Integer swapFileSizeMB)

Set the swapFileSizeMB property: The size in MB of a swap file that will be created on each node.

Parameters:

swapFileSizeMB - the swapFileSizeMB value to set.

Returns:

the LinuxOSConfig object itself.

withSysctls

public LinuxOSConfig withSysctls(SysctlConfig sysctls)

Set the sysctls property: Sysctl settings for Linux agent nodes.

Parameters:

sysctls - the sysctls value to set.

Returns:

the LinuxOSConfig object itself.

withTransparentHugePageDefrag

public LinuxOSConfig withTransparentHugePageDefrag(String transparentHugePageDefrag)

Set the transparentHugePageDefrag property: Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and 'never'. The default is 'madvise'. For more information see [Transparent Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html\#admin-guide-transhuge).

Parameters:

transparentHugePageDefrag - the transparentHugePageDefrag value to set.

Returns:

the LinuxOSConfig object itself.

withTransparentHugePageEnabled

public LinuxOSConfig withTransparentHugePageEnabled(String transparentHugePageEnabled)

Set the transparentHugePageEnabled property: Valid values are 'always', 'madvise', and 'never'. The default is 'always'. For more information see [Transparent Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html\#admin-guide-transhuge).

Parameters:

transparentHugePageEnabled - the transparentHugePageEnabled value to set.

Returns:

the LinuxOSConfig object itself.

Applies to