alpha ver. of deployments resource controller
This commit is contained in:
@@ -46,6 +46,35 @@ spec:
|
||||
type: string
|
||||
minProperties: 1
|
||||
type: object
|
||||
optOutLabelKey:
|
||||
description: |-
|
||||
OptOutLabelKey is the label key used to exempt Deployments from resource defaulting.
|
||||
If a Deployment has a label with this key (any value), defaults won't be applied.
|
||||
If empty or omitted, the opt-out mechanism is disabled.
|
||||
Example: "my-operator.example.com/skip-resource-defaults"
|
||||
type: string
|
||||
resourceDefaults:
|
||||
description: |-
|
||||
ResourceDefaults contains the default requests/limits to apply.
|
||||
If this section is omitted, resource defaulting is disabled.
|
||||
properties:
|
||||
cpuLimit:
|
||||
description: Default CPU limit (e.g., "500m"). Applied if a container
|
||||
has no CPU limit.
|
||||
type: string
|
||||
cpuRequest:
|
||||
description: Default CPU request (e.g., "100m"). Applied if a
|
||||
container has no CPU request.
|
||||
type: string
|
||||
memoryLimit:
|
||||
description: Default Memory limit (e.g., "512Mi"). Applied if
|
||||
a container has no Memory limit.
|
||||
type: string
|
||||
memoryRequest:
|
||||
description: Default Memory request (e.g., "128Mi"). Applied if
|
||||
a container has no Memory request.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: NodeTainterConfigStatus defines the observed state of NodeTainterConfig.
|
||||
|
@@ -21,6 +21,16 @@ rules:
|
||||
- patch
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
- apps
|
||||
resources:
|
||||
- deployments
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- patch
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
- operator.andy.vendetti.ru
|
||||
resources:
|
||||
|
@@ -10,3 +10,9 @@ spec:
|
||||
"andy.vendetti.ru/category=priority": "workload/priority=high:NoSchedule"
|
||||
"andy.vendetti.ru/category=gpu": "nvidia.com/gpu=present:NoSchedule"
|
||||
"andy.vendetti.ru/category=svc": "workload/type=service:NoSchedule"
|
||||
resourceDefaults:
|
||||
cpuRequest: "100m"
|
||||
memoryRequest: "128Mi"
|
||||
cpuLimit: "500m"
|
||||
memoryLimit: "512Mi"
|
||||
optOutLabelKey: "andy.vendetti.ru/skip-resource-defaults"
|
||||
|
Reference in New Issue
Block a user