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

coturn docs update [skip ci] #748

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
28 changes: 25 additions & 3 deletions offline/coturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,22 @@ Add the following configuration to the `values.yaml` file:
# See: https://github.com/wireapp/wire-server/blob/develop/charts/coturn/values.yaml
# And: https://github.com/wireapp/wire-server/blob/develop/charts/coturn/README.md

# use nodeSelector only if you are planning on using less than 3 pods in your installation and wish to pin coturn to specific nodes
nodeSelector:
wire.com/role: coturn

coturnTurnListenIP: '192.168.122.23'

replicaCount: 3
coturnTurnListenIP: "__COTURN_POD_IP__"
coturnTurnExternalIP: "__COTURN_EXT_IP__"
coturnTurnRelayIP: "__COTURN_POD_IP__"
```

Where `192.168.122.23` is the IP address of the machine where you want to run Coturn (in our example, the third kubernetes node, `kubenode3`).
Annotate nodes with the wire.com/external-ip annotation if you are behind 1:1 NAT to make coturn aware of its external IP address.

ie.
```
d kubectl annotate node kubenode1 wire.com/external-ip=IP.ADDRESS
```

## Create a `secret.yaml` file for the Coturn secrets.

Expand Down Expand Up @@ -501,6 +509,20 @@ Debug log should now be visible in the coturn pod stdout:
d kubectl logs coturn-0
```

Check if the pod has the correct IP configuration in place.

```bash
d kubectl exec -it coturn-0 -- bash
grep ip= coturn-config/turnserver.conf

# output will look something like this

listening-ip=xxx.xxx.xxx.xxx
relay-ip=xxx.xxx.xxx.xxx.xxx
external-ip=xxx.xxx.xxx.xxx
```


## Appendix: Note on migration.

The current guide is written with the assumption that you are setting up Coturn for the first time, on a fresh Wire-Server installation.
Expand Down