sigs.k8s.io/kueue@v0.6.2/config/components/crd/bases/kueue.x-k8s.io_resourceflavors.yaml (about) 1 --- 2 apiVersion: apiextensions.k8s.io/v1 3 kind: CustomResourceDefinition 4 metadata: 5 annotations: 6 controller-gen.kubebuilder.io/version: v0.14.0 7 name: resourceflavors.kueue.x-k8s.io 8 spec: 9 group: kueue.x-k8s.io 10 names: 11 kind: ResourceFlavor 12 listKind: ResourceFlavorList 13 plural: resourceflavors 14 shortNames: 15 - flavor 16 - flavors 17 singular: resourceflavor 18 scope: Cluster 19 versions: 20 - name: v1beta1 21 schema: 22 openAPIV3Schema: 23 description: ResourceFlavor is the Schema for the resourceflavors API. 24 properties: 25 apiVersion: 26 description: |- 27 APIVersion defines the versioned schema of this representation of an object. 28 Servers should convert recognized schemas to the latest internal value, and 29 may reject unrecognized values. 30 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 31 type: string 32 kind: 33 description: |- 34 Kind is a string value representing the REST resource this object represents. 35 Servers may infer this from the endpoint the client submits requests to. 36 Cannot be updated. 37 In CamelCase. 38 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 39 type: string 40 metadata: 41 type: object 42 spec: 43 description: ResourceFlavorSpec defines the desired state of the ResourceFlavor 44 properties: 45 nodeLabels: 46 additionalProperties: 47 type: string 48 description: |- 49 nodeLabels are labels that associate the ResourceFlavor with Nodes that 50 have the same labels. 51 When a Workload is admitted, its podsets can only get assigned 52 ResourceFlavors whose nodeLabels match the nodeSelector and nodeAffinity 53 fields. 54 Once a ResourceFlavor is assigned to a podSet, the ResourceFlavor's 55 nodeLabels should be injected into the pods of the Workload by the 56 controller that integrates with the Workload object. 57 58 59 nodeLabels can be up to 8 elements. 60 maxProperties: 8 61 type: object 62 x-kubernetes-map-type: atomic 63 nodeTaints: 64 description: |- 65 nodeTaints are taints that the nodes associated with this ResourceFlavor 66 have. 67 Workloads' podsets must have tolerations for these nodeTaints in order to 68 get assigned this ResourceFlavor during admission. 69 70 71 An example of a nodeTaint is 72 cloud.provider.com/preemptible="true":NoSchedule 73 74 75 nodeTaints can be up to 8 elements. 76 items: 77 description: |- 78 The node this Taint is attached to has the "effect" on 79 any pod that does not tolerate the Taint. 80 properties: 81 effect: 82 description: |- 83 Required. The effect of the taint on pods 84 that do not tolerate the taint. 85 Valid effects are NoSchedule, PreferNoSchedule and NoExecute. 86 type: string 87 key: 88 description: Required. The taint key to be applied to a node. 89 type: string 90 timeAdded: 91 description: |- 92 TimeAdded represents the time at which the taint was added. 93 It is only written for NoExecute taints. 94 format: date-time 95 type: string 96 value: 97 description: The taint value corresponding to the taint key. 98 type: string 99 required: 100 - effect 101 - key 102 type: object 103 maxItems: 8 104 type: array 105 x-kubernetes-list-type: atomic 106 tolerations: 107 description: |- 108 tolerations are extra tolerations that will be added to the pods admitted in 109 the quota associated with this resource flavor. 110 111 112 An example of a toleration is 113 cloud.provider.com/preemptible="true":NoSchedule 114 115 116 tolerations can be up to 8 elements. 117 items: 118 description: |- 119 The pod this Toleration is attached to tolerates any taint that matches 120 the triple <key,value,effect> using the matching operator <operator>. 121 properties: 122 effect: 123 description: |- 124 Effect indicates the taint effect to match. Empty means match all taint effects. 125 When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. 126 type: string 127 key: 128 description: |- 129 Key is the taint key that the toleration applies to. Empty means match all taint keys. 130 If the key is empty, operator must be Exists; this combination means to match all values and all keys. 131 type: string 132 operator: 133 description: |- 134 Operator represents a key's relationship to the value. 135 Valid operators are Exists and Equal. Defaults to Equal. 136 Exists is equivalent to wildcard for value, so that a pod can 137 tolerate all taints of a particular category. 138 type: string 139 tolerationSeconds: 140 description: |- 141 TolerationSeconds represents the period of time the toleration (which must be 142 of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, 143 it is not set, which means tolerate the taint forever (do not evict). Zero and 144 negative values will be treated as 0 (evict immediately) by the system. 145 format: int64 146 type: integer 147 value: 148 description: |- 149 Value is the taint value the toleration matches to. 150 If the operator is Exists, the value should be empty, otherwise just a regular string. 151 type: string 152 type: object 153 maxItems: 8 154 type: array 155 x-kubernetes-list-type: atomic 156 type: object 157 type: object 158 served: true 159 storage: true