-
Notifications
You must be signed in to change notification settings - Fork 31
/
crd.yaml
82 lines (82 loc) · 2.94 KB
/
crd.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
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: workerpodautoscalers.k8s.practo.dev
spec:
group: k8s.practo.dev
names:
kind: WorkerPodAutoScaler
listKind: WorkerPodAutoScalerList
plural: workerpodautoscalers
shortNames:
- wpa
- wpas
singular: workerpodautoscaler
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
type: object
required:
- spec
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
type: object
required:
- minReplicas
- maxReplicas
- queueURI
- targetMessagesPerWorker
oneOf:
- required:
- deploymentName
- required:
- replicaSetName
properties:
deploymentName:
type: string
description: 'Name of the Kubernetes Deployment in the same namespace as WPA object'
replicaSetName:
type: string
description: 'Name of the Kubernetes ReplicaSet in the same namespace as WPA object'
maxDisruption:
type: string
nullable: true
description: 'Amount of disruption that can be tolerated in a single scale down activity. Number of pods or percentage of pods that can scale down in a single down scale down activity'
maxReplicas:
type: integer
format: int32
description: 'Maximum number of workers you want to run'
minReplicas:
type: integer
format: int32
description: 'Minimum number of workers you want to run'
queueURI:
type: string
description: 'Full URL of the queue'
targetMessagesPerWorker:
type: integer
format: int32
description: 'Target ratio between the number of queued jobs(both available and reserved) and the number of workers required to process them. For long running workers with visible backlog, this value may be set to 1 so that each job spawns a new worker (upto maxReplicas)'
secondsToProcessOneJob:
type: number
format: float
nullable: true
description: 'For fast running workers doing high RPM, the backlog is very close to zero. So for such workers scale up cannot happen based on the backlog, hence this is a really important specification to always keep the minimum number of workers running based on the queue RPM. (highly recommended, default=0.0 i.e. disabled).'
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []