Skip to content

Commit 6bb4a62

Browse files
committed
Deploy logstash
1 parent 4550672 commit 6bb4a62

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

terraform/modules/k8s-addons/eks-logstash.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ resource "helm_release" "logstash" {
2020
version = local.logstash.chart_version
2121

2222
namespace = "elk"
23-
timeout = "180"
23+
timeout = "600"
2424
max_history = var.helm_release_history_size
2525

2626
values = compact(

terraform/modules/k8s-addons/elk-templates/filebeat-values.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,6 @@ filebeatConfig:
2727
setup.ilm.enabled: false
2828
output.logstash:
2929
hosts: ["logstash-logstash.elk.svc:5044"]
30-
extraEnvs:
31-
- name: 'ELASTICSEARCH_USERNAME'
32-
valueFrom:
33-
secretKeyRef:
34-
name: elastic-credentials
35-
key: username
36-
- name: 'ELASTICSEARCH_PASSWORD'
37-
valueFrom:
38-
secretKeyRef:
39-
name: elastic-credentials
40-
key: password
41-
- name: 'ELASTICSEARCH_HOST'
42-
valueFrom:
43-
secretKeyRef:
44-
name: elastic-credentials
45-
key: host
4630
4731
resources:
4832
requests:

terraform/modules/k8s-addons/elk-templates/logstash-values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
replicas: 1
1+
replicas: 2
22

33
resources:
44
requests:
@@ -112,3 +112,11 @@ extraVolumeMounts:
112112
mountPath: /etc/logstash/certificates
113113
readOnly: true
114114

115+
nodeAffinity:
116+
requiredDuringSchedulingIgnoredDuringExecution:
117+
nodeSelectorTerms:
118+
- matchExpressions:
119+
- key: karpenter.sh/capacity-type
120+
operator: In
121+
values:
122+
- spot

0 commit comments

Comments
 (0)