com.pulumi.gcp.container.kotlin.inputs.ClusterNodePoolNodeConfigKubeletConfigArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterNodePoolNodeConfigKubeletConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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.
* > Note: At the time of writing (2020/08/18) the GKE API rejects the `none`
* value and accepts an invalid `default` value instead. While this remains true,
* not specifying the `kubelet_config` block should be the equivalent of specifying
* `none`.
* @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"`. Defaults to `none` when `kubelet_config` is unset.
* @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 ClusterNodePoolNodeConfigKubeletConfigArgs(
public val cpuCfsQuota: Output? = null,
public val cpuCfsQuotaPeriod: Output? = null,
public val cpuManagerPolicy: Output,
public val podPidsLimit: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNodePoolNodeConfigKubeletConfigArgs = com.pulumi.gcp.container.inputs.ClusterNodePoolNodeConfigKubeletConfigArgs.builder()
.cpuCfsQuota(cpuCfsQuota?.applyValue({ args0 -> args0 }))
.cpuCfsQuotaPeriod(cpuCfsQuotaPeriod?.applyValue({ args0 -> args0 }))
.cpuManagerPolicy(cpuManagerPolicy.applyValue({ args0 -> args0 }))
.podPidsLimit(podPidsLimit?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterNodePoolNodeConfigKubeletConfigArgs].
*/
@PulumiTagMarker
public class ClusterNodePoolNodeConfigKubeletConfigArgsBuilder internal constructor() {
private var cpuCfsQuota: Output? = null
private var cpuCfsQuotaPeriod: Output? = null
private var cpuManagerPolicy: Output? = null
private var podPidsLimit: Output? = null
/**
* @param value If true, enables CPU CFS quota enforcement for
* containers that specify CPU limits.
*/
@JvmName("jgnoqwvnhrtmbgyl")
public suspend fun cpuCfsQuota(`value`: Output) {
this.cpuCfsQuota = value
}
/**
* @param value 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.
* > Note: At the time of writing (2020/08/18) the GKE API rejects the `none`
* value and accepts an invalid `default` value instead. While this remains true,
* not specifying the `kubelet_config` block should be the equivalent of specifying
* `none`.
*/
@JvmName("firgywbyulspixdq")
public suspend fun cpuCfsQuotaPeriod(`value`: Output) {
this.cpuCfsQuotaPeriod = value
}
/**
* @param value 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"`. Defaults to `none` when `kubelet_config` is unset.
*/
@JvmName("lifkbakxkikvqsbn")
public suspend fun cpuManagerPolicy(`value`: Output) {
this.cpuManagerPolicy = value
}
/**
* @param value 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.
*/
@JvmName("npotvrshwkmmornv")
public suspend fun podPidsLimit(`value`: Output) {
this.podPidsLimit = value
}
/**
* @param value If true, enables CPU CFS quota enforcement for
* containers that specify CPU limits.
*/
@JvmName("bnruvfmhudjuplly")
public suspend fun cpuCfsQuota(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cpuCfsQuota = mapped
}
/**
* @param value 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.
* > Note: At the time of writing (2020/08/18) the GKE API rejects the `none`
* value and accepts an invalid `default` value instead. While this remains true,
* not specifying the `kubelet_config` block should be the equivalent of specifying
* `none`.
*/
@JvmName("jcpoyyfwyasclewa")
public suspend fun cpuCfsQuotaPeriod(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cpuCfsQuotaPeriod = mapped
}
/**
* @param value 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"`. Defaults to `none` when `kubelet_config` is unset.
*/
@JvmName("gvkrcrmvtqwsomui")
public suspend fun cpuManagerPolicy(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.cpuManagerPolicy = mapped
}
/**
* @param value 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.
*/
@JvmName("qiuhjkajdanvnccs")
public suspend fun podPidsLimit(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.podPidsLimit = mapped
}
internal fun build(): ClusterNodePoolNodeConfigKubeletConfigArgs =
ClusterNodePoolNodeConfigKubeletConfigArgs(
cpuCfsQuota = cpuCfsQuota,
cpuCfsQuotaPeriod = cpuCfsQuotaPeriod,
cpuManagerPolicy = cpuManagerPolicy ?: throw PulumiNullFieldException("cpuManagerPolicy"),
podPidsLimit = podPidsLimit,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy