]> piware.de Git - learn-metrics.git/blobdiff - learn-metrics.yaml
Replace launch script with kubernetes resource
[learn-metrics.git] / learn-metrics.yaml
diff --git a/learn-metrics.yaml b/learn-metrics.yaml
new file mode 100644 (file)
index 0000000..4d76cf9
--- /dev/null
@@ -0,0 +1,34 @@
+apiVersion: v1
+kind: Pod
+metadata:
+  labels:
+    app: learn-metrics
+  name: learn-metrics
+spec:
+  containers:
+  - image: quay.io/bitnami/grafana:latest
+    name: grafana
+    env:
+    - name: GF_SECURITY_ADMIN_PASSWORD
+      value: foobar
+    ports:
+    - containerPort: 3000
+      hostPort: 3000
+      protocol: TCP
+    volumeMounts:
+    - name: grafana-datasource
+      mountPath: /etc/grafana/provisioning/datasources/datasource.yaml
+      readOnly: true
+
+  - image: docker.io/prom/prometheus:latest
+    name: prometheus
+    ports:
+    - containerPort: 9090
+      hostPort: 3001
+      protocol: TCP
+
+  volumes:
+  - hostPath:
+      path: ./conf-grafana/datasource.yaml
+      type: File
+    name: grafana-datasource