简体   繁体   中英

Multiple config file from Config Server in PCF

Config server supports reading yml files with the name {applicationname.yml} . But I have two yml files in my application.

a.yml
b.yml

Can I read both these yml files from config server using gitlab in PCF? I am using .net core 2.2 and steeltoe. Thanks in Advance

Steeltoe largely relies on Config Server's logic for finding the backing files by specifying the app name, environment name and additional labels. There isn't currently a way to request additional arbitrary files, so you'd be limited to files following these patterns:

/{application}/{profile}[/{label}]
/{application}-{profile}.yml
/{label}/{application}-{profile}.yml
/{application}-{profile}.properties
/{label}/{application}-{profile}.properties

It's notable that application in this pattern represents both your application name and a generic application file for shared settings across multiple applications

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM