feat(k8s): add tuned network-latency deployment to post-setup

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
This commit is contained in:
2026-08-06 15:41:52 -05:00
parent 608c006c9e
commit 7be2be4027
+12 -2
View File
@@ -66,10 +66,20 @@ echo " export KUBECONFIG=$KUBECONFIG_FILE"
echo " kubectl get nodes" echo " kubectl get nodes"
# ------------------------------------------------------- # -------------------------------------------------------
# 3. Verify cluster health # 3. Deploy tuned (network-latency profile) on all cnodes
# ------------------------------------------------------- # -------------------------------------------------------
echo "" 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" export KUBECONFIG="$KUBECONFIG_FILE"