【发布时间】:2018-09-28 17:00:41
【问题描述】:
在我的 ServiceManifest 我有以下配置:
<ServiceTypes>
<!-- This is the name of your ServiceType.
This name must match the string used in RegisterServiceType call in Program.cs. -->
<StatelessServiceType ServiceTypeName="Web1Type">
<Extensions>
<Extension Name="Traefik">
<Labels xmlns="http://schemas.microsoft.com/2015/03/fabact-no-schema">
<Label Key="traefik.frontend.rule.hostname">Host: test.staal-it.nl#</Label>
<Label Key="traefik.expose">true</Label>
<Label Key="traefik.frontend.passHostHeader">true</Label>
</Labels>
</Extension>
</Extensions>
</StatelessServiceType>
</ServiceTypes>
我希望能够将 test.staal-it.nl 替换为 ApplicationParameters 文件中的参数,以便在我将此应用程序部署到另一个环境时进行更改。但是,据我所知,没有可用于扩展的覆盖 xml 元素。如何才能做到这一点。架构定义见https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-service-model-schema
【问题讨论】:
标签: azure-service-fabric traefik