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
+35 -1
View File
@@ -8,7 +8,18 @@ locals {
internal_issuer = "internal-ca"
# samba
samba_shared_folder = "/mnt/usb"
samba_shares = [
{
name = "USB"
path = "/mnt/usb"
comment = "USB Drive"
},
{
name = "Storage"
path = "/srv/storage"
comment = "Main Storage"
}
]
# DNS
dns_nameservers = [
@@ -127,6 +138,18 @@ locals {
upstream = "dns.dns.svc.cluster.local"
protocol = "udp"
}
"smb" = {
port = 445
host_port = 445
upstream = "smb.samba.svc.cluster.local"
protocol = "tcp"
}
"netbios" = {
port = 139
host_port = 139
upstream = "netbios.samba.svc.cluster.local"
protocol = "tcp"
}
}
ollama_proxy = {
@@ -191,6 +214,17 @@ locals {
telegram_message = file("${path.module}/resources/telegram.tpl")
grafana_fqdn = "grafana.${local.lab_domain}"
devolo_devices = {
devolo_620 = {
ip = "192.168.0.199"
model = "620"
}
# devolo_326 = {
# ip = "192.168.0.200"
# model = "326"
# }
}
}
data "terraform_remote_state" "scaleway" {