about summary refs log tree commit diff
path: root/tools/elasticsearch
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-28 23:34:17 +0200
committermakefunstuff <[email protected]>2024-06-28 23:34:17 +0200
commit0495bb3709dd68b9aecd459cd4f2f1cb14fb8f87 (patch)
treeb455091168cd0e0c00c4dc1a4e86354551cd9427 /tools/elasticsearch
parent794f1de47aa469fe0a54800bdba28120247311b8 (diff)
downloadk3s-lab-0495bb3709dd68b9aecd459cd4f2f1cb14fb8f87.tar.gz
allow grafana to see elasticsearch
Diffstat (limited to 'tools/elasticsearch')
-rw-r--r--tools/elasticsearch/values.yaml20
1 files changed, 16 insertions, 4 deletions
diff --git a/tools/elasticsearch/values.yaml b/tools/elasticsearch/values.yaml
index 5d8df08..8037406 100644
--- a/tools/elasticsearch/values.yaml
+++ b/tools/elasticsearch/values.yaml
@@ -10,11 +10,23 @@ elasticsearch:
   labels:
     app.kubernetes.io/name: elasticsearch
   networkPolicy:
-    http:
       enabled: true
-    transport:
-      enabled: true
-
+      allowExternal: false
+      ingress:
+        - from:
+            - podSelector:
+                matchLabels:
+                  app.kubernetes.io/name: logstash
+          ports:
+            - protocol: TCP
+              port: 9200
+        - from:
+            - podSelector:
+                matchLabels:
+                  app.kubernetes.io/name: grafana
+          ports:
+            - protocol: TCP
+              port: 9200
 logstash:
   enabled: true
   replicas: 1