]> piware.de Git - learn-metrics.git/blob - learn-metrics.yaml
Move to different nginx container
[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/jitesoft/nginx
40     name: httpd
41     ports:
42     - containerPort: 80
43       hostPort: 3002
44       protocol: TCP
45     volumeMounts:
46     - name: http
47       mountPath: /usr/local/nginx/html
48       readOnly: true
49
50   volumes:
51   - hostPath:
52       path: ./grafana-provisioning
53     name: grafana-provisioning
54   - hostPath:
55       path: ./grafana-config
56     name: grafana-config
57   - hostPath:
58       path: ./prometheus-config
59     name: prometheus-config
60   - hostPath:
61       path: ./http
62     name: http