X-Git-Url: https://piware.de/gitweb/?p=learn-metrics.git;a=blobdiff_plain;f=learn-metrics.yaml;h=df18ac1c57e5108fb6265e4c45273a1a8b14b526;hp=bc1d913ca1197e6f59a7bd5843117be0d4fb5bce;hb=453bab7e27611e3983282f63be13a0cb3b98dfaa;hpb=b32bbe6c62e01841cd10a246a07b0f478fbbaaae diff --git a/learn-metrics.yaml b/learn-metrics.yaml index bc1d913..df18ac1 100644 --- a/learn-metrics.yaml +++ b/learn-metrics.yaml @@ -6,18 +6,23 @@ metadata: name: learn-metrics spec: containers: - - image: quay.io/bitnami/grafana:latest + - image: docker.io/grafana/grafana name: grafana 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: quay.io/prometheus/prometheus:latest @@ -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