Skip to content

ResourceRequirements

Gregory Nickonov edited this page Mar 12, 2019 · 2 revisions

Quick Start

R.deployment :backend do
  container do
    resources.limits.memory = '2Gi'
  end
end

ResourceRequirements

Kubernetes Documentation

Property Kubernetes property Type
limits limits ResourceRequirementsSet
requests requests ResourceRequirementsSet

ResourceRequirementsSet

Property Kubernetes property Type
cpu cpu Numeric or String
memory memory Numeric or String
storage storage Numeric or String
ephemeral_storage ephemeral-storage Numeric or String

extended_resource

Gets or sets a value for the extended resource with the given name:

container do
  # Set the value of extended resource example.org/foo to 0.5
  resources.requests.extended_resource 'example.org/foo', 0.5
end
Clone this wiki locally