Replace launch script with kubernetes resource
[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: docker.io/prom/prometheus:latest
24     name: prometheus
25     ports:
26     - containerPort: 9090
27       hostPort: 3001
28       protocol: TCP
29
30   volumes:
31   - hostPath:
32       path: ./conf-grafana/datasource.yaml
33       type: File
34     name: grafana-datasource