blob: a22a1fed1163fdab4e2fd5f2ada30037a4658baf [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableLogElasticsearch }}
Itay Hasside2da86d2017-08-24 12:54:42 +000016apiVersion: v1
17kind: Service
18metadata:
19 labels:
20 app: elasticsearch
21 name: elasticsearch
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +000023spec:
24 ports:
25 - name: http
26 port: 9200
27 targetPort: 9200
28 nodePort: {{ .Values.nodePortPrefix }}54
29 selector:
30 app: elasticsearch
31 type: NodePort
BorislavG2631be82017-11-01 12:48:42 +020032---
33apiVersion: v1
34kind: Service
35metadata:
36 name: elasticsearchtcp
BorislavG8bfc6cf2018-02-27 15:04:26 +000037 namespace: {{ .Values.nsPrefix }}
BorislavG2631be82017-11-01 12:48:42 +020038 labels:
39 app: elasticsearch
40spec:
41 ports:
42 - name: tcp
43 port: 9300
44 targetPort: 9300
45 selector:
46 app: elasticsearch
yurynfcef9942017-10-26 17:10:50 +030047#{{ end }}
48#{{ if not .Values.disableLogLogstash }}
Itay Hasside2da86d2017-08-24 12:54:42 +000049---
50apiVersion: v1
51kind: Service
52metadata:
mayankg2703229e5372018-01-29 09:33:56 +000053 name: logstashinternal
BorislavG8bfc6cf2018-02-27 15:04:26 +000054 namespace: {{ .Values.nsPrefix }}
mayankg2703229e5372018-01-29 09:33:56 +000055 labels:
56 app: logstash
57spec:
58 ports:
59 - name: http
60 port: 9600
61 targetPort: 9600
62 selector:
63 app: logstash
64---
65apiVersion: v1
66kind: Service
67metadata:
Itay Hasside2da86d2017-08-24 12:54:42 +000068 name: logstash
BorislavG8bfc6cf2018-02-27 15:04:26 +000069 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +000070 labels:
71 app: logstash
72spec:
73 ports:
74 - name: transport
75 port: 5044
76 targetPort: 5044
77 selector:
78 app: logstash
yurynfcef9942017-10-26 17:10:50 +030079#{{ end }}
80#{{ if not .Values.disableLogKibana }}
Itay Hasside2da86d2017-08-24 12:54:42 +000081---
82apiVersion: v1
83kind: Service
84metadata:
85 labels:
86 app: kibana
87 name: kibana
BorislavG8bfc6cf2018-02-27 15:04:26 +000088 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +000089spec:
90 ports:
91 - name: tcp-ks
92 port: 5601
93 targetPort: 5601
94 nodePort: {{ .Values.nodePortPrefix }}53
95 selector:
96 app: kibana
97 type: NodePort
BorislavG2631be82017-11-01 12:48:42 +020098#{{ end }}