diff --git a/controller/replica_controller.go b/controller/replica_controller.go index 6996faf314..6876d3c6d2 100644 --- a/controller/replica_controller.go +++ b/controller/replica_controller.go @@ -376,18 +376,13 @@ func (rc *ReplicaController) CreateInstance(obj interface{}) (*longhorn.Instance return nil, err } - exposeRequired := true - if v.Spec.NodeID == rc.controllerID { - exposeRequired = false - } - return c.ReplicaInstanceCreate(&engineapi.ReplicaInstanceCreateRequest{ Replica: r, DiskName: diskName, DataPath: dataPath, BackingImagePath: backingImagePath, DataLocality: v.Spec.DataLocality, - ExposeRequired: exposeRequired, + ExposeRequired: true, ImIP: im.Status.IP, EngineCLIAPIVersion: cliAPIVersion, })