Class ResourceRequirements

    • Method Detail

      • getClaims

        public List<ResourceClaim> getClaims()
        Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.


        This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.


        This field is immutable. It can only be set for containers.

      • setClaims

        public void setClaims​(List<ResourceClaim> claims)
        Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.


        This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.


        This field is immutable. It can only be set for containers.

      • getLimits

        public Map<String,​Quantity> getLimits()
        Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
      • setLimits

        public void setLimits​(Map<String,​Quantity> limits)
        Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
      • getRequests

        public Map<String,​Quantity> getRequests()
        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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
      • setRequests

        public void setRequests​(Map<String,​Quantity> 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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)