Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
ci: enable debug log for kubelet
Browse files Browse the repository at this point in the history
Default log level for kubelet is 2, changes it to 4 will get more detail logs.
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md

Fixes: #3039

Signed-off-by: bin liu <bin@hyper.sh>
  • Loading branch information
liubin committed Nov 10, 2020
1 parent bbad31d commit 316fb1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions integration/kubernetes/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ sudo cp "/etc/kubernetes/admin.conf" "$HOME/.kube/config"
sudo chown $(id -u):$(id -g) "$HOME/.kube/config"
export KUBECONFIG="$HOME/.kube/config"

# enable debug log for kubelet
sudo sed -i 's/.$/ --v=4"/' /var/lib/kubelet/kubeadm-flags.env
echo "Kubelet options:"
sudo cat /var/lib/kubelet/kubeadm-flags.env
sudo systemctl daemon-reload && sudo systemctl restart kubelet

kubectl get nodes
kubectl get pods

Expand Down

0 comments on commit 316fb1e

Please # to comment.