mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
Endpoints controller is logging too much
Pods not having an IP yet or pods that don't have a port aren't v(0) log items, since the former is usually temporary and the latter has nothing actionable for an admit.
This commit is contained in:
parent
d51e131726
commit
78ad32a538
@ -312,11 +312,11 @@ func (e *EndpointController) syncService(key string) {
|
|||||||
portProto := servicePort.Protocol
|
portProto := servicePort.Protocol
|
||||||
portNum, err := findPort(pod, servicePort)
|
portNum, err := findPort(pod, servicePort)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Failed to find port for service %s/%s: %v", service.Namespace, service.Name, err)
|
glog.V(4).Infof("Failed to find port for service %s/%s: %v", service.Namespace, service.Name, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if len(pod.Status.PodIP) == 0 {
|
if len(pod.Status.PodIP) == 0 {
|
||||||
glog.Errorf("Failed to find an IP for pod %s/%s", pod.Namespace, pod.Name)
|
glog.V(4).Infof("Failed to find an IP for pod %s/%s", pod.Namespace, pod.Name)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user