Yi Tseng | 3256142 | 2021-10-07 15:03:21 -0700 | [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 |
| 18 | protocol: {{ .Values.service.grpc.protocol }} |
| 19 | port: {{ .Values.service.grpc.port }} |
| 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: |
| 33 | - name: exporter |
| 34 | protocol: {{ .Values.service.stats.protocol }} |
| 35 | port: {{ .Values.service.stats.port }} |
| 36 | targetPort: exporter |