Add NodeName to EndpointAddress object

This commit is contained in:
Girish Kalele
2016-08-11 16:37:07 -07:00
parent ceb75699dd
commit c60ba61fe7
3 changed files with 6 additions and 1 deletions

View File

@@ -404,7 +404,8 @@ func (e *EndpointController) syncService(key string) {
epp := api.EndpointPort{Name: portName, Port: int32(portNum), Protocol: portProto}
epa := api.EndpointAddress{
IP: pod.Status.PodIP,
IP: pod.Status.PodIP,
NodeName: pod.Spec.NodeName,
TargetRef: &api.ObjectReference{
Kind: "Pod",
Namespace: pod.ObjectMeta.Namespace,