andrussal f451fd504d refactor(testing-framework): rename runners to deployers
- Update paths and orchestration for deployers (compose/k8s/local/docker)

- Consolidate scripts helpers and refresh book/README docs
2025-12-16 21:20:27 +01:00

39 lines
1.1 KiB
YAML

{{- if .Values.prometheus.enabled }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus
labels:
{{- include "nomos-runner.prometheusLabels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "nomos-runner.prometheusLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "nomos-runner.prometheusLabels" . | nindent 8 }}
spec:
containers:
- name: prometheus
image: {{ .Values.prometheus.image }}
imagePullPolicy: {{ .Values.prometheus.imagePullPolicy | default "IfNotPresent" }}
args:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.retention.time={{ .Values.prometheus.retention }}
- --web.enable-otlp-receiver
- --enable-feature=otlp-write-receiver
ports:
- containerPort: 9090
name: http
volumeMounts:
- name: prometheus-config
mountPath: /etc/prometheus
volumes:
- name: prometheus-config
configMap:
name: prometheus
{{- end }}