From 6e90e55c5a217844b06c6454d628406fa7943c49 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 11 Sep 2024 14:58:05 +0200 Subject: [PATCH] Update fsnotify settings of the system kernel after installing k8s cluster Change-Id: I5c25e7c3fe9cfd6ae03763468bcad95f47abd63d Signed-off-by: garciadeblas --- installers/full_install_osm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 59315223..6996478d 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -450,6 +450,10 @@ function install_k8s_cluster() { $OSM_DEVOPS/installers/install_cluster_addons.sh ${K8SCLUSTER_ADDONS_INSTALL_OPTS} || \ FATAL_TRACK k8scluster "install_cluster_addons.sh failed for k3s cluster" fi + echo "Updating fsnotify settings of the system kernel" + sudo bash -c "sysctl -w fs.inotify.max_user_watches=699050 > /etc/sysctl.d/99-custom-osm-sysctl.conf" + sudo bash -c "sysctl -w fs.inotify.max_user_instances=10922 >> /etc/sysctl.d/99-custom-osm-sysctl.conf" + sudo bash -c "sysctl -w fs.inotify.max_queued_events=1398101 >> /etc/sysctl.d/99-custom-osm-sysctl.conf" [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } -- 2.25.1