about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tools/elasticsearch/values.yaml20
-rw-r--r--tools/grafana/values.yaml7
2 files changed, 23 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
diff --git a/tools/grafana/values.yaml b/tools/grafana/values.yaml
index 2e19714..3d9f8c6 100644
--- a/tools/grafana/values.yaml
+++ b/tools/grafana/values.yaml
@@ -40,3 +40,10 @@ grafana:
           access: proxy
           url: http://prometheus-server.monitoring.svc.cluster.local
           isDefault: true
+        - name: Elasticsearch
+          type: elasticsearch
+          access: proxy
+          url: http://elasticsearch-master.monitoring.svc.cluster.local:9200
+          jsonData:
+            esVersion: 7
+            timeField: "@timestamp"