diff --git a/manifests/grafana-dashboardDatasources.yaml b/manifests/grafana-dashboardDatasources.yaml index 5585057cba62269d402fcd621e2858977544dc41..446c686459794085b492f306ecf9b7de4cb924d5 100644 --- a/manifests/grafana-dashboardDatasources.yaml +++ b/manifests/grafana-dashboardDatasources.yaml @@ -1,21 +1,8 @@ apiVersion: v1 data: - prometheus.yaml: |- - { - "apiVersion": 1, - "datasources": [ - { - "access": "proxy", - "editable": false, - "name": "prometheus", - "orgId": 1, - "type": "prometheus", - "url": "http://prometheus-k8s.monitoring.svc:9090", - "version": 1 - } - ] - } -kind: ConfigMap + prometheus.yaml: ewogICAgImFwaVZlcnNpb24iOiAxLAogICAgImRhdGFzb3VyY2VzIjogWwogICAgICAgIHsKICAgICAgICAgICAgImFjY2VzcyI6ICJwcm94eSIsCiAgICAgICAgICAgICJlZGl0YWJsZSI6IGZhbHNlLAogICAgICAgICAgICAibmFtZSI6ICJwcm9tZXRoZXVzIiwKICAgICAgICAgICAgIm9yZ0lkIjogMSwKICAgICAgICAgICAgInR5cGUiOiAicHJvbWV0aGV1cyIsCiAgICAgICAgICAgICJ1cmwiOiAiaHR0cDovL3Byb21ldGhldXMtazhzLm1vbml0b3Jpbmcuc3ZjOjkwOTAiLAogICAgICAgICAgICAidmVyc2lvbiI6IDEKICAgICAgICB9CiAgICBdCn0= +kind: Secret metadata: name: grafana-datasources namespace: monitoring +type: Opaque diff --git a/manifests/grafana-deployment.yaml b/manifests/grafana-deployment.yaml index 8002d8322ed49980d275ebb0b015f520ae873bad..4b00b0044a3913ae43883b59c13d3f28abaadd9f 100644 --- a/manifests/grafana-deployment.yaml +++ b/manifests/grafana-deployment.yaml @@ -69,9 +69,9 @@ spec: volumes: - emptyDir: {} name: grafana-storage - - configMap: - name: grafana-datasources - name: grafana-datasources + - name: grafana-datasources + secret: + secretName: grafana-datasources - configMap: name: grafana-dashboards name: grafana-dashboards