Fix configuration of elasticsearch
[oom.git] / kubernetes / log / templates / all-services.yaml
index 3984f12..0885aff 100644 (file)
@@ -15,6 +15,21 @@ spec:
   selector:
     app: elasticsearch
   type: NodePort
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: elasticsearchtcp
+  namespace: {{ .Values.nsPrefix }}-log
+  labels:
+    app: elasticsearch
+spec:
+  ports:
+  - name: tcp
+    port: 9300
+    targetPort: 9300
+  selector:
+    app: elasticsearch
 #{{ end }}
 #{{ if not .Values.disableLogLogstash }}
 ---
@@ -51,4 +66,4 @@ spec:
   selector:
     app: kibana
   type: NodePort
-#{{ end }}
\ No newline at end of file
+#{{ end }}