blob: 6f29b9a040d9d4ff2f32cb7d1b90cfcbdebdd810 [file] [log] [blame]
Scott Bakere35e6832022-01-10 15:48:08 -08001# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
2#
Sean Condon160ec1d2022-02-08 12:58:25 +00003# SPDX-License-Identifier: Apache-2.0
Scott Bakere35e6832022-01-10 15:48:08 -08004
5apiVersion: v1
6kind: Service
7metadata:
8 name: {{ template "sdcore-adapter.fullname" . }}
9 labels:
10 app: {{ template "sdcore-adapter.fullname" . }}
11 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
12 release: "{{ .Release.Name }}"
13 heritage: "{{ .Release.Service }}"
14 {{- include "sdcore-adapter.labels" . | nindent 4 }}
15spec:
16 type: {{ .Values.service.type }}
17 selector:
18 name: {{ template "sdcore-adapter.fullname" . }}
19 ports:
20 {{- range $key, $port := .Values.ports.gnmi }}
21 - name: gnmi{{ $key }}
22 port: {{ $port }}
23 {{- end}}
24 - name: prometheus
25 port: {{ .Values.ports.prometheus }}
26 - name: diag-api
27 port: {{ .Values.ports.diagApi }}