Scott Baker | e3090f0 | 2022-05-31 15:51:41 -0700 | [diff] [blame] | 1 | # 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 | |
| 6 | apiVersion: v1 |
| 7 | kind: Service |
| 8 | metadata: |
| 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 }} |
| 16 | spec: |
| 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 }} |