forked from akpw/mktxp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
47 lines (47 loc) · 952 Bytes
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: mktxp-exporter
spec:
selector:
matchLabels:
app: mktxp-exporter
template:
metadata:
labels:
app: mktxp-exporter
spec:
containers:
- name: mktxp-exporter
image: ghcr.io/akpw/mktxp:latest
args:
- --cfg-dir
- /mktxp_config
- export
resources:
limits:
memory: "512Mi"
cpu: "500m"
volumeMounts:
- name: mktxp-credentials
mountPath: /mktxp_config
ports:
- containerPort: 49090
volumes:
- name: mktxp-credentials
secret:
secretName: mktxp-credentials
---
apiVersion: v1
kind: Service
metadata:
name: mktxp-exporter
annotations:
prometheus.io/port: "49090"
prometheus.io/scrape: "true"
spec:
selector:
app: mktxp-exporter
ports:
- port: 49090
targetPort: 49090