about summary refs log tree commit diff
path: root/bundles/prometheus/files/kube.yaml
blob: 952f48573538fa9e8122dad65fd2141466393807 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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