grafana: deploy Grafana instance, datasource and dashboards #238
Reference in New Issue
Block a user
Delete Branch "benvin/grafana-instance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Deploys Grafana in-cluster (observability project) via the grafana-operator, mirroring the puppet Grafana but modernised — CNPG for state, Authentik OIDC for auth — and ports the live datasource + dashboards in as CRs.
Depends on: grafana-operator (#235, merged), grafana schemas (#236, merged), Authentik OIDC (terraform-authentik #2), Vault seeds (done), and
^grafana/image proxy (terraform-artifactapi #5).Changes (
apps/base/grafana)grafana); VaultAuth + VaultStaticSecrets pullingpostgres/oauthcredentials fromkv/kubernetes/namespace/grafana/default/*.generic_oauth(client id/secret from the Vault-synced secret, openid/email/profile scopes, group→role mapping);root_urlgrafana.k8s.syd1.au.unkin.net.vmselect-mainservice; reuses the previous default datasource uid so the imported dashboards resolve unedited.Review notes
role_attribute_pathmaps Authentik groupgrafana-admins→ Admin, else Viewer — confirm the group name.database.ssl_mode: requireagainst the CNPG pooler — adjust if the pooler isn't serving TLS.VictoriaLogs - clusterdashboard has no in-cluster logs datasource yet (no VictoriaLogs in k8s) — included for completeness, will be empty until one exists.make kubeconformclean (24 resources, validated against the strict grafana schemas).