http://machinename:<port in manifest>
http://<azurecluster>:<port in manifest>
但它没有加载。在集群中加载的唯一内容是Service Fabric Explorer,它显示应用程序在没有错误的情况下运行。我做错了吗?
我认为这与错误的端口有关。当我们自己通过模板添加容器时(如下图所示),这些是选项:
该服务指定清单中的容器端口:
<Resources>
<Endpoints>
<Endpoint Name="Guest1TypeEndpoint" UriScheme="http" Port="8081" Protocol="http"/>
</Endpoints>
</Resources>
应用程序指定清单中的主机端口:
<Policies>
<ContainerHostPolicies CodePackageRef="Code">
<PortBinding ContainerPort="80" EndpointRef="Guest1TypeEndpoint"/>
</ContainerHostPolicies>
</Policies>
在此示例中,容器端口8081映射到主机端口80.更多信息here。
您还需要配置Azure Load Balancer规则和探测,以将流量(在端口80上)转发到群集中。
之后,您应该看到它正常工作。