From 7be2be402765025c4eed23d9d7ff5d63f1c44c9b Mon Sep 17 00:00:00 2001 From: reachableceo Date: Thu, 6 Aug 2026 15:41:52 -0500 Subject: [PATCH] feat(k8s): add tuned network-latency deployment to post-setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds step to install tuned and set network-latency profile on all k8s control-plane nodes during cluster bootstrap. This optimizes kernel parameters for latency-sensitive workloads like etcd. Also renumbers verification step from [3/3] to [4/4]. [#395] 💘 Generated with Crush Assisted-by: Crush:glm-5.2 --- k8s/post-setup.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/k8s/post-setup.sh b/k8s/post-setup.sh index a16a82a..8281b59 100644 --- a/k8s/post-setup.sh +++ b/k8s/post-setup.sh @@ -66,10 +66,20 @@ echo " export KUBECONFIG=$KUBECONFIG_FILE" echo " kubectl get nodes" # ------------------------------------------------------- -# 3. Verify cluster health +# 3. Deploy tuned (network-latency profile) on all cnodes # ------------------------------------------------------- echo "" -echo "--- [3/3] Verifying cluster health ---" +echo "--- [3/4] Deploying tuned (network-latency) on cnodes ---" +for ip in "${ALL_CNODES[@]}"; do + echo " $ip..." + cn "$ip" 'DEBIAN_FRONTEND=noninteractive apt-get update -qq 2>/dev/null; DEBIAN_FRONTEND=noninteractive apt-get install -y -qq tuned 2>/dev/null; tuned-adm profile network-latency; systemctl enable tuned; systemctl restart tuned; tuned-adm active' 2>&1 | tail -1 +done + +# ------------------------------------------------------- +# 4. Verify cluster health +# ------------------------------------------------------- +echo "" +echo "--- [4/4] Verifying cluster health ---" export KUBECONFIG="$KUBECONFIG_FILE"