Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/kind-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ done

# Prometheus config-reloader needs sufficient inotify resources
if [ "${PROM_ENABLED}" == "true" ]; then
INOTIFY_INSTANCES=$(cat /proc/sys/fs/inotify/max_user_instances)
# On non-Linux hosts (e.g. macOS) /proc does not exist and the kind pods run in
# the container-runtime VM, not the host, so fall back to a passing value rather
# than letting the failed read abort the script under `set -e`.
INOTIFY_INSTANCES=$(cat /proc/sys/fs/inotify/max_user_instances 2>/dev/null || echo 512)
if [ "${INOTIFY_INSTANCES}" -lt 512 ]; then
echo "Error: fs.inotify.max_user_instances is ${INOTIFY_INSTANCES} (need >= 512) for Prometheus."
echo ""
Expand Down
Loading