core-deployments/sb-server-monitor/2-deployment.yaml

43 lines
1.1 KiB
YAML
Raw Permalink Normal View History

---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: sb-server-monitor-exporter
app.kubernetes.io/instance: sb-server-monitor
app.kubernetes.io/name: sb-server-monitor-exporter
name: sb-server-monitor-exporter
namespace: sb-server-monitor
spec:
replicas: 1
selector:
matchLabels:
app: sb-server-monitor-exporter
template:
metadata:
labels:
app: sb-server-monitor-exporter
app.kubernetes.io/instance: sb-server-monitor
app.kubernetes.io/name: sb-server-monitor-exporter
spec:
containers:
- env:
- name: SBSERVERMONITOR_SCRAPE_INTERVAL
value: "300"
image: git.ar21.de/yolokube/sb-server-monitor:latest
imagePullPolicy: IfNotPresent
name: sb-server-monitor-exporter
ports:
- containerPort: 9192
name: http-metrics
protocol: TCP
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: 500m
memory: 2Gi
restartPolicy: Always
serviceAccountName: sb-server-monitor-exporter-service-account