pudelkoM | 3f0efb1 | 2021-01-12 13:55:48 -0800 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2021-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 5 | */}} |
| 6 | |
| 7 | apiVersion: v1 |
| 8 | kind: Service |
| 9 | metadata: |
| 10 | name: {{ include "dbuf.fullname" . }} |
| 11 | labels: |
| 12 | {{- include "dbuf.labels" . | nindent 4 }} |
| 13 | spec: |
| 14 | selector: |
| 15 | {{- include "dbuf.selectorLabels" . | nindent 4 }} |
| 16 | ports: |
| 17 | - name: grpc |
Hung-Wei Chiu | 9de579b | 2021-02-03 12:39:22 -0800 | [diff] [blame] | 18 | protocol: {{ .Values.service.grpc.protocol }} |
| 19 | port: {{ .Values.service.grpc.port }} |
pudelkoM | 3f0efb1 | 2021-01-12 13:55:48 -0800 | [diff] [blame] | 20 | targetPort: grpc |
| 21 | |
| 22 | --- |
| 23 | apiVersion: v1 |
| 24 | kind: Service |
| 25 | metadata: |
| 26 | name: {{ include "dbuf.fullname" . }}-stats |
| 27 | labels: |
| 28 | {{- include "dbuf.labels" . | nindent 4 }} |
| 29 | spec: |
| 30 | selector: |
| 31 | {{- include "dbuf.selectorLabels" . | nindent 4 }} |
| 32 | ports: |
Hung-Wei Chiu | 9de579b | 2021-02-03 12:39:22 -0800 | [diff] [blame] | 33 | - name: exporter |
| 34 | protocol: {{ .Values.service.stats.protocol }} |
| 35 | port: {{ .Values.service.stats.port }} |
| 36 | targetPort: exporter |