blob: 883e20284e0267166e63a94709487088254cd67a [file] [log] [blame]
Yi Tseng32561422021-10-07 15:03:21 -07001{{/*
2# Copyright 2021-present Open Networking Foundation
3
Charles Chand1b4bf92022-02-02 16:27:10 -08004# SPDX-License-Identifier: Apache-2.0
Yi Tseng32561422021-10-07 15:03:21 -07005*/}}
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