add internal ip coturn

This commit is contained in:
Victor Barba Martin 2021-11-18 20:50:42 +01:00
parent 5989c6a728
commit b46e96eef8
2 changed files with 6 additions and 1 deletions

View File

@ -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"

View File

@ -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"