blob: 74ef8a866b523c98d51390ea2649b3bb4cbfbd7d [file] [log] [blame]
Ajay Lotan Thakur85e31112021-06-23 16:59:47 -05001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
6
7{{- if .Values.config.simapp.deploy }}
8---
9apiVersion: v1
10kind: Service
11metadata:
12 name: simapp
13 labels:
14{{ tuple "simapp" . | include "omec-sub-provision.metadata_labels" | indent 4 }}
15spec:
16 type: ClusterIP
17 selector:
18{{ tuple "simapp" . | include "omec-sub-provision.metadata_labels" | indent 4 }}
19 ports:
20 - name: prometheus-exporter
21 port: {{ .Values.config.simapp.prometheus.port }}
22 protocol: TCP
Ajay Lotan Thakur941b78e2021-07-17 17:32:32 -050023 - name: config-exporter
24 port: {{ .Values.config.simapp.config.port }}
25 protocol: TCP
Ajay Lotan Thakur85e31112021-06-23 16:59:47 -050026{{- if .Values.config.simapp.prometheus.nodePort.enabled }}
27---
28apiVersion: v1
29kind: Service
30metadata:
31 name: simapp-external
32 labels:
33{{ tuple "simapp" . | include "omec-sub-provision.metadata_labels" | indent 4 }}
34spec:
35 type: NodePort
36 selector:
37{{ tuple "simapp" . | include "omec-sub-provision.metadata_labels" | indent 4 }}
38 ports:
39{{- if .Values.config.simapp.prometheus.nodePort.enabled }}
40 - name: prometheus-exporter
41 port: {{ .Values.config.simapp.prometheus.port }}
42 protocol: TCP
43 nodePort: {{ .Values.config.simapp.prometheus.nodePort.port }}
44{{- end }}
Ajay Lotan Thakur941b78e2021-07-17 17:32:32 -050045{{- if .Values.config.simapp.config.nodePort.enabled }}
46 - name: config-exporter
47 port: {{ .Values.config.simapp.config.port }}
48 protocol: TCP
49 nodePort: {{ .Values.config.simapp.config.nodePort.port }}
50{{- end }}
Ajay Lotan Thakur85e31112021-06-23 16:59:47 -050051{{- end }}
52{{- end }}