mirror of
https://github.com/netdata/netdata.git
synced 2025-04-06 14:35:32 +00:00
Rename NETDATA_PORT to NETDATA_LISTENER_PORT (#10045)
Because it clashes with a kubernetes defined NETDATA_PORT variable: Our Helm chart creates a service called netdata which in turn makes kubernetes export a NETDATA_PORT environment variable with a value like tcp://<ip>:19999 which is not parsable by the netdata agent as a value to the `-p` argument.
This commit is contained in:
parent
04344fda25
commit
cac39ebd2d
2 changed files with 3 additions and 3 deletions
packaging/docker
|
@ -107,8 +107,8 @@ RUN \
|
|||
# Install any Python wheels
|
||||
RUN pip install /wheels/*
|
||||
|
||||
ENV NETDATA_PORT 19999
|
||||
EXPOSE $NETDATA_PORT
|
||||
ENV NETDATA_LISTENER_PORT 19999
|
||||
EXPOSE $NETDATA_LISTENER_PORT
|
||||
|
||||
ENTRYPOINT ["/usr/sbin/run.sh"]
|
||||
|
||||
|
|
|
@ -19,6 +19,6 @@ if [ -n "${PGID}" ]; then
|
|||
usermod -a -G "${PGID}" "${DOCKER_USR}" || echo >&2 "Could not add netdata user to group docker with ID ${PGID}"
|
||||
fi
|
||||
|
||||
exec /usr/sbin/netdata -u "${DOCKER_USR}" -D -s /host -p "${NETDATA_PORT}" -W set web "web files group" root -W set web "web files owner" root "$@"
|
||||
exec /usr/sbin/netdata -u "${DOCKER_USR}" -D -s /host -p "${NETDATA_LISTENER_PORT}" -W set web "web files group" root -W set web "web files owner" root "$@"
|
||||
|
||||
echo "Netdata entrypoint script, completed!"
|
||||
|
|
Loading…
Add table
Reference in a new issue