flatnotes icon indicating copy to clipboard operation
flatnotes copied to clipboard

`FLATNOTES_PORT` is not documented an conflicts with the kubernetes default environment variable assignment

Open sparksis opened this issue 8 months ago • 0 comments

Given a services resource named flatnotes kubernetes will create and automatically inject an environment variable FLATNOTES_PORT=tcp://10.152.183.133:80 into all containers within the namespace. This conflicts with these.

Given that the services resource port does not necessarily align with the contain port the best solution may be to skip processing that portion of the script in entrypoint.sh if KUBERNETES_PORT is not empty ([[ -z "${KUBERNETES_PORT}" ]]).

I think it would also be valuable to document the existence and usage of FLATNOTES_PORT.

sparksis avatar May 26 '24 18:05 sparksis