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"