From 38be6c13f76e893cf47636257071b440dec0c5b2 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 7 Sep 2025 17:32:13 +0200 Subject: initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/prometheus/files/kube.yaml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 bundles/prometheus/files/kube.yaml (limited to 'bundles/prometheus/files/kube.yaml') diff --git a/bundles/prometheus/files/kube.yaml b/bundles/prometheus/files/kube.yaml new file mode 100644 index 0000000..952f485 --- /dev/null +++ b/bundles/prometheus/files/kube.yaml @@ -0,0 +1,48 @@ +apiVersion: v1 +kind: Pod +metadata: + name: prometheus + labels: + traefik.enable: true + traefik.http.routers.prometheus.tls: true + traefik.http.routers.prometheus.tls.certresolver: le + traefik.http.routers.prometheus.entrypoints: http,https + traefik.http.routers.prometheus.rule: Host(`prom.gzr.im`) + traefik.http.routers.prometheus.service: prometheus + traefik.http.services.prometheus.loadbalancer.server.port: 9090 +spec: + restartPolicy: Never + dnsPolicy: Default + dnsConfig: + searches: + - tail2d6ce.ts.net + containers: + - name: prom + image: quay.io/prometheus/prometheus:v2.52.0 + volumeMounts: + - mountPath: /etc/prometheus:z + name: config + readOnly: true + - mountPath: /usr/share/prometheus/consoles:z + name: config + subPath: consoles + readOnly: true + - mountPath: /usr/share/prometheus/console_libraries:z + name: config + subPath: console_libraries + readOnly: true + ports: + - containerPort: 9090 + protocol: TCP + resources: + limits: + cpu: 100m + memory: 200Mi + requests: + cpu: 25m + memory: 100Mi + volumes: + - name: config + hostPath: + path: /etc/prometheus + type: Directory -- cgit 1.4.1