mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
endpoints controller: Write pod NodeName to endpointAddress in endpoint subsets
This commit is contained in:
parent
c60ba61fe7
commit
95111c457e
@ -405,7 +405,7 @@ func (e *EndpointController) syncService(key string) {
|
||||
epp := api.EndpointPort{Name: portName, Port: int32(portNum), Protocol: portProto}
|
||||
epa := api.EndpointAddress{
|
||||
IP: pod.Status.PodIP,
|
||||
NodeName: pod.Spec.NodeName,
|
||||
NodeName: &pod.Spec.NodeName,
|
||||
TargetRef: &api.ObjectReference{
|
||||
Kind: "Pod",
|
||||
Namespace: pod.ObjectMeta.Namespace,
|
||||
|
Loading…
Reference in New Issue
Block a user