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