blob: 43c92bac030e6eba9ff19bd1c5192c6904bf11fd [file] [log] [blame]
Scott Bakere3090f02022-05-31 15:51:41 -07001# SPDX-FileCopyrightText: 2022-present Intel Corporation
2# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
3#
4# SPDX-License-Identifier: Apache-2.0
5
6apiVersion: v1
7kind: Service
8metadata:
9 name: {{ template "fabric-adapter.fullname" . }}
10 labels:
11 app: {{ template "fabric-adapter.fullname" . }}
12 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
13 release: "{{ .Release.Name }}"
14 heritage: "{{ .Release.Service }}"
15 {{- include "fabric-adapter.labels" . | nindent 4 }}
16spec:
17 type: {{ .Values.service.type }}
18 selector:
19 name: {{ template "fabric-adapter.fullname" . }}
20 ports:
21 {{- range $key, $port := .Values.ports.gnmi }}
22 - name: gnmi{{ $key }}
23 port: {{ $port }}
24 {{- end}}
25 - name: prometheus
26 port: {{ .Values.ports.prometheus }}
27 - name: diag-api
28 port: {{ .Values.ports.diagApi }}