Pull prometheus image from quay.io
[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-datasource
20       mountPath: /etc/grafana/provisioning/datasources/datasource.yaml
21       readOnly: true
22
23   - image: quay.io/prometheus/prometheus:latest
24     name: prometheus
25     ports:
26     - containerPort: 9090
27       hostPort: 3001
28       protocol: TCP
29     volumeMounts:
30       - name: prometheus-config
31         mountPath: /etc/prometheus
32         readOnly: true
33
34   - image: quay.io/bitnami/nginx
35     name: httpd
36     volumeMounts:
37     - name: http
38       mountPath: /app
39       readOnly: true
40
41   volumes:
42   - hostPath:
43       path: ./conf-grafana/datasource.yaml
44       type: File
45     name: grafana-datasource
46   - hostPath:
47       path: ./conf-prometheus
48     name: prometheus-config
49   - hostPath:
50       path: ./http
51     name: http