This commit is contained in:
2024-01-22 16:09:46 +01:00
parent 1f6853b347
commit 8ad641e923
4 changed files with 175 additions and 165 deletions

View File

@@ -42,7 +42,7 @@ resource "kubectl_manifest" "alertmanager" {
labels: ${jsonencode(local.common-labels)} labels: ${jsonencode(local.common-labels)}
spec: spec:
distrib: "${var.distributions.domain}" distrib: "${var.distributions.domain}"
category: "share" category: "monitor"
component: "alertmanager" component: "alertmanager"
options: ${jsonencode(merge(local.global, local.alertmanager))} options: ${jsonencode(merge(local.global, local.alertmanager))}
EOF EOF
@@ -77,7 +77,7 @@ resource "kubectl_manifest" "nodeExporter" {
spec: spec:
distrib: "${var.distributions.domain}" distrib: "${var.distributions.domain}"
category: "monitor" category: "monitor"
component: "k8s-nodeExporter" component: "node-exporter"
options: ${jsonencode(merge(local.global, local.nodeExporter))} options: ${jsonencode(merge(local.global, local.nodeExporter))}
EOF EOF
} }
@@ -95,7 +95,7 @@ resource "kubectl_manifest" "kubeStateMetrics" {
spec: spec:
distrib: "${var.distributions.domain}" distrib: "${var.distributions.domain}"
category: "monitor" category: "monitor"
component: "kubeStateMetrics" component: "kube-state-metrics"
options: ${jsonencode(merge(local.global, local.kubeStateMetrics))} options: ${jsonencode(merge(local.global, local.kubeStateMetrics))}
EOF EOF
} }

View File

@@ -6,23 +6,53 @@ metadata:
name: domain-monitor name: domain-monitor
description: null description: null
options: options:
domain: issuer:
default: your-company default: letsencrypt-prod
examples: examples:
- your-company - letsencrypt-prod
type: string type: string
monitor-control-plan: storage-classes:
default: default:
enable: false BlockReadWriteMany: ''
BlockReadWriteOnce: ''
FilesystemReadWriteMany: ''
FilesystemReadWriteOnce: ''
examples: examples:
- enable: false - BlockReadWriteMany: ''
BlockReadWriteOnce: ''
FilesystemReadWriteMany: ''
FilesystemReadWriteOnce: ''
properties:
BlockReadWriteMany:
default: ''
type: string
BlockReadWriteOnce:
default: ''
type: string
FilesystemReadWriteMany:
default: ''
type: string
FilesystemReadWriteOnce:
default: ''
type: string
type: object
ingress-class:
default: traefik
examples:
- traefik
type: string
alertmanager:
default:
enable: true
examples:
- enable: true
properties: properties:
enable: enable:
default: false default: true
type: boolean type: boolean
type: object type: object
x-vynil-category: monitor x-vynil-category: monitor
x-vynil-package: monitor-control-plan x-vynil-package: alertmanager
backups: backups:
default: default:
enable: false enable: false
@@ -53,6 +83,59 @@ options:
default: backup-settings default: backup-settings
type: string type: string
type: object type: object
app-group:
default: infra
examples:
- infra
type: string
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
monitor-control-plan:
default:
enable: false
examples:
- enable: false
properties:
enable:
default: false
type: boolean
type: object
x-vynil-category: monitor
x-vynil-package: monitor-control-plan
prometheus:
default:
enable: true
examples:
- enable: true
properties:
enable:
default: true
type: boolean
type: object
x-vynil-category: monitor
x-vynil-package: prometheus
node-exporter:
default:
enable: true
examples:
- enable: true
properties:
enable:
default: true
type: boolean
type: object
x-vynil-category: monitor
x-vynil-package: node-exporter
distributions: distributions:
default: default:
core: core core: core
@@ -68,99 +151,16 @@ options:
default: domain default: domain
type: string type: string
type: object 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
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:
default:
BlockReadWriteMany: ''
BlockReadWriteOnce: ''
FilesystemReadWriteMany: ''
FilesystemReadWriteOnce: ''
examples:
- BlockReadWriteMany: ''
BlockReadWriteOnce: ''
FilesystemReadWriteMany: ''
FilesystemReadWriteOnce: ''
properties:
BlockReadWriteMany:
default: ''
type: string
BlockReadWriteOnce:
default: ''
type: string
FilesystemReadWriteMany:
default: ''
type: string
FilesystemReadWriteOnce:
default: ''
type: string
type: object
prometheus:
default:
enable: true
examples:
- enable: true
properties:
enable:
default: true
type: boolean
type: object
x-vynil-category: monitor
x-vynil-package: prometheus
ingress-class:
default: traefik
examples:
- traefik
type: string
app-group:
default: infra
examples:
- infra
type: string
alertmanager:
default:
enable: true
examples:
- enable: true
properties:
enable:
default: true
type: boolean
type: object
x-vynil-category: monitor
x-vynil-package: alertmanager
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
node-exporter:
default:
enable: true
examples:
- enable: true
properties:
enable:
default: true
type: boolean
type: object
x-vynil-category: monitor
x-vynil-package: node-exporter
dependencies: [] dependencies: []
providers: providers:
kubernetes: true kubernetes: true

View File

@@ -6,26 +6,21 @@ metadata:
name: alertmanager name: alertmanager
description: null description: null
options: options:
listenLocal: sub-domain:
default: false default: to-be-set
examples: examples:
- false - to-be-set
type: boolean type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
issuer: issuer:
default: letsencrypt-prod default: letsencrypt-prod
examples: examples:
- letsencrypt-prod - letsencrypt-prod
type: string type: string
logLevel:
default: info
examples:
- info
type: string
retention:
default: 120h
examples:
- 120h
type: string
images: images:
default: default:
alertmanager: alertmanager:
@@ -65,31 +60,41 @@ options:
type: string type: string
type: object type: object
type: object type: object
domain:
default: your-company
examples:
- your-company
type: string
replicas: replicas:
default: 1 default: 1
examples: examples:
- 1 - 1
type: integer type: integer
sub-domain: retention:
default: to-be-set default: 120h
examples: examples:
- to-be-set - 120h
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string 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
app-group:
default: monitor
examples:
- monitor
type: string
logLevel:
default: info
examples:
- info
type: string
domain:
default: your-company
examples:
- your-company
type: string
listenLocal:
default: false
examples:
- false
type: boolean
dependencies: dependencies:
- dist: null - dist: null
category: share category: share

View File

@@ -6,51 +6,41 @@ metadata:
name: prometheus name: prometheus
description: null description: null
options: options:
shards:
default: 1
examples:
- 1
type: integer
retention:
default: 10d
examples:
- 10d
type: string
logLevel:
default: info
examples:
- info
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
domain:
default: your-company
examples:
- your-company
type: string
listenLocal: listenLocal:
default: false default: false
examples: examples:
- false - false
type: boolean type: boolean
enableAdminAPI: ingress-class:
default: false default: traefik
examples: examples:
- false - traefik
type: boolean
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string type: string
replicas:
default: 1
examples:
- 1
type: integer
logLevel:
default: info
examples:
- info
type: string
retention:
default: 10d
examples:
- 10d
type: string
sub-domain:
default: prometheus
examples:
- prometheus
type: string
shards:
default: 1
examples:
- 1
type: integer
images: images:
default: default:
prometheus: prometheus:
@@ -90,16 +80,31 @@ options:
type: string type: string
type: object type: object
type: object type: object
ingress-class: app-group:
default: traefik default: monitor
examples: examples:
- traefik - monitor
type: string type: string
domain: issuer:
default: your-company default: letsencrypt-prod
examples: examples:
- your-company - letsencrypt-prod
type: string type: string
sub-domain:
default: prometheus
examples:
- prometheus
type: string
replicas:
default: 1
examples:
- 1
type: integer
enableAdminAPI:
default: false
examples:
- false
type: boolean
dependencies: dependencies:
- dist: null - dist: null
category: share category: share