-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.yaml
More file actions
50 lines (49 loc) · 944 Bytes
/
example.yaml
File metadata and controls
50 lines (49 loc) · 944 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: dummy-bee-service
namespace: dev
labels:
app: dummy-bee-service
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
---
apiVersion: scaler.udaan.io/v1
kind: ServiceScaler
metadata:
name: dummy-bee-service
namespace: dev
spec:
hpa:
maxReplicas: 25
minReplicas: 3
targetCPUUtilization: 80
targetMemoryUtilization: 80
timeRangeSpec:
- from: 18:00+05:30
kind: ZonedTime
replicaSpec:
hpa:
minReplicas: 2
targetMemoryUtilization: 0
to: 00:00+05:30
- from: 00:00+05:30
kind: ZonedTime
replicaSpec:
hpa:
minReplicas: 1
targetMemoryUtilization: 0
to: 08:00+05:30