AETHER-986 Add support of user plane access to Google app
Change-Id: I749e0172f9393d1b33f0861270ff4cdf4563f133
diff --git a/apps/google-phylo/templates/service-phylo-rtsp-server.yaml b/apps/google-phylo/templates/service-phylo-rtsp-server.yaml
index fd79bd1..22a0a81 100644
--- a/apps/google-phylo/templates/service-phylo-rtsp-server.yaml
+++ b/apps/google-phylo/templates/service-phylo-rtsp-server.yaml
@@ -11,16 +11,25 @@
apiVersion: v1
kind: Service
metadata:
- name: rtsp-server-{{ .key }}-external
+ name: rtsp-server-{{ .key }}
labels:
{{ tuple $name $context | include "phylo.metadata_labels" | indent 4 }}
+{{- if $context.Values.config.userPlane.enabled }}
+ annotations:
+ danm.k8s.io/clusterNetwork: {{ $context.Values.config.userPlane.name }}
+ danm.k8s.io/selector: '{"app": {{ $name | quote }}}'
+{{- end }}
spec:
+{{- if $context.Values.config.userPlane.enabled }}
+ clusterIP: None
+{{- else }}
selector:
{{ tuple $name $context | include "phylo.metadata_labels" | indent 4 }}
+ type: NodePort
ports:
- port: 8554
targetPort: 8554
protocol: TCP
name: tcp-8554
- type: NodePort
+{{- end }}
{{ end }}