case class ResourceRequirements(limits: Optional[Map[String, Quantity]] = Optional.Absent, requests: Optional[Map[String, Quantity]] = Optional.Absent) extends Product with Serializable
ResourceRequirements describes the compute resource requirements.
- limits
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- requests
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- Alphabetic
- By Inheritance
- ResourceRequirements
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ResourceRequirements(limits: Optional[Map[String, Quantity]] = Optional.Absent, requests: Optional[Map[String, Quantity]] = Optional.Absent)
- limits
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- requests
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Value Members
-
def
getLimits: IO[K8sFailure, Map[String, Quantity]]
Limits describes the maximum amount of compute resources allowed.
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getRequests: IO[K8sFailure, Map[String, Quantity]]
Requests describes the minimum amount of compute resources required.
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val limits: Optional[Map[String, Quantity]]
- val requests: Optional[Map[String, Quantity]]