Skip to content

Commit 102c581

Browse files
authored
Merge pull request #94 from hajowieland/feat-talos-service-logs
feat: add Talos logging destinations to allow sending logs to collectors
2 parents 442e387 + 9b6ce94 commit 102c581

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

talos_config.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ locals {
231231
time = {
232232
servers = var.talos_time_servers
233233
}
234+
logging = {
235+
destinations = var.talos_service_log_destinations
236+
}
234237
}
235238
cluster = {
236239
allowSchedulingOnControlPlanes = local.allow_scheduling_on_control_plane
@@ -372,6 +375,9 @@ locals {
372375
time = {
373376
servers = var.talos_time_servers
374377
}
378+
logging = {
379+
destinations = var.talos_service_log_destinations
380+
}
375381
}
376382
cluster = {
377383
network = {
@@ -476,6 +482,9 @@ locals {
476482
time = {
477483
servers = var.talos_time_servers
478484
}
485+
logging = {
486+
destinations = var.talos_service_log_destinations
487+
}
479488
}
480489
cluster = {
481490
network = {

variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,15 @@ variable "talos_registries" {
657657
EOF
658658
}
659659

660+
variable "talos_service_log_destinations" {
661+
description = "List of objects defining remote destinations for Talos service logs."
662+
type = list(object({
663+
endpoint = string
664+
format = optional(string, "json_lines")
665+
extraTags = optional(map(string), {})
666+
}))
667+
default = []
668+
}
660669

661670
# Talos Backup
662671
variable "talos_backup_version" {

0 commit comments

Comments
 (0)