]> piware.de Git - learn-metrics.git/blobdiff - learn-metrics.yaml
Move to different nginx container
[learn-metrics.git] / learn-metrics.yaml
index 273b6480453d5664775d2f950974d7c58889a14d..8bde4458aa2e0fe20970d8af94672ecc791ceafe 100644 (file)
@@ -11,16 +11,21 @@ spec:
     env:
     - name: GF_SECURITY_ADMIN_PASSWORD
       value: foobar
+    - name: GF_PATHS_CONFIG
+      value: /grafana-config/grafana.ini
     ports:
     - containerPort: 3000
       hostPort: 3000
       protocol: TCP
     volumeMounts:
-    - name: grafana-datasource
-      mountPath: /etc/grafana/provisioning/datasources/datasource.yaml
+    - name: grafana-config
+      mountPath: /grafana-config
+      readOnly: true
+    - name: grafana-provisioning
+      mountPath: /etc/grafana/provisioning
       readOnly: true
 
-  - image: docker.io/prom/prometheus:latest
+  - image: quay.io/prometheus/prometheus:latest
     name: prometheus
     ports:
     - containerPort: 9090
@@ -31,20 +36,26 @@ spec:
         mountPath: /etc/prometheus
         readOnly: true
 
-  - image: quay.io/bitnami/nginx
+  - image: quay.io/jitesoft/nginx
     name: httpd
+    ports:
+    - containerPort: 80
+      hostPort: 3002
+      protocol: TCP
     volumeMounts:
     - name: http
-      mountPath: /app
+      mountPath: /usr/local/nginx/html
       readOnly: true
 
   volumes:
   - hostPath:
-      path: ./conf-grafana/datasource.yaml
-      type: File
-    name: grafana-datasource
+      path: ./grafana-provisioning
+    name: grafana-provisioning
+  - hostPath:
+      path: ./grafana-config
+    name: grafana-config
   - hostPath:
-      path: ./conf-prometheus
+      path: ./prometheus-config
     name: prometheus-config
   - hostPath:
       path: ./http