Service Fabric 应用程序和服务清单示例Service Fabric application and service manifest examples

本部分包含应用程序和服务清单的示例。This section contains examples of application and service manifests. 这些示例并非用来展示重要方案,而是用来展示可用的各种设置以及如何使用它们。These examples are not meant to show important scenarios, but to show the different settings that are available and how to use them.

下面是所显示的功能以及它们所属的示例清单的索引。The following is an index of the features shown and the example manifest(s) they're a part of.

FeatureFeature 清单Manifest
资源调控Resource governance Reliable Services 应用程序清单容器应用程序清单Reliable Services Application manifest, Container Application manifest
以本地管理帐户身份运行服务Run a service as a local admin account Reliable Services 应用程序清单Reliable Services Application manifest
将默认策略应用于所有服务代码包Apply a default policy to all service code packages Reliable Services 应用程序清单Reliable Services Application manifest
创建用户和组主体Create user and group principals Reliable Services 应用程序清单Reliable Services Application manifest
在服务实例之间共享数据包share a data package between service instances Reliable Services 应用程序清单Reliable Services Application manifest
替代服务终结点Override service endpoints Reliable Services 应用程序清单Reliable Services Application manifest
在服务启动时运行脚本Run a script at service startup VotingWeb 服务清单VotingWeb service manifest
定义 HTTPS 终结点Define an HTTPS endpoint VotingWeb 服务清单VotingWeb service manifest
声明配置包Declare a config package VotingData 服务清单VotingData service manifest
声明数据包Declare a data package VotingData 服务清单VotingData service manifest
替代环境变量Override environment variables 容器应用程序清单Container Application manifest
配置容器端口到主机映射Configure container port-to-host mapping 容器应用程序清单Container Application manifest
配置容器注册表身份验证Configure container registry authentication 容器应用程序清单Container Application manifest
设置隔离模式Set isolation mode 容器应用程序清单Container Application manifest
指定特定于 OS 内部版本的容器映像Specify OS build-specific container images 容器应用程序清单Container Application manifest
设置环境变量Set environment variables 容器 FrontEndService 服务清单容器 BackEndService 服务清单Container FrontEndService service manifest, Container BackEndService service manifest
配置终结点Configure an endpoint 容器 FrontEndService 服务清单容器 BackEndService 服务清单VotingData 服务清单Container FrontEndService service manifest, Container BackEndService service manifest, VotingData service manifest
将命令传递到容器pass commands to the container 容器 FrontEndService 服务清单Container FrontEndService service manifest
将证书导入到容器中Import a certificate into a container 容器 FrontEndService 服务清单Container FrontEndService service manifest
配置卷驱动程序Configure volume driver 容器 BackEndService 服务清单Container BackEndService service manifest