]> piware.de Git - learn-metrics.git/blob - learn-metrics.yaml
38cc24e09b1bf03e46695ec7962a613c55d0698e
[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     ports:
15     - containerPort: 3000
16       hostPort: 3000
17       protocol: TCP
18     volumeMounts:
19     - name: grafana-config
20       mountPath: /opt/bitnami/grafana/conf/grafana.ini
21       readOnly: true
22     - name: grafana-datasource
23       mountPath: /etc/grafana/provisioning/datasources/datasource.yaml
24       readOnly: true
25
26   - image: quay.io/prometheus/prometheus:latest
27     name: prometheus
28     ports:
29     - containerPort: 9090
30       hostPort: 3001
31       protocol: TCP
32     volumeMounts:
33       - name: prometheus-config
34         mountPath: /etc/prometheus
35         readOnly: true
36
37   - image: quay.io/bitnami/nginx
38     name: httpd
39     volumeMounts:
40     - name: http
41       mountPath: /app
42       readOnly: true
43
44   volumes:
45   - hostPath:
46       path: ./conf-grafana/datasource.yaml
47       type: File
48     name: grafana-datasource
49   - hostPath:
50       path: ./conf-grafana/grafana.ini
51       type: File
52     name: grafana-config
53   - hostPath:
54       path: ./conf-prometheus
55     name: prometheus-config
56   - hostPath:
57       path: ./http
58     name: http