aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormayankg2703 <mayank.gupta@amdocs.com>2018-01-29 09:33:56 +0000
committermayankg2703 <mayank.gupta@amdocs.com>2018-01-29 09:41:42 +0000
commit229e53773d9e05c426c72bdb1380da6ff1d74ad5 (patch)
tree7aa48059273fb559f2a4cac75681baf05e3df0d2
parentc2e4627285a01bae296b9097a604a9f02f98a2f9 (diff)
exposing logstash port
create sevrice on logstash application port Change-Id: I4832624273cb98cf9db8384575a17883321da4d9 Issue-ID: OOM-632 Signed-off-by: mayankg2703 <mayank.gupta@amdocs.com>
-rw-r--r--kubernetes/log/templates/all-services.yaml15
-rw-r--r--kubernetes/log/templates/logstash-deployment.yaml5
2 files changed, 19 insertions, 1 deletions
diff --git a/kubernetes/log/templates/all-services.yaml b/kubernetes/log/templates/all-services.yaml
index 0885affdcf..e8b6b816da 100644
--- a/kubernetes/log/templates/all-services.yaml
+++ b/kubernetes/log/templates/all-services.yaml
@@ -36,6 +36,21 @@ spec:
apiVersion: v1
kind: Service
metadata:
+ name: logstashinternal
+ namespace: {{ .Values.nsPrefix }}-log
+ labels:
+ app: logstash
+spec:
+ ports:
+ - name: http
+ port: 9600
+ targetPort: 9600
+ selector:
+ app: logstash
+---
+apiVersion: v1
+kind: Service
+metadata:
name: logstash
namespace: {{ .Values.nsPrefix }}-log
labels:
diff --git a/kubernetes/log/templates/logstash-deployment.yaml b/kubernetes/log/templates/logstash-deployment.yaml
index 47c72c8145..f99657a039 100644
--- a/kubernetes/log/templates/logstash-deployment.yaml
+++ b/kubernetes/log/templates/logstash-deployment.yaml
@@ -35,9 +35,12 @@ spec:
- name: logstash
image: {{ .Values.image.logstash }}
ports:
- - containerPort: 5044
+ - containerPort: 5044
name: transport
protocol: TCP
+ - containerPort: 9600
+ name: http
+ protocol: TCP
readinessProbe:
tcpSocket:
port: 5044