This commit is contained in:
2024-01-24 16:49:51 +01:00
parent a06c8a4608
commit d4338d1cdb
3 changed files with 50 additions and 37 deletions

View File

@@ -34,6 +34,7 @@ org_role = Viewer
enabled = true enabled = true
name = vynil name = vynil
scopes = openid profile email scopes = openid profile email
${var.issuer=="letsencrypt-prod"?"#":""}tls_client_ca = /etc/local-certs/ca.crt
client_id = '${module.oauth2.client_id}' client_id = '${module.oauth2.client_id}'
client_secret = '${module.oauth2.client_secret}' client_secret = '${module.oauth2.client_secret}'
auth_url = '${module.oauth2.sso_authorize_url}' auth_url = '${module.oauth2.sso_authorize_url}'

View File

@@ -86,6 +86,18 @@ data "kustomization_overlay" "data" {
name: grafana name: grafana
annotations: annotations:
configmap.reloader.stakater.com/reload: "grafana" configmap.reloader.stakater.com/reload: "grafana"
EOF spec:
template:
spec:
containers:
- name: grafana
volumeMounts:
- name: local-certs
mountPath: "/etc/local-certs"
volumes:
- name: local-certs
secret:
secretName: "${var.instance}-cert"
defaultMode: 0444
} }
} }

View File

@@ -6,11 +6,25 @@ metadata:
name: grafana name: grafana
description: null description: null
options: options:
ingress-class: volume:
default: traefik default:
accessMode: ReadWriteOnce
size: 10Gi
examples: examples:
- traefik - accessMode: ReadWriteOnce
type: string size: 10Gi
properties:
accessMode:
default: ReadWriteOnce
enum:
- ReadWriteOnce
- ReadOnlyMany
- ReadWriteMany
type: string
size:
default: 10Gi
type: string
type: object
app-group: app-group:
default: monitor default: monitor
examples: examples:
@@ -21,6 +35,21 @@ options:
examples: examples:
- grafana - grafana
type: string type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
domain:
default: your-company
examples:
- your-company
type: string
admin_name:
default: grafana_admin
examples:
- grafana_admin
type: string
images: images:
default: default:
busybox: busybox:
@@ -118,40 +147,11 @@ options:
type: string type: string
type: object type: object
type: object type: object
admin_name: ingress-class:
default: grafana_admin default: traefik
examples: examples:
- grafana_admin - traefik
type: string type: string
domain:
default: your-company
examples:
- your-company
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
volume:
default:
accessMode: ReadWriteOnce
size: 10Gi
examples:
- accessMode: ReadWriteOnce
size: 10Gi
properties:
accessMode:
default: ReadWriteOnce
enum:
- ReadWriteOnce
- ReadOnlyMany
- ReadWriteMany
type: string
size:
default: 10Gi
type: string
type: object
domain-name: domain-name:
default: your_company.com default: your_company.com
examples: examples: