This commit is contained in:
2024-01-24 15:51:06 +01:00
parent 42fe75fe41
commit 918d19d957
2 changed files with 53 additions and 39 deletions

View File

@@ -74,4 +74,18 @@ data "kustomization_overlay" "data" {
value: "${var.namespace}" value: "${var.namespace}"
EOF EOF
} }
patches {
target {
kind = "Deployment"
name = "grafana"
}
patch = <<-EOF
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana
annotations:
configmap.reloader.stakater.com/reload: "${kubernetes_config_map_v1.config.metadata[0].name}"
EOF
}
} }

View File

@@ -6,21 +6,40 @@ metadata:
name: grafana name: grafana
description: null description: null
options: options:
issuer: volume:
default: letsencrypt-prod default:
accessMode: ReadWriteOnce
size: 10Gi
examples: examples:
- letsencrypt-prod - accessMode: ReadWriteOnce
type: string size: 10Gi
ingress-class: properties:
default: traefik accessMode:
default: ReadWriteOnce
enum:
- ReadWriteOnce
- ReadOnlyMany
- ReadWriteMany
type: string
size:
default: 10Gi
type: string
type: object
admin_name:
default: grafana_admin
examples: examples:
- traefik - grafana_admin
type: string type: string
app-group: app-group:
default: monitor default: monitor
examples: examples:
- monitor - monitor
type: string type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
images: images:
default: default:
busybox: busybox:
@@ -118,44 +137,25 @@ options:
type: string type: string
type: object type: object
type: object type: object
sub-domain:
default: grafana
examples:
- grafana
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:
default: your-company
examples:
- your-company
type: string
domain-name: domain-name:
default: your_company.com default: your_company.com
examples: examples:
- your_company.com - your_company.com
type: string type: string
admin_name: domain:
default: grafana_admin default: your-company
examples: examples:
- grafana_admin - your-company
type: string
sub-domain:
default: grafana
examples:
- grafana
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string type: string
dependencies: [] dependencies: []
providers: providers: