blob: 43c92bac030e6eba9ff19bd1c5192c6904bf11fd [file] [log] [blame]
# SPDX-FileCopyrightText: 2022-present Intel Corporation
# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
#
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: {{ template "fabric-adapter.fullname" . }}
labels:
app: {{ template "fabric-adapter.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- include "fabric-adapter.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
name: {{ template "fabric-adapter.fullname" . }}
ports:
{{- range $key, $port := .Values.ports.gnmi }}
- name: gnmi{{ $key }}
port: {{ $port }}
{{- end}}
- name: prometheus
port: {{ .Values.ports.prometheus }}
- name: diag-api
port: {{ .Values.ports.diagApi }}