-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathjmeter_influxdb_deploy.yaml
54 lines (54 loc) · 1.29 KB
/
jmeter_influxdb_deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: influxdb-jmeter
labels:
app: influxdb-jmeter
spec:
replicas: 1
selector:
matchLabels:
app: influxdb-jmeter
template:
metadata:
labels:
app: influxdb-jmeter
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: jmeter_mode
operator: In
values:
- slave
topologyKey: "kubernetes.io/hostname"
containers:
- image: influxdb:1.8
imagePullPolicy: IfNotPresent
name: influxdb
resources:
requests:
memory: "100Mi"
cpu: "20m"
limits:
memory: "350Mi"
cpu: "200m"
volumeMounts:
- name: config-volume
mountPath: /etc/influxdb
ports:
- containerPort: 8083
name: influx
- containerPort: 8086
name: api
- containerPort: 2003
name: graphite
env:
- name: INFLUXDB_DB
value: jmeter
volumes:
- name: config-volume
configMap:
name: influxdb-config