a22a1fed1163fdab4e2fd5f2ada30037a4658baf
[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   selector:
78     app: logstash
79 #{{ end }}
80 #{{ if not .Values.disableLogKibana }}
81 ---
82 apiVersion: v1
83 kind: Service
84 metadata:
85   labels:
86     app: kibana
87   name: kibana
88   namespace: {{ .Values.nsPrefix }}
89 spec:
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
98 #{{ end }}