Skip to content

Commit

Permalink
fix port on executor
Browse files Browse the repository at this point in the history
Signed-off-by: glindsell <[email protected]>
  • Loading branch information
glindsell authored and seldondev committed Jun 23, 2020
1 parent 69162b5 commit 244e03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/controllers/seldondeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ func createPredictorService(pSvcName string, seldonId string, p *machinelearning
}

if engine_grpc_port != 0 && len(psvc.Spec.Ports) < 2 {
psvc.Spec.Ports = append(psvc.Spec.Ports, corev1.ServicePort{Protocol: corev1.ProtocolTCP, Port: int32(engine_http_port), TargetPort: intstr.FromInt(engine_http_port), Name: "grpc"})
psvc.Spec.Ports = append(psvc.Spec.Ports, corev1.ServicePort{Protocol: corev1.ProtocolTCP, Port: int32(engine_grpc_port), TargetPort: intstr.FromInt(engine_http_port), Name: "grpc"})
}
} else {
if engine_http_port != 0 && len(psvc.Spec.Ports) == 0 {
Expand Down

0 comments on commit 244e03c

Please sign in to comment.