From bbfe10a0720b94d0e6ecb922b922ced7df7d6b60 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 24 Aug 2023 10:48:29 +0200 Subject: [PATCH] ci: enable debug logs in kubelet enable debug logs in kubelet for better debugging. Signed-off-by: Madhu Rajanna --- scripts/minikube.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/minikube.sh b/scripts/minikube.sh index b2e26f147c7..f4a332209cc 100755 --- a/scripts/minikube.sh +++ b/scripts/minikube.sh @@ -268,7 +268,11 @@ up) fi # shellcheck disable=SC2086 ${minikube} start --force --memory="${MEMORY}" --cpus="${CPUS}" -b kubeadm --kubernetes-version="${KUBE_VERSION}" --driver="${VM_DRIVER}" --feature-gates="${K8S_FEATURE_GATES}" --cni="${CNI}" ${EXTRA_CONFIG} --wait-timeout="${MINIKUBE_WAIT_TIMEOUT}" --wait="${MINIKUBE_WAIT}" --delete-on-failure ${DISK_CONFIG} - + # shellcheck disable=SC2086 + ${minikube} ssh "sudo sed -i 's/\(ExecStart=\/var.*\)/\1 --v=4/' /etc/systemd/system/kubelet.service.d/10-kubeadm.conf" + ${minikube} ssh "sudo systemctl daemon-reload" + ${minikube} ssh "sudo systemctl restart kubelet" + ${minikube} ssh "ps -Af |grep kubelet" # create a link so the default dataDirHostPath will work for this # environment if [[ "${VM_DRIVER}" != "none" ]] && [[ "${VM_DRIVER}" != "podman" ]]; then