]> piware.de Git - learn-metrics.git/blob - learn-metrics.yaml
3d6c678c4e75a0bacf92f7dcd7112c646119d788
[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-provisioning
25       mountPath: /etc/grafana/provisioning
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: ./grafana-provisioning
49     name: grafana-provisioning
50   - hostPath:
51       path: ./grafana-config
52     name: grafana-config
53   - hostPath:
54       path: ./prometheus-config
55     name: prometheus-config
56   - hostPath:
57       path: ./http
58     name: http