-
Notifications
You must be signed in to change notification settings - Fork 9
/
fluent-bit.tf
64 lines (53 loc) · 1.96 KB
/
fluent-bit.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module "fluent-bit" {
source = "./modules/fluent-bit"
count = var.create && var.fluent_bit_configs.enabled ? 1 : 0
account_id = local.account_id
region = local.region
cluster_name = module.eks-cluster[0].cluster_id
eks_oidc_root_ca_thumbprint = module.eks-cluster[0].eks_oidc_root_ca_thumbprint
oidc_provider_arn = module.eks-cluster[0].oidc_provider_arn
fluent_bit_name = try(var.fluent_bit_configs.fluent_bit_name, "") != "" ? var.fluent_bit_configs.fluent_bit_name : "${module.eks-cluster[0].cluster_id}-fluent-bit"
log_group_name = try(var.fluent_bit_configs.log_group_name, "") != "" ? var.fluent_bit_configs.log_group_name : "fluent-bit-cloudwatch-${module.eks-cluster[0].cluster_id}"
system_log_group_name = try(var.fluent_bit_configs.system_log_group_name, "")
log_retention_days = try(var.fluent_bit_configs.log_retention_days, 90)
image_pull_secrets = try(var.fluent_bit_configs.image_pull_secrets, [])
values_yaml = try(var.fluent_bit_configs.values_yaml, "")
drop_namespaces = try(var.fluent_bit_configs.drop_namespaces, [
"kube-system",
"opentelemetry-operator-system",
"adot",
"cert-manager",
"opentelemetry.*",
"meta.*",
])
log_filters = try(var.fluent_bit_configs.log_filters, [
"kube-probe",
"health",
"prometheus",
"liveness"
])
kube_namespaces = try(var.fluent_bit_configs.kube_namespaces, [
"kube.*",
"meta.*",
"adot.*",
"devops.*",
"cert-manager.*",
"git.*",
"opentelemetry.*",
"stakater.*",
"renovate.*"
])
additional_log_filters = try(var.fluent_bit_configs.additional_log_filters, [
"ELB-HealthChecker",
"Amazon-Route53-Health-Check-Service",
])
fluent_bit_config = try(var.fluent_bit_configs.configs, {
inputs = ""
outputs = ""
filters = ""
cloudwatch_outputs_enabled = true
})
depends_on = [
module.eks-cluster
]
}