website/content/en/docs/reference/kubernetes-api/common-definitions/resource-field-selector.md

1.3 KiB

api_metadata content_type description title weight auto_generated
apiVersion import kind
k8s.io/api/core/v1 ResourceFieldSelector
api_reference ResourceFieldSelector represents container resources (cpu, memory) and their output format. ResourceFieldSelector 11 true

import "k8s.io/api/core/v1"

ResourceFieldSelector represents container resources (cpu, memory) and their output format


  • resource (string), required

    Required: resource to select

  • containerName (string)

    Container name: required for volumes, optional for env vars

  • divisor (<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity)

    Specifies the output format of the exposed resources, defaults to "1"