diff --git a/docker/coturn/rootfs/usr/local/bin/launch-coturn.sh b/docker/coturn/rootfs/usr/local/bin/launch-coturn.sh index 1f1eb96..f9fde32 100644 --- a/docker/coturn/rootfs/usr/local/bin/launch-coturn.sh +++ b/docker/coturn/rootfs/usr/local/bin/launch-coturn.sh @@ -4,6 +4,6 @@ trap -- '' SIGINT SIGTERM PUBLIC_IP=`curl --silent checkip.amazonaws.com` -turnserver --prometheus --log-file=stdout --min-port 49160 --max-port 49200 --external-ip=$PUBLIC_IP & +turnserver --prometheus --log-file=stdout --min-port 49160 --max-port 49200 --external-ip=$PUBLIC_IP/$MY_POD_IP & child=$! wait "$child" diff --git a/k8s/coturn/templates/deployment.yml b/k8s/coturn/templates/deployment.yml index b16cc26..8824063 100644 --- a/k8s/coturn/templates/deployment.yml +++ b/k8s/coturn/templates/deployment.yml @@ -21,6 +21,11 @@ spec: - name: coturn image: gcr.io/tough-craft-276813/coturn:latest imagePullPolicy: Always + env: + - name: MY_POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP resources: requests: memory: "3800Mi"