blob: 84ccfc5f5efa932f533400e69bd05948d3544a4b [file] [log] [blame]
Jakub Latusek50530762020-10-21 13:36:29 +02001{{/*
Steve Alphonse Siania1b6b0e2019-01-25 15:23:58 -05002# Copyright (c) 2019 IBM, Bell Canada
efiacor7d3b0142023-02-28 11:28:52 +00003# Modification Copyright © 2023 Nordix Foundation
Steve Alphonse Siania1b6b0e2019-01-25 15:23:58 -05004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
Jakub Latusek50530762020-10-21 13:36:29 +020016*/}}
Steve Alphonse Siania1b6b0e2019-01-25 15:23:58 -050017
18apiVersion: v1
19kind: Service
20metadata:
Oleg Mitsura0197bf12019-05-03 15:03:55 -040021 name: {{ include "common.servicename" . }}-http
Steve Alphonse Siania1b6b0e2019-01-25 15:23:58 -050022 namespace: {{ include "common.namespace" . }}
23 labels:
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010026 release: {{ include "common.release" . }}
Steve Alphonse Siania1b6b0e2019-01-25 15:23:58 -050027 heritage: {{ .Release.Service }}
28 annotations:
29spec:
Oleg Mitsura0197bf12019-05-03 15:03:55 -040030 type: {{ .Values.service.http.type }}
Steve Alphonse Siania1b6b0e2019-01-25 15:23:58 -050031 ports:
32 - port: {{ .Values.service.http.externalPort }}
33 targetPort: {{ .Values.service.http.internalPort }}
efiacor7d3b0142023-02-28 11:28:52 +000034 name: {{ .Values.service.http.portName | default "http" }}
Oleg Mitsura0197bf12019-05-03 15:03:55 -040035 selector:
efiacor7d3b0142023-02-28 11:28:52 +000036 app.kubernetes.io/instance: {{ include "common.release" . }}
37 app.kubernetes.io/name: {{ include "common.name" . }}
Oleg Mitsura0197bf12019-05-03 15:03:55 -040038---
39apiVersion: v1
40kind: Service
41metadata:
42 name: {{ include "common.servicename" . }}-grpc
43 namespace: {{ include "common.namespace" . }}
44 labels:
45 app: {{ include "common.name" . }}
46 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010047 release: {{ include "common.release" . }}
Oleg Mitsura0197bf12019-05-03 15:03:55 -040048 heritage: {{ .Release.Service }}
49 annotations:
50spec:
51 type: {{ .Values.service.grpc.type }}
52 ports:
Steve Alphonse Siania1b6b0e2019-01-25 15:23:58 -050053 - port: {{ .Values.service.grpc.externalPort }}
54 targetPort: {{ .Values.service.grpc.internalPort }}
Alexis de Talhouët63df1632019-03-20 08:17:58 -040055 name: {{ .Values.service.grpc.portName | default "grpc" }}
Steve Alphonse Siania1b6b0e2019-01-25 15:23:58 -050056 selector:
efiacor7d3b0142023-02-28 11:28:52 +000057 app.kubernetes.io/instance: {{ include "common.release" . }}
58 app.kubernetes.io/name: {{ include "common.name" . }}
Sebastien Premont-Tendlandb679d7b2020-02-17 11:32:15 -050059---
60apiVersion: v1
61kind: Service
62metadata:
63 name: {{ include "common.servicename" . }}-cluster
64 namespace: {{ include "common.namespace" . }}
65 labels:
66 app: {{ include "common.name" . }}
67 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
abdelseaudica7459b2020-07-03 17:31:06 +000068 release: {{ include "common.release" . }}
Sebastien Premont-Tendlandb679d7b2020-02-17 11:32:15 -050069 heritage: {{ .Release.Service }}
70 annotations:
71spec:
72 type: {{ .Values.service.cluster.type }}
73 ports:
74 - port: {{ .Values.service.cluster.externalPort }}
75 targetPort: {{ .Values.service.cluster.internalPort }}
Sebastien Premont-Tendlandb679d7b2020-02-17 11:32:15 -050076 name: {{ .Values.service.cluster.portName | default "cluster" }}
77 selector:
efiacor7d3b0142023-02-28 11:28:52 +000078 app.kubernetes.io/instance: {{ include "common.release" . }}
79 app.kubernetes.io/name: {{ include "common.name" . }}