blob: 48df27e17abc307ea2311cac78811b492e0b6197 [file] [log] [blame]
Yi Tseng32561422021-10-07 15:03:21 -07001{{/*
2# Copyright 2021-present Open Networking Foundation
3
4# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
6
7apiVersion: v1
8kind: Service
9metadata:
10 name: {{ include "dbuf.fullname" . }}
11 labels:
12 {{- include "dbuf.labels" . | nindent 4 }}
13spec:
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---
23apiVersion: v1
24kind: Service
25metadata:
26 name: {{ include "dbuf.fullname" . }}-stats
27 labels:
28 {{- include "dbuf.labels" . | nindent 4 }}
29spec:
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