Skip to content

Commit

Permalink
added certs and key for grafana (OCP-on-NERC#345)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeet Basu <[email protected]>

Corrected the secrets variables
  • Loading branch information
jbasu01 authored Jan 24, 2024
1 parent 5595ea7 commit 2490c01
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,18 @@ spec:
remoteRef:
key: nerc/nerc-ocp-infra/dex/dex-clients
property: GRAFANA_SECRET

- secretKey: GF_AUTH_GENERIC_TLSCACERT
remoteRef:
key: nerc/nerc-ocp-infra/dex/grafanas
property: GF_TLSCACERT

- secretKey: GF_AUTH_GENERIC_TLSCLIENTCERT
remoteRef:
key: nerc/nerc-ocp-infra/dex/grafanas
property: GF_TLSCLIENTCERT

- secretKey: GF_AUTH_GENERIC_TLSCLIENTKEY
remoteRef:
key: nerc/nerc-ocp-infra/dex/grafanas
property: GF_TLSCLIENTKEY
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: GrafanaDataSource
metadata:
name: observability-metrics
namespace: grafana
labels:
app.kubernetes.io/instance: grafana-infra
spec:
name: observability-metrics
datasources:
Expand All @@ -13,9 +15,12 @@ spec:
jsonData:
httpHeaderName1: Authorization
timeInterval: 5s
tlsAuth: true
tlsAuthWithCACert: true
secureJsonData:
httpHeaderValue1: "Bearer ${token}"
tlsCACert: "${service-ca.crt}"
tlsCACert: "${GF_AUTH_GENERIC_TLSCACERT}"
tlsClientCert: "${GF_AUTH_GENERIC_TLSCLIENTCERT}"
tlsClientKey: "${GF_AUTH_GENERIC_TLSCLIENTKEY}"
type: prometheus
url: 'http://observability-thanos-query.open-cluster-management-observability.svc.cluster.local:9090/'
url: 'https://observatorium-api-open-cluster-management-observability.apps.nerc-ocp-infra.rc.fas.harvard.edu/api/metrics/v1/default'

0 comments on commit 2490c01

Please sign in to comment.