KubeletConfig Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. KubeletConfig
- com.
Implements
public final class KubeletConfig
implements JsonSerializable<KubeletConfig>
Kubelet configurations of agent nodes. See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details.
Constructor Summary
Constructor | Description |
---|---|
KubeletConfig() |
Creates an instance of Kubelet |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
allowedUnsafeSysctls()
Get the allowed |
Integer |
containerLogMaxFiles()
Get the container |
Integer |
containerLogMaxSizeMB()
Get the container |
Boolean |
cpuCfsQuota()
Get the cpu |
String |
cpuCfsQuotaPeriod()
Get the cpu |
String |
cpuManagerPolicy()
Get the cpu |
Boolean |
failSwapOn()
Get the fail |
static
Kubelet |
fromJson(JsonReader jsonReader)
Reads an instance of Kubelet |
Integer |
imageGcHighThreshold()
Get the image |
Integer |
imageGcLowThreshold()
Get the image |
Integer |
podMaxPids()
Get the pod |
Json |
toJson(JsonWriter jsonWriter) |
String |
topologyManagerPolicy()
Get the topology |
void |
validate()
Validates the instance. |
Kubelet |
withAllowedUnsafeSysctls(List<String> allowedUnsafeSysctls)
Set the allowed |
Kubelet |
withContainerLogMaxFiles(Integer containerLogMaxFiles)
Set the container |
Kubelet |
withContainerLogMaxSizeMB(Integer containerLogMaxSizeMB)
Set the container |
Kubelet |
withCpuCfsQuota(Boolean cpuCfsQuota)
Set the cpu |
Kubelet |
withCpuCfsQuotaPeriod(String cpuCfsQuotaPeriod)
Set the cpu |
Kubelet |
withCpuManagerPolicy(String cpuManagerPolicy)
Set the cpu |
Kubelet |
withFailSwapOn(Boolean failSwapOn)
Set the fail |
Kubelet |
withImageGcHighThreshold(Integer imageGcHighThreshold)
Set the image |
Kubelet |
withImageGcLowThreshold(Integer imageGcLowThreshold)
Set the image |
Kubelet |
withPodMaxPids(Integer podMaxPids)
Set the pod |
Kubelet |
withTopologyManagerPolicy(String topologyManagerPolicy)
Set the topology |
Methods inherited from java.lang.Object
Constructor Details
KubeletConfig
public KubeletConfig()
Creates an instance of KubeletConfig class.
Method Details
allowedUnsafeSysctls
public List
Get the allowedUnsafeSysctls property: Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in `*`).
Returns:
containerLogMaxFiles
public Integer containerLogMaxFiles()
Get the containerLogMaxFiles property: The maximum number of container log files that can be present for a container. The number must be \u2265 2.
Returns:
containerLogMaxSizeMB
public Integer containerLogMaxSizeMB()
Get the containerLogMaxSizeMB property: The maximum size (e.g. 10Mi) of container log file before it is rotated.
Returns:
cpuCfsQuota
public Boolean cpuCfsQuota()
Get the cpuCfsQuota property: The default is true.
Returns:
cpuCfsQuotaPeriod
public String cpuCfsQuotaPeriod()
Get the cpuCfsQuotaPeriod property: 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'.
Returns:
cpuManagerPolicy
public String cpuManagerPolicy()
Get the cpuManagerPolicy property: The default is 'none'. See [Kubernetes CPU management policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/\#cpu-management-policies) for more information. Allowed values are 'none' and 'static'.
Returns:
failSwapOn
public Boolean failSwapOn()
Get the failSwapOn property: If set to true it will make the Kubelet fail to start if swap is enabled on the node.
Returns:
fromJson
public static KubeletConfig fromJson(JsonReader jsonReader)
Reads an instance of KubeletConfig from the JsonReader.
Parameters:
Returns:
Throws:
imageGcHighThreshold
public Integer imageGcHighThreshold()
Get the imageGcHighThreshold property: To disable image garbage collection, set to 100. The default is 85%.
Returns:
imageGcLowThreshold
public Integer imageGcLowThreshold()
Get the imageGcLowThreshold property: This cannot be set higher than imageGcHighThreshold. The default is 80%.
Returns:
podMaxPids
public Integer podMaxPids()
Get the podMaxPids property: The maximum number of processes per pod.
Returns:
toJson
topologyManagerPolicy
public String topologyManagerPolicy()
Get the topologyManagerPolicy property: For more information see [Kubernetes Topology Manager](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager). The default is 'none'. Allowed values are 'none', 'best-effort', 'restricted', and 'single-numa-node'.
Returns:
validate
public void validate()
Validates the instance.
withAllowedUnsafeSysctls
public KubeletConfig withAllowedUnsafeSysctls(List
Set the allowedUnsafeSysctls property: Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in `*`).
Parameters:
Returns:
withContainerLogMaxFiles
public KubeletConfig withContainerLogMaxFiles(Integer containerLogMaxFiles)
Set the containerLogMaxFiles property: The maximum number of container log files that can be present for a container. The number must be \u2265 2.
Parameters:
Returns:
withContainerLogMaxSizeMB
public KubeletConfig withContainerLogMaxSizeMB(Integer containerLogMaxSizeMB)
Set the containerLogMaxSizeMB property: The maximum size (e.g. 10Mi) of container log file before it is rotated.
Parameters:
Returns:
withCpuCfsQuota
public KubeletConfig withCpuCfsQuota(Boolean cpuCfsQuota)
Set the cpuCfsQuota property: The default is true.
Parameters:
Returns:
withCpuCfsQuotaPeriod
public KubeletConfig withCpuCfsQuotaPeriod(String cpuCfsQuotaPeriod)
Set the cpuCfsQuotaPeriod property: 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'.
Parameters:
Returns:
withCpuManagerPolicy
public KubeletConfig withCpuManagerPolicy(String cpuManagerPolicy)
Set the cpuManagerPolicy property: The default is 'none'. See [Kubernetes CPU management policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/\#cpu-management-policies) for more information. Allowed values are 'none' and 'static'.
Parameters:
Returns:
withFailSwapOn
public KubeletConfig withFailSwapOn(Boolean failSwapOn)
Set the failSwapOn property: If set to true it will make the Kubelet fail to start if swap is enabled on the node.
Parameters:
Returns:
withImageGcHighThreshold
public KubeletConfig withImageGcHighThreshold(Integer imageGcHighThreshold)
Set the imageGcHighThreshold property: To disable image garbage collection, set to 100. The default is 85%.
Parameters:
Returns:
withImageGcLowThreshold
public KubeletConfig withImageGcLowThreshold(Integer imageGcLowThreshold)
Set the imageGcLowThreshold property: This cannot be set higher than imageGcHighThreshold. The default is 80%.
Parameters:
Returns:
withPodMaxPids
public KubeletConfig withPodMaxPids(Integer podMaxPids)
Set the podMaxPids property: The maximum number of processes per pod.
Parameters:
Returns:
withTopologyManagerPolicy
public KubeletConfig withTopologyManagerPolicy(String topologyManagerPolicy)
Set the topologyManagerPolicy property: For more information see [Kubernetes Topology Manager](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager). The default is 'none'. Allowed values are 'none', 'best-effort', 'restricted', and 'single-numa-node'.
Parameters:
Returns:
Applies to
Azure SDK for Java