Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CloudRetro helper script #109

Merged
merged 2 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions docs/examples/cloudretro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,16 @@ 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.

```console
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
Expand All @@ -116,7 +110,7 @@ spec:
listeners:
- name: udp-listener
port: 3478
protocol: UDP
protocol: TURN-UDP
EOF
```

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/cloudretro/cloudretro-stunner-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
listeners:
- name: udp-listener
port: 3478
protocol: UDP
protocol: TURN-UDP
---
apiVersion: stunner.l7mp.io/v1
kind: UDPRoute
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/cloudretro/coordinator-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/cloudretro/stunner-gwcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ metadata:
namespace: stunner
spec:
realm: stunner.l7mp.io
authType: plaintext
authType: static
userName: "user-1"
password: "pass-1"
2 changes: 1 addition & 1 deletion docs/examples/cloudretro/stunner-setup-for-cloudretro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
listeners:
- name: udp-listener
port: 3478
protocol: UDP
protocol: TURN-UDP
EOF
kubectl apply $context -f - <<EOF
apiVersion: gateway.networking.k8s.io/v1alpha2
Expand Down
Loading