blob: 48df27e17abc307ea2311cac78811b492e0b6197 [file] [log] [blame]
pudelkoM3f0efb12021-01-12 13:55:48 -08001{{/*
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
Hung-Wei Chiu9de579b2021-02-03 12:39:22 -080018 protocol: {{ .Values.service.grpc.protocol }}
19 port: {{ .Values.service.grpc.port }}
pudelkoM3f0efb12021-01-12 13:55:48 -080020 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:
Hung-Wei Chiu9de579b2021-02-03 12:39:22 -080033 - name: exporter
34 protocol: {{ .Values.service.stats.protocol }}
35 port: {{ .Values.service.stats.port }}
36 targetPort: exporter