2022-11-01 04:45:57 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: ecommerce-exporter
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: ecommerce-exporter
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: ecommerce-exporter
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: ecommerce-exporter
|
|
|
|
image: badjware/ecommerce-exporter
|
|
|
|
args: ['-c', '/config/ecommerce-exporter.yml']
|
|
|
|
resources:
|
|
|
|
requests:
|
2022-11-11 16:02:36 +00:00
|
|
|
memory: 200Mi
|
|
|
|
cpu: 200m
|
2022-11-01 04:45:57 +00:00
|
|
|
limits:
|
2022-11-11 16:02:36 +00:00
|
|
|
memory: 200Mi
|
|
|
|
cpu: 200m
|
2022-11-01 04:45:57 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8000
|
|
|
|
name: http
|
|
|
|
volumeMounts:
|
|
|
|
- name: ecommerce-exporter-config
|
|
|
|
mountPath: /config
|
|
|
|
volumes:
|
|
|
|
- name: ecommerce-exporter-config
|
|
|
|
configMap:
|
|
|
|
name: ecommerce-exporter-config
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: ecommerce-exporter
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: ecommerce-exporter
|
|
|
|
monitor: prometheus
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: ecommerce-exporter
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 8000
|
|
|
|
targetPort: http
|