endpoints controller: Write pod NodeName to endpointAddress in endpoint subsets

This commit is contained in:
Girish Kalele 2016-08-13 15:43:22 -07:00
parent c60ba61fe7
commit 95111c457e

View File

@ -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,