ServiceTemplateContainerResources

data class ServiceTemplateContainerResources(val cpuIdle: Boolean? = null, val limits: Map<String, String>? = null, val startupCpuBoost: Boolean? = null)

Constructors

Link copied to clipboard
constructor(cpuIdle: Boolean? = null, limits: Map<String, String>? = null, startupCpuBoost: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val cpuIdle: Boolean? = null

Determines whether CPU should be throttled or not outside of requests.

Link copied to clipboard
val limits: Map<String, String>? = null

Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

Link copied to clipboard

Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.