]> piware.de Git - learn-metrics.git/blob - learn-metrics.yaml
7c1c7ea563403d001bfec83d51e3b165bb50c801
[learn-metrics.git] / learn-metrics.yaml
1 apiVersion: v1
2 kind: Pod
3 metadata:
4   labels:
5     app: learn-metrics
6   name: learn-metrics
7 spec:
8   containers:
9   - image: quay.io/bitnami/grafana:latest
10     name: grafana
11     env:
12     - name: GF_SECURITY_ADMIN_PASSWORD
13       value: foobar
14     - name: GF_PATHS_CONFIG
15       value: /grafana-config/grafana.ini
16     ports:
17     - containerPort: 3000
18       hostPort: 3000
19       protocol: TCP
20     volumeMounts:
21     - name: grafana-config
22       mountPath: /grafana-config
23       readOnly: true
24     - name: grafana-datasource
25       mountPath: /etc/grafana/provisioning/datasources/datasource.yaml
26       readOnly: true
27
28   - image: quay.io/prometheus/prometheus:latest
29     name: prometheus
30     ports:
31     - containerPort: 9090
32       hostPort: 3001
33       protocol: TCP
34     volumeMounts:
35       - name: prometheus-config
36         mountPath: /etc/prometheus
37         readOnly: true
38
39   - image: quay.io/bitnami/nginx
40     name: httpd
41     volumeMounts:
42     - name: http
43       mountPath: /app
44       readOnly: true
45
46   volumes:
47   - hostPath:
48       path: ./conf-grafana/datasource.yaml
49       type: File
50     name: grafana-datasource
51   - hostPath:
52       path: ./conf-grafana
53     name: grafana-config
54   - hostPath:
55       path: ./conf-prometheus
56     name: prometheus-config
57   - hostPath:
58       path: ./http
59     name: http