Skip to content

Commit

Permalink
Merge pull request kubernetes#100573 from pacoxu/upgrade-corefile-mig…
Browse files Browse the repository at this point in the history
…ration

Update the kubelet log pod status to level 6 as it is so big
  • Loading branch information
k8s-ci-robot authored Mar 26, 2021
2 parents 30a261d + 54606db commit 9c9af69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/kubelet/pleg/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ func (g *GenericPLEG) updateCache(pod *kubecontainer.Pod, pid types.UID) error {
// GetPodStatus(pod *kubecontainer.Pod) so that Docker can avoid listing
// all containers again.
status, err := g.runtime.GetPodStatus(pod.ID, pod.Name, pod.Namespace)
klog.V(4).ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name), "podStatus", status)
if klog.V(6).Enabled() {
klog.V(6).ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name), "podStatus", status)
} else {
klog.V(4).ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name))
}
if err == nil {
// Preserve the pod IP across cache updates if the new IP is empty.
// When a pod is torn down, kubelet may race with PLEG and retrieve
Expand Down

0 comments on commit 9c9af69

Please sign in to comment.