diff --git a/app/components/createService/createServiceController.js b/app/components/createService/createServiceController.js index 007df409c..95a1c22cc 100644 --- a/app/components/createService/createServiceController.js +++ b/app/components/createService/createServiceController.js @@ -29,7 +29,7 @@ function ($scope, $state, Service, ServiceHelper, Volume, Network, ImageHelper, }; $scope.addPortBinding = function() { - $scope.formValues.Ports.push({ PublishedPort: '', TargetPort: '', Protocol: 'tcp' }); + $scope.formValues.Ports.push({ PublishedPort: '', TargetPort: '', Protocol: 'tcp', PublishMode: 'ingress' }); }; $scope.removePortBinding = function(index) { @@ -96,7 +96,8 @@ function ($scope, $state, Service, ServiceHelper, Volume, Network, ImageHelper, var ports = []; input.Ports.forEach(function (binding) { var port = { - Protocol: binding.Protocol + Protocol: binding.Protocol, + PublishMode: binding.PublishMode }; if (binding.TargetPort) { port.TargetPort = +binding.TargetPort; diff --git a/app/components/createService/createservice.html b/app/components/createService/createservice.html index cb5e3a431..941804e9e 100644 --- a/app/components/createService/createservice.html +++ b/app/components/createService/createservice.html @@ -74,7 +74,7 @@
-
+
host
@@ -83,17 +83,21 @@ -
+
container
-
+
+
+ + +
diff --git a/app/components/service/includes/ports.html b/app/components/service/includes/ports.html index d63593d06..7367bfbb7 100644 --- a/app/components/service/includes/ports.html +++ b/app/components/service/includes/ports.html @@ -17,6 +17,7 @@ Host port Container port Protocol + Publish mode Actions @@ -42,6 +43,14 @@
+ +
+ +
+