X-Git-Url: https://piware.de/gitweb/?p=learn-metrics.git;a=blobdiff_plain;f=learn-metrics.yaml;h=3d6c678c4e75a0bacf92f7dcd7112c646119d788;hp=6966d782784f1423579ec55caef08cdfaeeec434;hb=9faca17bfd6b13cadd14516e33a0e03924e64cc8;hpb=762850f8170ad2411fe014b5af63d4820ac9301f diff --git a/learn-metrics.yaml b/learn-metrics.yaml index 6966d78..3d6c678 100644 --- a/learn-metrics.yaml +++ b/learn-metrics.yaml @@ -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 @@ -28,7 +33,7 @@ spec: protocol: TCP volumeMounts: - name: prometheus-config - mountPath: /etc/prometheus/prometheus.yml + mountPath: /etc/prometheus readOnly: true - image: quay.io/bitnami/nginx @@ -40,12 +45,13 @@ spec: 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/prometheus.yml - type: File + path: ./prometheus-config name: prometheus-config - hostPath: path: ./http