mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +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}
|
epp := api.EndpointPort{Name: portName, Port: int32(portNum), Protocol: portProto}
|
||||||
epa := api.EndpointAddress{
|
epa := api.EndpointAddress{
|
||||||
IP: pod.Status.PodIP,
|
IP: pod.Status.PodIP,
|
||||||
NodeName: pod.Spec.NodeName,
|
NodeName: &pod.Spec.NodeName,
|
||||||
TargetRef: &api.ObjectReference{
|
TargetRef: &api.ObjectReference{
|
||||||
Kind: "Pod",
|
Kind: "Pod",
|
||||||
Namespace: pod.ObjectMeta.Namespace,
|
Namespace: pod.ObjectMeta.Namespace,
|
||||||
|
Loading…
Reference in New Issue
Block a user