feat(cert-checker): add Kubernetes resources for certificate checking functionality

- Implemented a new module for cert-checker with Kubernetes resources including ServiceAccount, Role, RoleBinding, ConfigMap, and CronJob.
- Added Python script to check certificate expiry and restart deployments if necessary.
- Configured environment variables for deployment name, namespace, and service details.
- Included requirements for the Python environment.

feat(devolo-exporter): introduce Devolo exporter for Prometheus metrics

- Created a new module for Devolo exporter with Kubernetes resources including ServiceAccount, ConfigMap, Deployment, and Service.
- Developed Python scripts to scrape metrics from Devolo devices and expose them to Prometheus.
- Configured environment variables for Devolo device IP, model, and ports.
- Added requirements for the Python environment.
This commit is contained in:
2025-10-13 22:35:35 +02:00
parent 84c8288f8a
commit d069fe3585
25 changed files with 1362 additions and 33 deletions
@@ -0,0 +1,33 @@
variable "tag" {
description = "Python image tag"
type = string
default = "3.12-slim"
}
variable "namespace" {
description = "Kubernetes namespace to deploy the prometheus exporter"
type = string
default = "prometheus"
}
variable "exporter_port" {
description = "Port where the Prometheus exporter serves metrics"
type = number
default = 9100
}
variable "rd_port" {
description = "Chromium Remote Debugging port inside the pod"
type = number
default = 9222
}
variable "devolo_ip" {
description = "IP address of the Devolo device"
type = string
}
variable "devolo_model" {
description = "Model of the Devolo device (e.g., '620' for Devolo Magic 2 WiFi next)"
type = string
}