X-Git-Url: https://piware.de/gitweb/?p=learn-metrics.git;a=blobdiff_plain;f=learn-metrics.yaml;h=7c1c7ea563403d001bfec83d51e3b165bb50c801;hp=4d76cf97b920c923b130828fae6ced8917d86604;hb=6f7c7e47c29340f4f7bfbb5630e3d01d18250df4;hpb=b4641dd2003ec91a1bd356814d3507f2477725e0 diff --git a/learn-metrics.yaml b/learn-metrics.yaml index 4d76cf9..7c1c7ea 100644 --- a/learn-metrics.yaml +++ b/learn-metrics.yaml @@ -11,24 +11,49 @@ 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-config + mountPath: /grafana-config + readOnly: true - name: grafana-datasource mountPath: /etc/grafana/provisioning/datasources/datasource.yaml readOnly: true - - image: docker.io/prom/prometheus:latest + - image: quay.io/prometheus/prometheus:latest name: prometheus ports: - containerPort: 9090 hostPort: 3001 protocol: TCP + volumeMounts: + - name: prometheus-config + mountPath: /etc/prometheus + readOnly: true + + - image: quay.io/bitnami/nginx + name: httpd + volumeMounts: + - name: http + mountPath: /app + readOnly: true volumes: - hostPath: path: ./conf-grafana/datasource.yaml type: File name: grafana-datasource + - hostPath: + path: ./conf-grafana + name: grafana-config + - hostPath: + path: ./conf-prometheus + name: prometheus-config + - hostPath: + path: ./http + name: http