summaryrefslogtreecommitdiffstats
path: root/kubernetes/log/templates
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/log/templates')
-rw-r--r--kubernetes/log/templates/all-services.yaml17
-rw-r--r--kubernetes/log/templates/elasticsearch-deployment.yaml8
2 files changed, 21 insertions, 4 deletions
diff --git a/kubernetes/log/templates/all-services.yaml b/kubernetes/log/templates/all-services.yaml
index 3984f12521..0885affdcf 100644
--- a/kubernetes/log/templates/all-services.yaml
+++ b/kubernetes/log/templates/all-services.yaml
@@ -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 }}
diff --git a/kubernetes/log/templates/elasticsearch-deployment.yaml b/kubernetes/log/templates/elasticsearch-deployment.yaml
index f0db31a289..c123df1daa 100644
--- a/kubernetes/log/templates/elasticsearch-deployment.yaml
+++ b/kubernetes/log/templates/elasticsearch-deployment.yaml
@@ -51,10 +51,11 @@ spec:
protocol: TCP
readinessProbe:
tcpSocket:
- port: 9200
+ port: 9300
volumeMounts:
- - mountPath: /usr/share/elasticsearch/conf/
+ - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
name: elasticsearch-conf
+ subPath: elasticsearch.yml
- mountPath: /usr/share/elasticsearch/data/
name: elasticsearch-data
- mountPath: /usr/share/elasticsearch/logs/
@@ -80,4 +81,5 @@ metadata:
namespace: {{ .Values.nsPrefix }}-log
data:
{{ (.Files.Glob "resources/elasticsearch/conf/elasticsearch.yml").AsConfig | indent 2 }}
-#{{ end }} \ No newline at end of file
+#{{ end }}
+