-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathworkload.codeflare.dev_schedulingspecs.yaml
116 lines (116 loc) · 5.3 KB
/
workload.codeflare.dev_schedulingspecs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
name: schedulingspecs.workload.codeflare.dev
spec:
group: workload.codeflare.dev
names:
kind: SchedulingSpec
listKind: SchedulingSpecList
plural: schedulingspecs
singular: schedulingspec
scope: Namespaced
versions:
- name: v1beta1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
dispatchDuration:
description: Wall clock duration time of appwrapper in seconds.
properties:
expected:
type: integer
limit:
type: integer
overrun:
type: boolean
type: object
minAvailable:
description: Expected number of pods in running and/or completed state.
Requeuing is triggered when the number of running/completed pods
is not equal to this value. When not specified, requeuing is disabled
and no check is performed.
type: integer
nodeSelector:
additionalProperties:
type: string
type: object
requeuing:
description: Specification of the requeuing strategy based on waiting
time. Values in this field control how often the pod check should
happen, and if requeuing has reached its maximum number of times.
properties:
forceDeletionTimeInSeconds:
default: 0
description: Enable forceful deletion of generic items and pods
with the AppWrapper label after specified seconds. This may
be necesary to prevent redeployment of generic items that create
pods that were not correctly deleted.
type: integer
growthType:
default: exponential
description: Growth strategy to increase the waiting time between
requeuing checks. The values available are 'exponential', 'linear',
or 'none'. For example, 'exponential' growth would double the
'timeInSeconds' value every time a requeuing event is triggered.
If the string value is misspelled or not one of the possible
options, the growth behavior is defaulted to 'none'.
type: string
initialTimeInSeconds:
description: Value to keep track of the initial wait time. Users
cannot set this as it is taken from 'timeInSeconds'.
type: integer
maxNumRequeuings:
default: 0
description: Maximum number of requeuing events allowed. Once
this value is reached (e.g., 'numRequeuings = maxNumRequeuings',
no more requeuing checks are performed and the generic items
are stopped and removed from the cluster (AppWrapper remains
deployed).
type: integer
maxTimeInSeconds:
default: 0
description: Maximum waiting time for requeuing checks.
type: integer
numRequeuings:
default: 0
description: Field to keep track of how many times a requeuing
event has been triggered.
type: integer
pauseTimeInSeconds:
default: 0
description: When a job is ready to be redispatched after it has
been requeued due to preemption, MCAD will wait 'pauseTimeInSeconds'
before redispatching
type: integer
timeInSeconds:
default: 300
description: Initial waiting time before requeuing conditions
are checked. This value is specified by the user, but it may
grow as requeuing events happen.
type: integer
type: object
type: object
required:
- metadata
type: object
served: true
storage: true