com.pulumi.gcp.container.kotlin.outputs.ClusterNodeConfigKubeletConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.container.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property cpuCfsQuota If true, enables CPU CFS quota enforcement for
* containers that specify CPU limits.
* @property cpuCfsQuotaPeriod The CPU CFS quota period value. Specified
* as a sequence of decimal numbers, each with optional fraction and a unit suffix,
* such as `"300ms"`. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
* "h". The value must be a positive duration.
* @property cpuManagerPolicy The CPU management policy on the node. See
* [K8S CPU Management Policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/).
* One of `"none"` or `"static"`. If unset (or set to the empty string `""`), the API will treat the field as if set to "none".
* Prior to the 6.4.0 this field was marked as required. The workaround for the required field
* is setting the empty string `""`, which will function identically to not setting this field.
* @property insecureKubeletReadonlyPortEnabled Controls whether the kubelet read-only port is enabled. It is strongly recommended to set this to `FALSE`. Possible values: `TRUE`, `FALSE`.
* @property podPidsLimit Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304.
*/
public data class ClusterNodeConfigKubeletConfig(
public val cpuCfsQuota: Boolean? = null,
public val cpuCfsQuotaPeriod: String? = null,
public val cpuManagerPolicy: String? = null,
public val insecureKubeletReadonlyPortEnabled: String? = null,
public val podPidsLimit: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodeConfigKubeletConfig): ClusterNodeConfigKubeletConfig = ClusterNodeConfigKubeletConfig(
cpuCfsQuota = javaType.cpuCfsQuota().map({ args0 -> args0 }).orElse(null),
cpuCfsQuotaPeriod = javaType.cpuCfsQuotaPeriod().map({ args0 -> args0 }).orElse(null),
cpuManagerPolicy = javaType.cpuManagerPolicy().map({ args0 -> args0 }).orElse(null),
insecureKubeletReadonlyPortEnabled = javaType.insecureKubeletReadonlyPortEnabled().map({ args0 ->
args0
}).orElse(null),
podPidsLimit = javaType.podPidsLimit().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy