X-Git-Url: https://piware.de/gitweb/?p=learn-metrics.git;a=blobdiff_plain;f=learn-metrics.yaml;h=7c1c7ea563403d001bfec83d51e3b165bb50c801;hp=bc1d913ca1197e6f59a7bd5843117be0d4fb5bce;hb=6f7c7e47c29340f4f7bfbb5630e3d01d18250df4;hpb=b32bbe6c62e01841cd10a246a07b0f478fbbaaae diff --git a/learn-metrics.yaml b/learn-metrics.yaml index bc1d913..7c1c7ea 100644 --- a/learn-metrics.yaml +++ b/learn-metrics.yaml @@ -11,11 +11,16 @@ 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 @@ -43,6 +48,9 @@ spec: path: ./conf-grafana/datasource.yaml type: File name: grafana-datasource + - hostPath: + path: ./conf-grafana + name: grafana-config - hostPath: path: ./conf-prometheus name: prometheus-config