fix
This commit is contained in:
@@ -22,7 +22,7 @@ locals {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "kubernetes_namespace_v1" "monitor-ns" {
|
resource "kubernetes_namespace_v1" "monitor-ns" {
|
||||||
count = ( var.prometheus.enable || var.alertmanager.enable || var.nodeExporter.enable || var.kubeStateMetrics.enable || var.monitorControlPlan.enable )? 1 : 0
|
count = ( var.prometheus.enable || var.alertmanager.enable || var.node-exporter.enable || var.kube-state-metrics.enable || var.monitor-control-plan.enable )? 1 : 0
|
||||||
metadata {
|
metadata {
|
||||||
annotations = local.annotations
|
annotations = local.annotations
|
||||||
labels = merge(local.common-labels, local.annotations)
|
labels = merge(local.common-labels, local.annotations)
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ metadata:
|
|||||||
name: domain-monitor
|
name: domain-monitor
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
issuer:
|
app-group:
|
||||||
default: letsencrypt-prod
|
default: infra
|
||||||
examples:
|
examples:
|
||||||
- letsencrypt-prod
|
- infra
|
||||||
type: string
|
type: string
|
||||||
backups:
|
backups:
|
||||||
default:
|
default:
|
||||||
@@ -41,31 +41,30 @@ options:
|
|||||||
default: backup-settings
|
default: backup-settings
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
ingress-class:
|
prometheus:
|
||||||
default: traefik
|
|
||||||
examples:
|
|
||||||
- traefik
|
|
||||||
type: string
|
|
||||||
distributions:
|
|
||||||
default:
|
default:
|
||||||
core: core
|
enable: true
|
||||||
domain: domain
|
|
||||||
examples:
|
examples:
|
||||||
- core: core
|
- enable: true
|
||||||
domain: domain
|
|
||||||
properties:
|
properties:
|
||||||
core:
|
enable:
|
||||||
default: core
|
default: true
|
||||||
type: string
|
type: boolean
|
||||||
domain:
|
|
||||||
default: domain
|
|
||||||
type: string
|
|
||||||
type: object
|
type: object
|
||||||
domain-name:
|
x-vynil-category: monitor
|
||||||
default: your_company.com
|
x-vynil-package: prometheus
|
||||||
|
monitor-control-plan:
|
||||||
|
default:
|
||||||
|
enable: false
|
||||||
examples:
|
examples:
|
||||||
- your_company.com
|
- enable: false
|
||||||
type: string
|
properties:
|
||||||
|
enable:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
x-vynil-category: monitor
|
||||||
|
x-vynil-package: monitor-control-plan
|
||||||
node-exporter:
|
node-exporter:
|
||||||
default:
|
default:
|
||||||
enable: true
|
enable: true
|
||||||
@@ -78,18 +77,6 @@ options:
|
|||||||
type: object
|
type: object
|
||||||
x-vynil-category: monitor
|
x-vynil-category: monitor
|
||||||
x-vynil-package: node-exporter
|
x-vynil-package: node-exporter
|
||||||
kube-state-metrics:
|
|
||||||
default:
|
|
||||||
enable: true
|
|
||||||
examples:
|
|
||||||
- enable: true
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
x-vynil-category: monitor
|
|
||||||
x-vynil-package: kube-state-metrics
|
|
||||||
storage-classes:
|
storage-classes:
|
||||||
default:
|
default:
|
||||||
BlockReadWriteMany: ''
|
BlockReadWriteMany: ''
|
||||||
@@ -115,23 +102,31 @@ options:
|
|||||||
default: ''
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
app-group:
|
issuer:
|
||||||
default: infra
|
default: letsencrypt-prod
|
||||||
examples:
|
examples:
|
||||||
- infra
|
- letsencrypt-prod
|
||||||
type: string
|
type: string
|
||||||
prometheus:
|
ingress-class:
|
||||||
default:
|
default: traefik
|
||||||
enable: true
|
|
||||||
examples:
|
examples:
|
||||||
- enable: true
|
- traefik
|
||||||
|
type: string
|
||||||
|
distributions:
|
||||||
|
default:
|
||||||
|
core: core
|
||||||
|
domain: domain
|
||||||
|
examples:
|
||||||
|
- core: core
|
||||||
|
domain: domain
|
||||||
properties:
|
properties:
|
||||||
enable:
|
core:
|
||||||
default: true
|
default: core
|
||||||
type: boolean
|
type: string
|
||||||
|
domain:
|
||||||
|
default: domain
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
x-vynil-category: monitor
|
|
||||||
x-vynil-package: prometheus
|
|
||||||
alertmanager:
|
alertmanager:
|
||||||
default:
|
default:
|
||||||
enable: true
|
enable: true
|
||||||
@@ -144,23 +139,28 @@ options:
|
|||||||
type: object
|
type: object
|
||||||
x-vynil-category: monitor
|
x-vynil-category: monitor
|
||||||
x-vynil-package: alertmanager
|
x-vynil-package: alertmanager
|
||||||
|
kube-state-metrics:
|
||||||
|
default:
|
||||||
|
enable: true
|
||||||
|
examples:
|
||||||
|
- enable: true
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
x-vynil-category: monitor
|
||||||
|
x-vynil-package: kube-state-metrics
|
||||||
domain:
|
domain:
|
||||||
default: your-company
|
default: your-company
|
||||||
examples:
|
examples:
|
||||||
- your-company
|
- your-company
|
||||||
type: string
|
type: string
|
||||||
monitor-control-plan:
|
domain-name:
|
||||||
default:
|
default: your_company.com
|
||||||
enable: false
|
|
||||||
examples:
|
examples:
|
||||||
- enable: false
|
- your_company.com
|
||||||
properties:
|
type: string
|
||||||
enable:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
x-vynil-category: monitor
|
|
||||||
x-vynil-package: monitor-control-plan
|
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
kubernetes: true
|
kubernetes: true
|
||||||
|
|||||||
Reference in New Issue
Block a user