File tree Expand file tree Collapse file tree 3 files changed +45
-19
lines changed Expand file tree Collapse file tree 3 files changed +45
-19
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,15 @@ locals {
15
15
service_account_name = local.service_account_name,
16
16
image_repository = var.fluent_bit_image_repository,
17
17
image_tag = var.fluent_bit_image_tag,
18
+ liveness_probe = jsonencode (var. fluent_bit_liveness_probe ),
19
+ readiness_probe = jsonencode (var. fluent_bit_readiness_probe ),
20
+ resources = jsonencode (var. fluent_bit_resources ),
18
21
})
19
22
20
23
fluent_bit_helm_config = merge (
21
24
local. default_helm_config ,
22
25
var. fluent_bit_helm_config
23
26
)
24
-
25
27
}
26
28
27
29
# tfsec:ignore:aws-cloudwatch-log-group-customer-key Not using CMK to save cost
Original file line number Diff line number Diff line change @@ -32,23 +32,11 @@ service:
32
32
# prometheus.io/port: "2020"
33
33
# prometheus.io/scrape: "true"
34
34
35
- livenessProbe :
36
- httpGet :
37
- path : /
38
- port : http
39
-
40
- readinessProbe :
41
- httpGet :
42
- path : /api/v1/health
43
- port : http
44
-
45
- resources :
46
- limits :
47
- cpu : 100m
48
- memory : 128Mi
49
- requests :
50
- cpu : 100m
51
- memory : 128Mi
35
+ livenessProbe : ${liveness_probe}
36
+
37
+ readinessProbe : ${readiness_probe}
38
+
39
+ resources : ${resources}
52
40
53
41
flush : 1
54
42
@@ -71,7 +59,6 @@ config:
71
59
Time_Key time
72
60
Time_Format %d/%b/%Y:%H:%M:%S %z
73
61
74
-
75
62
# # https://docs.fluentbit.io/manual/pipeline/inputs
76
63
inputs : |
77
64
[INPUT]
Original file line number Diff line number Diff line change @@ -1505,6 +1505,43 @@ variable "fluent_bit_overwrite_helm_values" {
1505
1505
default = " "
1506
1506
}
1507
1507
1508
+ variable "fluent_bit_liveness_probe" {
1509
+ description = " Liveness probe for fluent-bit"
1510
+ type = map (any )
1511
+ default = {
1512
+ httpGet = {
1513
+ path = " /"
1514
+ port = " 2020"
1515
+ }
1516
+ }
1517
+ }
1518
+
1519
+ variable "fluent_bit_readiness_probe" {
1520
+ description = " Readiness probe for fluent-bit"
1521
+ type = map (any )
1522
+ default = {
1523
+ httpGet = {
1524
+ path = " /api/v1/health"
1525
+ port = " 2020"
1526
+ }
1527
+ }
1528
+ }
1529
+
1530
+ variable "fluent_bit_resources" {
1531
+ description = " Resources for fluent-bit"
1532
+ type = map (any )
1533
+ default = {
1534
+ requests = {
1535
+ cpu = " 100m"
1536
+ memory = " 128Mi"
1537
+ }
1538
+ limits = {
1539
+ cpu = " 100m"
1540
+ memory = " 128Mi"
1541
+ }
1542
+ }
1543
+ }
1544
+
1508
1545
variable "ip_dual_stack_enabled" {
1509
1546
description = " Enable essentials to support EKS dual stack cluster"
1510
1547
type = bool
You can’t perform that action at this time.
0 commit comments