50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
|
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:
|
||
|
memory: 20Mi
|
||
|
cpu: 100m
|
||
|
limits:
|
||
|
memory: 20Mi
|
||
|
cpu: 100m
|
||
|
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
|