From 40577ba994082b1a0985cde61550cca6e9b2b50f Mon Sep 17 00:00:00 2001 From: Valniae <74309145+bbalint105@users.noreply.github.com> Date: Wed, 3 Jan 2024 12:32:29 +0100 Subject: [PATCH 1/2] Update cloudretro helper script Due to the fact that UDPRoutes aren't followed by their respective services anymore, but having a service for the Gateway itself, this value of the helper-script should have been changed. --- docs/examples/cloudretro/coordinator-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/cloudretro/coordinator-config.sh b/docs/examples/cloudretro/coordinator-config.sh index 024dccd0..95ac08b6 100755 --- a/docs/examples/cloudretro/coordinator-config.sh +++ b/docs/examples/cloudretro/coordinator-config.sh @@ -24,7 +24,7 @@ done username=$(kubectl get gatewayconfig -n stunner stunner-gatewayconfig -o jsonpath='{.spec.userName}' --context $secondary_context) credential=$(kubectl get gatewayconfig -n stunner stunner-gatewayconfig -o jsonpath='{.spec.password}' --context $secondary_context) -gwip=$(kubectl get service -n stunner stunner-gateway-udp-gateway-svc -o jsonpath='{.status.loadBalancer.ingress[0].ip}' --context $secondary_context) +gwip=$(kubectl get service -n stunner udp-gateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}' --context $secondary_context) kubectl patch configmap -n cloudretro cloudretro-config-c --context $primary_context --patch-file=/dev/stdin <<-EOF data: From 84cf3eb12aa47e27abd3b32a1b2f6571a1185ae7 Mon Sep 17 00:00:00 2001 From: Valniae <74309145+bbalint105@users.noreply.github.com> Date: Wed, 3 Jan 2024 13:39:13 +0100 Subject: [PATCH 2/2] Further updates for CloudRetro example - Updated Stunner installation part - Updated `plaintext` authtype to `static` - Replaced `UDP` with `TURN-UDP` at Stunner resources --- docs/examples/cloudretro/README.md | 14 ++++---------- .../cloudretro/cloudretro-stunner-cleanup.yaml | 2 +- docs/examples/cloudretro/stunner-gwcc.yaml | 2 +- .../cloudretro/stunner-setup-for-cloudretro.sh | 2 +- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/docs/examples/cloudretro/README.md b/docs/examples/cloudretro/README.md index e7e1b75b..e0d10442 100644 --- a/docs/examples/cloudretro/README.md +++ b/docs/examples/cloudretro/README.md @@ -79,14 +79,8 @@ the CloudRetro servers running on a private pod IP address. That is where STUNne ### STUNner -Use the official [Helm charts](../../INSTALL.md#installation) to install STUNner. - -```console -helm repo add stunner https://l7mp.io/stunner -helm repo update -helm install stunner-gateway-operator stunner/stunner-gateway-operator --create-namespace --namespace stunner-system -helm install stunner stunner/stunner --namespace stunner -``` +You will need to install Stunner on Your cluster, you can do this by following the official [installation guide](../../INSTALL.md#installation). +Wait until all the necessary resources are up and running, then you are ready to continue. Next, register STUNner with the Kubernetes Gateway API. @@ -94,7 +88,7 @@ Next, register STUNner with the Kubernetes Gateway API. kubectl apply -f stunner-gwcc.yaml ``` -The default configuration uses the `plaintext` STUN/TURN authentication mode with the +The default configuration uses the `static` STUN/TURN authentication mode with the username/password pair `user-1/pass-1`; make sure to [customize](../../AUTH.md) these defaults. Next, we expose the CloudRetro media services over STUNner. The below Gateway specification will @@ -116,7 +110,7 @@ spec: listeners: - name: udp-listener port: 3478 - protocol: UDP + protocol: TURN-UDP EOF ``` diff --git a/docs/examples/cloudretro/cloudretro-stunner-cleanup.yaml b/docs/examples/cloudretro/cloudretro-stunner-cleanup.yaml index 307ca0b9..a7cea0b3 100644 --- a/docs/examples/cloudretro/cloudretro-stunner-cleanup.yaml +++ b/docs/examples/cloudretro/cloudretro-stunner-cleanup.yaml @@ -9,7 +9,7 @@ spec: listeners: - name: udp-listener port: 3478 - protocol: UDP + protocol: TURN-UDP --- apiVersion: stunner.l7mp.io/v1 kind: UDPRoute diff --git a/docs/examples/cloudretro/stunner-gwcc.yaml b/docs/examples/cloudretro/stunner-gwcc.yaml index 74b7ceb2..bfb46182 100644 --- a/docs/examples/cloudretro/stunner-gwcc.yaml +++ b/docs/examples/cloudretro/stunner-gwcc.yaml @@ -19,6 +19,6 @@ metadata: namespace: stunner spec: realm: stunner.l7mp.io - authType: plaintext + authType: static userName: "user-1" password: "pass-1" diff --git a/docs/examples/cloudretro/stunner-setup-for-cloudretro.sh b/docs/examples/cloudretro/stunner-setup-for-cloudretro.sh index 8a3323e1..4b7a2ad8 100644 --- a/docs/examples/cloudretro/stunner-setup-for-cloudretro.sh +++ b/docs/examples/cloudretro/stunner-setup-for-cloudretro.sh @@ -23,7 +23,7 @@ spec: listeners: - name: udp-listener port: 3478 - protocol: UDP + protocol: TURN-UDP EOF kubectl apply $context -f - <