How To Enable Verbose Logging for Kubelet on a Node?
Problem
Environment
Procedure
# ps -ef | grep kubelet
root 26642 1 3 18:15 ? 00:00:04 /opt/pf9/pf9-kube/bin/kubelet --kubeconfig=/etc/pf9/kube.d/kubeconfigs/kubelet.yaml --enable-server --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --log-dir=/var/log/pf9/kubelet/ --logtostderr=false --config=/var/opt/pf9/kube/kubelet-config/bootstrap-config.yaml --register-schedulable=false --pod-infra-container-image=localhost:5100/pause:3.2 --dynamic-config-dir=/var/opt/pf9/kube/kubelet-config/dynamic-config --hostname-override=10.69.74.160 --v=2[root@worker1 ~]# vi /run/systemd/system/pf9-kubelet.service
[root@worker1 ~]# cat /run/systemd/system/pf9-kubelet.service | grep "v="
--kubeconfig=/etc/pf9/kube.d/kubeconfigs/kubelet.yaml --enable-server --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --log-dir=/var/log/pf9/kubelet/ --logtostderr=false --config=/var/opt/pf9/kube/kubelet-config/bootstrap-config.yaml --register-schedulable=false --pod-infra-container-image=localhost:5100/pause:3.2 --dynamic-config-dir=/var/opt/pf9/kube/kubelet-config/dynamic-config --hostname-override=10.128.146.217 --v=8[root@worker1 ~]# systemctl daemon-reload
[root@worker1 ~]# systemctl restart pf9-kubeletPreviousHow to Restore Cluster from ETCD Backup on New Master Nodes in Case of Loss of All Existing Master NNextHow-To Enable or Disable MetalLB via Sunpike API For an Already Installed Cluster
Last updated
