blob: 389e7e4caf778a633ddfe237b45c975d3d0dd3fd [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
Jun (Nicolas) Hu827152b2018-03-21 15:19:29 -040077 nodePort: {{ .Values.nodePortPrefix }}55
Itay Hasside2da86d2017-08-24 12:54:42 +000078 selector:
79 app: logstash
Jun (Nicolas) Hu827152b2018-03-21 15:19:29 -040080 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030081#{{ end }}
82#{{ if not .Values.disableLogKibana }}
Itay Hasside2da86d2017-08-24 12:54:42 +000083---
84apiVersion: v1
85kind: Service
86metadata:
87 labels:
88 app: kibana
89 name: kibana
BorislavG8bfc6cf2018-02-27 15:04:26 +000090 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +000091spec:
92 ports:
93 - name: tcp-ks
94 port: 5601
95 targetPort: 5601
96 nodePort: {{ .Values.nodePortPrefix }}53
97 selector:
98 app: kibana
99 type: NodePort
BorislavG2631be82017-11-01 12:48:42 +0200100#{{ end }}