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 |
| 18 | protocol: TCP |
| 19 | # TODO: define in values |
| 20 | port: 10000 |
| 21 | targetPort: grpc |
| 22 | |
| 23 | --- |
| 24 | apiVersion: v1 |
| 25 | kind: Service |
| 26 | metadata: |
| 27 | name: {{ include "dbuf.fullname" . }}-stats |
| 28 | labels: |
| 29 | {{- include "dbuf.labels" . | nindent 4 }} |
| 30 | spec: |
| 31 | selector: |
| 32 | {{- include "dbuf.selectorLabels" . | nindent 4 }} |
| 33 | ports: |
| 34 | - name: stats |
| 35 | protocol: TCP |
| 36 | # TODO: define in values |
| 37 | port: 8080 |
| 38 | targetPort: stats |