Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | apiVersion: v1 |
| 6 | kind: Service |
| 7 | metadata: |
| 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 }} |
| 15 | spec: |
| 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 }} |
| 28 | --- |
| 29 | apiVersion: v1 |
| 30 | kind: Service |
| 31 | metadata: |
| 32 | name: {{ template "sdcore-adapter.fullname" . }}-exporter |
| 33 | labels: |
| 34 | app: {{ template "sdcore-adapter.fullname" . }}-exporter |
| 35 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| 36 | release: "{{ .Release.Name }}" |
| 37 | heritage: "{{ .Release.Service }}" |
| 38 | {{- include "sdcore-adapter.labels" . | nindent 4 }} |
| 39 | spec: |
| 40 | type: {{ .Values.service.type }} |
| 41 | selector: |
| 42 | name: {{ template "sdcore-adapter.fullname" . }} |
| 43 | ports: |
| 44 | - name: metrics |
| 45 | port: 2112 |
| 46 | - name: exporterui |
| 47 | port: 8081 |