expose nodeport for logstash 5044
[oom.git] / kubernetes / log / templates / all-services.yaml
1 # 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
15 #{{ if not .Values.disableLogElasticsearch }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   labels:
20     app: elasticsearch
21   name: elasticsearch
22   namespace: {{ .Values.nsPrefix }}
23 spec:
24   ports:
25   - name: http
26     port: 9200
27     targetPort: 9200
28     nodePort: {{ .Values.nodePortPrefix }}54
29   selector:
30     app: elasticsearch
31   type: NodePort
32 ---
33 apiVersion: v1
34 kind: Service
35 metadata:
36   name: elasticsearchtcp
37   namespace: {{ .Values.nsPrefix }}
38   labels:
39     app: elasticsearch
40 spec:
41   ports:
42   - name: tcp
43     port: 9300
44     targetPort: 9300
45   selector:
46     app: elasticsearch
47 #{{ end }}
48 #{{ if not .Values.disableLogLogstash }}
49 ---
50 apiVersion: v1
51 kind: Service
52 metadata:
53   name: logstashinternal
54   namespace: {{ .Values.nsPrefix }}
55   labels:
56     app: logstash
57 spec:
58   ports:
59   - name: http
60     port: 9600
61     targetPort: 9600
62   selector:
63     app: logstash
64 ---
65 apiVersion: v1
66 kind: Service
67 metadata:
68   name: logstash
69   namespace: {{ .Values.nsPrefix }}
70   labels:
71     app: logstash
72 spec:
73   ports:
74   - name: transport
75     port: 5044
76     targetPort: 5044
77     nodePort: {{ .Values.nodePortPrefix }}55
78   selector:
79     app: logstash
80   type: NodePort
81 #{{ end }}
82 #{{ if not .Values.disableLogKibana }}
83 ---
84 apiVersion: v1
85 kind: Service
86 metadata:
87   labels:
88     app: kibana
89   name: kibana
90   namespace: {{ .Values.nsPrefix }}
91 spec:
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
100 #{{ end }}