mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Fix grpc probe log
This commit is contained in:
parent
1d2e804287
commit
101bfb5522
@ -170,10 +170,13 @@ func (pb *prober) runProbe(probeType probeType, p *v1.Probe, pod *v1.Pod, status
|
||||
}
|
||||
|
||||
if utilfeature.DefaultFeatureGate.Enabled(kubefeatures.GRPCContainerProbe) && p.GRPC != nil {
|
||||
host := &(status.PodIP)
|
||||
service := p.GRPC.Service
|
||||
host := status.PodIP
|
||||
service := ""
|
||||
if p.GRPC.Service != nil {
|
||||
service = *p.GRPC.Service
|
||||
}
|
||||
klog.V(4).InfoS("GRPC-Probe", "host", host, "service", service, "port", p.GRPC.Port, "timeout", timeout)
|
||||
return pb.grpc.Probe(*host, *service, int(p.GRPC.Port), timeout)
|
||||
return pb.grpc.Probe(host, service, int(p.GRPC.Port), timeout)
|
||||
}
|
||||
|
||||
klog.InfoS("Failed to find probe builder for container", "containerName", container.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user