
This removes the reliance on coredns for APIserver discovery, allowing a simpler configuration that is compatible with corednx 1.0.x Change-Id: Ia3b7b5627c16ec47af6b0d6d5e8dee2674e9b1ee
29 lines
696 B
Bash
Executable File
29 lines
696 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
PORT=${PORT:-9000}
|
|
UWSGI_TIMEOUT=${UWSGI_TIMEOUT:-300}
|
|
|
|
PROMENADE_THREADS=${PROMENADE_THREADS:-1}
|
|
PROMENADE_WORKERS=${PROMENADE_WORKERS:-4}
|
|
|
|
if [ "$1" = 'server' ]; then
|
|
exec uwsgi \
|
|
--http ":${PORT}" \
|
|
--http-timeout "${UWSGI_TIMEOUT}" \
|
|
--harakiri "${UWSGI_TIMEOUT}" \
|
|
--socket-timeout "${UWSGI_TIMEOUT}" \
|
|
--harakiri-verbose \
|
|
--lazy-apps \
|
|
--master \
|
|
--thunder-lock \
|
|
--die-on-term \
|
|
-z "${UWSGI_TIMEOUT}" \
|
|
--paste config:/etc/promenade/api-paste.ini \
|
|
--enable-threads \
|
|
--threads "${PROMENADE_THREADS}" \
|
|
--workers "${PROMENADE_WORKERS}"
|
|
fi
|
|
|
|
exec ${@}
|