Allow dynamic ports for logserver-container in hosted Vespa
@@ -21,6 +21,7 @@ public class LogserverContainer extends Container {
public LogserverContainer(AbstractConfigProducer<?> parent, DeployState deployState) {
super(parent, "" + 0, 0, deployState);
+ if (deployState.isHosted()) useDynamicPorts();
LogserverContainerCluster cluster = (LogserverContainerCluster) parent;
addComponent(new AccessLogComponent(
cluster, AccessLogType.jsonAccessLog, CompressionType.GZIP, Optional.of(cluster.getName()), true));
