-
Notifications
You must be signed in to change notification settings - Fork 1
/
sql_exporter.yaml
71 lines (71 loc) · 1.63 KB
/
sql_exporter.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
kind: Service
apiVersion: v1
metadata:
name: sql-exporter01-ch3
spec:
selector:
app: sql-exporter01-ch3
ports:
- protocol: TCP
port: 9237
targetPort: 9237
type: ClusterIP
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: sql-exporter01-ch3
labels:
app: sql-exporter01-ch3
spec:
replicas: 1
selector:
matchLabels:
app: sql-exporter01-ch3
template:
metadata:
labels:
app: sql-exporter01-ch3
spec:
hostNetwork: false
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- <<host>>
containers:
- name: sql-exporter01-ch3
image: <<registry>>
volumeMounts:
- mountPath: /etc/sql_exporter/config.yml
name: sql-exporter01-ch3
readOnly: true
securityContext:
privileged: false
capabilities:
drop:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- FSETID
- SETUID
- SETGID
- SYS_CHROOT
- MKNOD
args:
- -config.file=/etc/sql_exporter/config.yml
ports:
- containerPort: 9237
volumes:
- hostPath:
path: /mnt/configs/prometheus_exporters/sql-exporter01-ch3.yml
type: File
name: sql-exporter01-ch3
dnsPolicy: Default
imagePullSecrets:
- name: regsecret