about summary refs log tree commit diff
path: root/tools/elasticsearch
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-29 00:04:34 +0200
committermakefunstuff <[email protected]>2024-06-29 00:04:34 +0200
commit176e6893e3c3a1c6ba6f8e912628b7f46f815bd2 (patch)
treec901597abf54e61f5c601f8d07869a19a417becf /tools/elasticsearch
parent3cbae94d96874a9d537e48baf14c68de9d457125 (diff)
downloadk3s-lab-176e6893e3c3a1c6ba6f8e912628b7f46f815bd2.tar.gz
upd helm override config
Diffstat (limited to '')
-rw-r--r--tools/elasticsearch/templates/network-policy.yaml27
-rw-r--r--tools/elasticsearch/values.yaml8
2 files changed, 8 insertions, 27 deletions
diff --git a/tools/elasticsearch/templates/network-policy.yaml b/tools/elasticsearch/templates/network-policy.yaml
deleted file mode 100644
index 8665861..0000000
--- a/tools/elasticsearch/templates/network-policy.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-apiVersion: networking.k8s.io/v1
-kind: NetworkPolicy
-metadata:
-  name: allow-logstash-and-grafana-to-elasticsearch
-  namespace: monitoring
-spec:
-  podSelector:
-    matchLabels:
-      app.kubernetes.io/name: elasticsearch
-  policyTypes:
-    - Ingress
-  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
-
diff --git a/tools/elasticsearch/values.yaml b/tools/elasticsearch/values.yaml
index 9807ff5..87321cd 100644
--- a/tools/elasticsearch/values.yaml
+++ b/tools/elasticsearch/values.yaml
@@ -10,6 +10,14 @@ elasticsearch:
   networkPolicy:
     http: true
     transport: true
+    additionalRules:
+    - podSelector:
+        matchLabels:
+          app.kubernetes.io/name: grafana
+    - podSelector:
+      matchLabels:
+        app.kubernetes.io/name: logstash
+        
   labels:
     app.kubernetes.io/name: elasticsearch
 logstash: