-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathservo.yaml
89 lines (88 loc) · 1.98 KB
/
servo.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
#apiVersion: apps/v1
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: optune-servo
labels:
comp: optune-servo
optune.ai/exclude: '1' # don't tune servo
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
comp: optune-servo
template:
metadata:
labels:
comp: optune-servo
spec:
serviceAccountName: optune-servo
volumes:
- name: auth
secret:
secretName: optune-auth
- name: config
configMap:
name: optune-servo-config
containers:
- name: main
image: opsani/servo-k8s-ab
args:
- @@APP_ID@@ #CHANGEME - application ID
- '--auth-token=/etc/optune-auth/token'
env:
- name: OPTUNE_ACCOUNT
value: @@ACCOUNT@@ #CHANGEME - account name
- name: OPTUNE_USE_DEFAULT_NAMESPACE
value: '1'
- name: AB_TEST_URL
value: 'http://c3:8080/'
volumeMounts:
- name: auth
mountPath: '/etc/optune-auth'
readOnly: true
- name: config
mountPath: /servo/config.yaml
subPath: config.yaml
readOnly: true
---
apiVersion: v1
kind: ConfigMap
metadata:
name: optune-servo-config
data:
config.yaml: |
k8s:
application:
components:
c1:
settings:
cpu:
min: 0.1
max: 1.8
step: 0.1
replicas:
min: 1
max: 2
step: 1
c2:
settings:
cpu:
min: 0.1
max: 1.8
step: 0.1
replicas:
min: 1
max: 2
step: 1
c3:
settings:
cpu:
min: 0.1
max: 1.8
step: 0.1
replicas:
min: 1
max: 2
step: 1