diff options
Diffstat (limited to 'bundles/prometheus/files/kube.yaml')
| -rw-r--r-- | bundles/prometheus/files/kube.yaml | 48 |
1 files changed, 48 insertions, 0 deletions
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 |