fix
This commit is contained in:
@@ -1,32 +1,32 @@
|
|||||||
resource "kubectl_manifest" "config" {
|
resource "kubernetes_config_map_v1" "config" {
|
||||||
yaml_body = <<-EOF
|
metadata {
|
||||||
apiVersion: v1
|
name = "grafana"
|
||||||
kind: ConfigMap
|
namespace = var.namespace
|
||||||
metadata:
|
labels = local.common-labels
|
||||||
name: grafana
|
}
|
||||||
namespace: "${var.namespace}"
|
|
||||||
labels: ${jsonencode(local.common-labels)}
|
data = {
|
||||||
data:
|
"grafana.ini" = <<-EOF
|
||||||
grafana.ini: |
|
[analytics]
|
||||||
[analytics]
|
check_for_updates = true
|
||||||
check_for_updates = true
|
[grafana_net]
|
||||||
[grafana_net]
|
url = https://grafana.net
|
||||||
url = https://grafana.net
|
[log]
|
||||||
[log]
|
mode = console
|
||||||
mode = console
|
[paths]
|
||||||
[paths]
|
data = /var/lib/grafana/
|
||||||
data = /var/lib/grafana/
|
logs = /var/log/grafana
|
||||||
logs = /var/log/grafana
|
plugins = /var/lib/grafana/plugins
|
||||||
plugins = /var/lib/grafana/plugins
|
provisioning = /etc/grafana/provisioning
|
||||||
provisioning = /etc/grafana/provisioning
|
[server]
|
||||||
[server]
|
domain = ''
|
||||||
domain = ''
|
root_url = 'https://${local.dns-name}/'
|
||||||
root_url = 'https://${local.dns-name}/'
|
[auth.generic_oauth]
|
||||||
[auth.generic_oauth]
|
enabled = true
|
||||||
enabled = true
|
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_configuration_url}'
|
||||||
auth_url = '${module.oauth2.sso_configuration_url}'
|
api_url = '${module.oauth2.sso_userinfo}'
|
||||||
api_url = '${module.oauth2.sso_userinfo}'
|
|
||||||
EOF
|
EOF
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,31 +6,6 @@ metadata:
|
|||||||
name: grafana
|
name: grafana
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
domain-name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
app-group:
|
|
||||||
default: monitor
|
|
||||||
examples:
|
|
||||||
- monitor
|
|
||||||
type: string
|
|
||||||
ingress-class:
|
|
||||||
default: traefik
|
|
||||||
examples:
|
|
||||||
- traefik
|
|
||||||
type: string
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
sub-domain:
|
sub-domain:
|
||||||
default: grafana
|
default: grafana
|
||||||
examples:
|
examples:
|
||||||
@@ -133,6 +108,16 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
|
admin_name:
|
||||||
|
default: grafana_admin
|
||||||
|
examples:
|
||||||
|
- grafana_admin
|
||||||
|
type: string
|
||||||
volume:
|
volume:
|
||||||
default:
|
default:
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
@@ -152,10 +137,25 @@ options:
|
|||||||
default: 10Gi
|
default: 10Gi
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
admin_name:
|
domain-name:
|
||||||
default: grafana_admin
|
default: your_company.com
|
||||||
examples:
|
examples:
|
||||||
- grafana_admin
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
app-group:
|
||||||
|
default: monitor
|
||||||
|
examples:
|
||||||
|
- monitor
|
||||||
|
type: string
|
||||||
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
type: string
|
type: string
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
|
|||||||
Reference in New Issue
Block a user