From 4e7f62da69d3105709dfe37fb9ca5429fc1f9ff0 Mon Sep 17 00:00:00 2001 From: Alexander Nabokikh Date: Mon, 13 May 2024 15:36:43 +0200 Subject: [PATCH] chore(#1791): added a check if kubelet started --- templates/al2/runtime/bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/al2/runtime/bootstrap.sh b/templates/al2/runtime/bootstrap.sh index 81cf70a89..2d42dfae8 100755 --- a/templates/al2/runtime/bootstrap.sh +++ b/templates/al2/runtime/bootstrap.sh @@ -642,6 +642,11 @@ systemctl daemon-reload systemctl enable kubelet systemctl start kubelet +if ! systemctl is-active --quiet kubelet; then + log "ERROR: kubelet failed to start" + exit 1 +fi + # gpu boost clock if command -v nvidia-smi &> /dev/null; then log "INFO: nvidia-smi found"