blob: 3b37784aade01d018d116f1684705be8f7d04fe5 [file] [log] [blame]
Hyunsun Moon97e111d2022-05-13 17:56:56 -07001{{/*
2# Copyright 2022-present Open Networking Foundation
3
4# SPDX-License-Identifier: Apache-2.0
5*/}}
Shad Ansari0a4637a2022-05-11 12:20:59 -07006
7apiVersion: v1
8kind: Service
9metadata:
Hyunsun Moon08898d42022-05-16 14:21:38 -070010 name: {{ include "person-detection-app.fullname" . }}-streaming
Shad Ansari0a4637a2022-05-11 12:20:59 -070011 labels:
12 {{- include "person-detection-app.labels" . | nindent 4 }}
13spec:
Hyunsun Moon08898d42022-05-16 14:21:38 -070014 type: {{ .Values.service.streaming.type }}
Shad Ansari0a4637a2022-05-11 12:20:59 -070015 ports:
Hyunsun Moon08898d42022-05-16 14:21:38 -070016 - port: {{ .Values.service.streaming.port }}
Shad Ansari0a4637a2022-05-11 12:20:59 -070017 protocol: TCP
Hyunsun Moon08898d42022-05-16 14:21:38 -070018 selector:
19 {{- include "person-detection-app.selectorLabels" . | nindent 4 }}
20---
21apiVersion: v1
22kind: Service
23metadata:
24 name: {{ include "person-detection-app.fullname" . }}-input
25 labels:
26 {{- include "person-detection-app.labels" . | nindent 4 }}
27spec:
28 type: {{ .Values.service.input.type }}
29 ports:
30 - port: {{ .Values.service.input.port }}
Hyunsun Mooncb887bf2022-05-16 12:36:07 -070031 protocol: UDP
Shad Ansari0a4637a2022-05-11 12:20:59 -070032 selector:
33 {{- include "person-detection-app.selectorLabels" . | nindent 4 }}