61 lines
1.5 KiB
YAML
61 lines
1.5 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:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
# FIXME
|
|
- key: kubernetes.io/arch
|
|
operator: In
|
|
values:
|
|
- amd64
|
|
containers:
|
|
- name: ecommerce-exporter
|
|
image: badjware/ecommerce-exporter
|
|
imagePullPolicy: Always
|
|
args: ['-c', '/config/ecommerce-exporter.yml']
|
|
resources:
|
|
requests:
|
|
memory: 200Mi
|
|
cpu: 200m
|
|
limits:
|
|
memory: 200Mi
|
|
cpu: 200m
|
|
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
|