1
0
Fork 0
home-stack-kustomize/kustomize/bases/ecommerce-exporter/ecommerce-exporter-deployme...

61 lines
1.5 KiB
YAML
Raw Normal View History

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:
2024-10-12 02:33:10 +00:00
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
# FIXME
- key: kubernetes.io/arch
operator: In
values:
- amd64
2022-11-01 04:45:57 +00:00
containers:
- name: ecommerce-exporter
image: badjware/ecommerce-exporter
2024-10-12 02:33:10 +00:00
imagePullPolicy: Always
2022-11-01 04:45:57 +00:00
args: ['-c', '/config/ecommerce-exporter.yml']
resources:
requests:
memory: 200Mi
cpu: 200m
2022-11-01 04:45:57 +00:00
limits:
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