-
Notifications
You must be signed in to change notification settings - Fork 842
env PROMETHEUS_MULTIPROC_DIR is not set or not a directory with Kubernetes #1078
ITS-Luc
started this conversation in
Show and tell
-
Setting the PROMETHEUS_MULTIPROC_DIR and creating this directory through a Dockerfile does not make the client work, getting the error env PROMETHEUS_MULTIPROC_DIR is not set or not a directory, but only with Kubernetes.
FYI, it works when setting through the ENTRYPOINT of the Dockerfile.
So, this does not work :
ENV PROMETHEUS_MULTIPROC_DIR="/tmp/proc_dir"
RUN mkdir -p "$PROMETHEUS_MULTIPROC_DIR"
But this works :
ENV PROMETHEUS_MULTIPROC_DIR="/tmp/proc_dir"
ENTRYPOINT ["/bin/sh", "-c", "mkdir -p $PROMETHEUS_MULTIPROC_DIR"]
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
Moved to a discussion as it is not an issue with the library, but a good piece of information for those deploying into Kubernetes.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment