about summary refs log tree commit diff
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-28 23:25:37 +0200
committermakefunstuff <[email protected]>2024-06-28 23:25:37 +0200
commit794f1de47aa469fe0a54800bdba28120247311b8 (patch)
tree038f9175e17029b728147ad6120e23f5388dffb7
parent5a58061b2fc2db41b2953b7be5bacf452deb1dcb (diff)
downloadk3s-lab-794f1de47aa469fe0a54800bdba28120247311b8.tar.gz
add elastic
Diffstat (limited to '')
-rw-r--r--cd/tools.yaml2
-rw-r--r--tools/elasticsearch/Chart.yaml11
-rw-r--r--tools/elasticsearch/values.yaml46
3 files changed, 59 insertions, 0 deletions
diff --git a/cd/tools.yaml b/cd/tools.yaml
index 7cdd906..eda55e4 100644
--- a/cd/tools.yaml
+++ b/cd/tools.yaml
@@ -11,6 +11,8 @@ spec:
         path: tools/grafana
       - chart: prometheus
         path: tools/prometheus
+      - chart: elasticsearch
+        path: tools/elasticsearch
   template:
     metadata:
       name: '{{chart}}'
diff --git a/tools/elasticsearch/Chart.yaml b/tools/elasticsearch/Chart.yaml
index e69de29..12c6cca 100644
--- a/tools/elasticsearch/Chart.yaml
+++ b/tools/elasticsearch/Chart.yaml
@@ -0,0 +1,11 @@
+apiVersion: v2
+name: elasticsearch-logstash
+description: A Helm chart for deploying Elasticsearch and Logstash
+version: 0.1.0
+dependencies:
+  - name: elasticsearch
+    version: 8.5.1
+    repository: "https://helm.elastic.co"
+  - name: logstash
+    version: 8.5.1
+    repository: "https://helm.elastic.co"
diff --git a/tools/elasticsearch/values.yaml b/tools/elasticsearch/values.yaml
index e69de29..5d8df08 100644
--- a/tools/elasticsearch/values.yaml
+++ b/tools/elasticsearch/values.yaml
@@ -0,0 +1,46 @@
+elasticsearch:
+  replicas: 1
+  minimumMasterNodes: 1
+  esJavaOpts: "-Xmx1g -Xms1g"
+  volumeClaimTemplate:
+    accessModes: [ "ReadWriteOnce" ]
+    resources:
+      requests:
+        storage: 10Gi
+  labels:
+    app.kubernetes.io/name: elasticsearch
+  networkPolicy:
+    http:
+      enabled: true
+    transport:
+      enabled: true
+
+logstash:
+  enabled: true
+  replicas: 1
+  volumeClaimTemplate:
+    accessModes: [ "ReadWriteOnce" ]
+    resources:
+      requests:
+        storage: 10Gi
+  logstashConfig:
+    logstash.yml: |
+      http.host: "0.0.0.0"
+      xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch-master:9200" ]
+  logstashPipeline:
+    logstash.conf: |
+      input {
+        tcp {
+          port => 5044
+          codec => json
+        }
+      }
+      output {
+        elasticsearch {
+          hosts => ["http://elasticsearch-master:9200"]
+          index => "logstash-%{+YYYY.MM.dd}"
+        }
+      }
+  labels:
+    app.kubernetes.io/name: logstash
+