您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker上ECS敏感数据绑定和指定缩放服务静态信息
热点10855人已围观
简介...
您可以使用 Docker 模型将机密传递给您的 ECS 服务,以将敏感数据绑定为/run/secrets. 如果您的 Compose 文件将机密声明为文件,则将在 ECS 上的应用程序部署过程中创建此类机密。如果您external: true在 Comp云计ose 文件中使用现有机密作为参考,请使用 ECS Secrets Manager 完整 ARN 作为机密名称:
services:
webapp:
image: ...
&算核nbsp; secrets:
- foo
secrets:
foo:
 心技; name: "arn:aws:secretsmanager:eu-west-3:1234:secret:foo-ABC123"
externa术Dl: true
秘密将在运行时作为纯文本文件提供给您的服务/run/secrets/foo。
AWS Secrets Manager 允许您将敏感数据存储为纯文本(如 Docker 密钥)或分层 JSON 文档。您可以将后者与 Docker Compose CLI 结oc合使用,方法是使用自定义字段x-aws-keys来定义 JSON 文档中的哪些条目要绑定为服务容器中的机密。
services:
webapp:
image: ...
&kenbsp; secrets:
- foo
secrets:
foo:
&nr教bsp; name: "arn:aws:secretsmanager:eu-west-3:1234:secret:foo-ABC123"
keys:
&n程:bsp; - "bar"
通过这样做,bar密钥的秘密将在运行时作为纯文本文件提供给您的服务/run/secrets/foo/bar。您可以使用特殊值*来获取容器中绑定的所有键。
自动缩放
可以使用正常的 Compose 语法指定缩放Do服务静态信息(非自动缩放):
services:
foo:
deploy:
replicas: 3
Cckompose 文件模型没有定义任何属性来声明自动缩放条件。因此,我们依靠x-aws-autoscaling自定义扩展来定义自动缩放范围,以及使用 cpu或内存来定义目标指标,表示为资源使用百分比。
services:
&ernbsp;foo:
deploy:
x-aws-autoscaling:
上E min: 1
max: 10 #required
cpu: 75
&CSnbsp; # mem: - mutualy exlusive with cpu
Tags:
相关文章
标签: 特斯拉 Cybercab Coinbase Optimus
热点云梦级3月31日云梦级消息,据IT之家援引 Electrek 报道,特斯拉再度流失两名高管。该车企客户体验产品负责人何塞 · 德尔 · 科拉尔今日宣布,在任职近八年后即将离职,加入加密货币平台 Coi...
【热点】
阅读更多微软中国首次推出面向医疗和生命科学的云行业套件
热点9月29日消息,微软宣布联合本土合作伙伴,微软将聚焦零售、消费电子、工业制造、汽车、医疗等行业的实际需求,打造有针对性的云行业套件。首期微软将推出面向医疗和生命科学领域的云行业套件,帮助相关领域客户量...
【热点】
阅读更多标签: 农业银行 美国银行 摩根大通 宇宙行
热点云梦级10月31日云梦级消息,农业银行市值超越美国银行,成为全球市值第二大银行,仅次于摩根大通。截至10月30日收盘,农业银行A股股价报8.06元/股,总市值达2.74万亿元人民币(约合3869亿美元...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.sebson.de/en/search?query=谷歌maps群发程序|软件【tg:seogoogle987】,rBP
- https://www.silentiumpc.com/en/search/谷歌maps群发程序|软件【tg:seogoogle987】,izX
- https://www.teacherspayteachers.com/Browse/Price-Range/Free/Search:Western International University Physics degree=谷歌maps群发程序|软件【tg:seogoogle987】,MTG
- https://www.safetv.go.kr/base/search/view?searchWord=谷歌maps群发程序|软件【tg:seogoogle987】5zF
- https://wwwcp.umes.edu/search/谷歌maps群发程序|软件【tg:seogoogle987】,QWF
- https://www.duksung.ac.kr/search/front/Search.jsp?qt=谷歌maps群发程序|软件【tg:seogoogle987】WU8
- https://zhidao.baidu.com/index/?action=QUERY&word=谷歌maps群发程序|软件【tg:seogoogle987】,Lpp
- https://www.toy-people.com/?s=谷歌maps群发程序|软件【tg:seogoogle987】,8O1
- https://www.kingston.gov.uk/site-search/results/?q=谷歌maps群发程序|软件【tg:seogoogle987】,KSP
- https://www.tycoonstory.com/?s=谷歌maps群发程序|软件【tg:seogoogle987】,2Tj
- https://www.resopal.de/catalogsearch/result/?action=SEARCH&q=谷歌maps群发程序|软件【tg:seogoogle987】,dee
- https://nicolazzi.it/en/?s=谷歌maps群发程序|软件【tg:seogoogle987】,iYB
- https://www.wuv.edu/?s=谷歌maps群发程序|软件【tg:seogoogle987】,v4f
- https://www.youthforum.org/search-results?cx=4f5236218ab5e8ef9&ie=UTF-8&q=谷歌maps群发程序|软件【tg:seogoogle987】,69o
- https://www.tmtpost.com/search?q=谷歌maps群发程序|软件【tg:seogoogle987】,FBh
- https://www.vet-direct.com/search?cat=72&term=谷歌maps群发程序|软件【tg:seogoogle987】,oUY
- https://www.whatsonstage.com/search?cat=64&term=谷歌maps群发程序|软件【tg:seogoogle987】,Pvu
- https://www.flickr.com/photos/tags/谷歌maps群发程序|软件【tg:seogoogle987】m4s
- https://www.sweat.com/collections/vendors?q=谷歌maps群发程序|软件【tg:seogoogle987】,z9j
- https://www.madebyoranges.com/nl/search/谷歌maps群发程序|软件【tg:seogoogle987】,669
- https://www.lneg.pt/en/?s=谷歌maps群发程序|软件【tg:seogoogle987】,3me
- https://www.oprny.com/search.php?search_query=谷歌maps群发程序|软件【tg:seogoogle987】,MJ9
- https://www.pixiv.net/tags/谷歌maps群发程序|软件【tg:seogoogle987】,6Ti
- https://www.laoairlines.com/?action=QUERY&s=谷歌maps群发程序|软件【tg:seogoogle987】,hwn
- https://www.remit.co.jp/en/?s=谷歌maps群发程序|软件【tg:seogoogle987】,r2w
- https://www.pmindia.gov.in/en/?s=谷歌maps群发程序|软件【tg:seogoogle987】,Pw0
- https://www.rockngem.com/?action=CHECK&s=谷歌maps群发程序|软件【tg:seogoogle987】,hGS
- https://www.samen-maier.at/search/谷歌maps群发程序|软件【tg:seogoogle987】,K62
- https://www.world-architects.com/en/search?term=谷歌maps群发程序|软件【tg:seogoogle987】,vsI
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌maps群发程序|软件【tg:seogoogle987】VAR
- https://www.mexperience.com/?T=1686132112324&s=谷歌maps群发程序|软件【tg:seogoogle987】,eA2
- https://www.stormberg.com/no/search?q=谷歌maps群发程序|软件【tg:seogoogle987】,mLN
- https://www2.ual.es/ProyectoLates/?s=谷歌maps群发程序|软件【tg:seogoogle987】,g4U
- https://www.nuovabai.it/catalogsearch/result/?action=SEARCH&q=谷歌maps群发程序|软件【tg:seogoogle987】,xgp
- https://www.mesec.cz/vyhledavani/?qs=谷歌maps群发程序|软件【tg:seogoogle987】,aqg
- https://www.vivaraise.fr/catalogsearch/result/?q=谷歌maps群发程序|软件【tg:seogoogle987】,5Bx
- https://www.remit.co.jp/vi/?s=谷歌maps群发程序|软件【tg:seogoogle987】,l8R
- https://www.wheels24.gr/?action=CHECK&s=谷歌maps群发程序|软件【tg:seogoogle987】,Dyp
- https://www.remit.co.jp/zh/?s=谷歌maps群发程序|软件【tg:seogoogle987】,K11
- https://dict.naver.com/dict.search?dicQuery&query=谷歌maps群发程序|软件【tg:seogoogle987】9AO
- https://store.line.me/search/sticker/ja?q=谷歌maps群发程序|软件【tg:seogoogle987】V9V
- https://www.jusoen.com/addreng.asp?p1=谷歌maps群发程序|软件【tg:seogoogle987】iLr
- https://www.riohondo.edu/?action=QUERY&s=谷歌maps群发程序|软件【tg:seogoogle987】,OPv
- https://www.vietnamconsulate-sf.org/?action=CHECK&s=谷歌maps群发程序|软件【tg:seogoogle987】,07V
- https://www.sdcard.org/ja/?s=谷歌maps群发程序|软件【tg:seogoogle987】,iS9
- https://www.dba.dk/soeg/?soeg=谷歌maps群发程序|软件【tg:seogoogle987】Lo0
- https://search.danawa.com/dsearch.php?query=谷歌maps群发程序|软件【tg:seogoogle987】Ssf
- https://www.target.com/s?searchTerm=谷歌maps群发程序|软件【tg:seogoogle987】,FhL
- https://www.sbaad.no/?s=谷歌maps群发程序|软件【tg:seogoogle987】,ihc
- https://www.youm7.com/Home/Search?allwords=谷歌maps群发程序|软件【tg:seogoogle987】,ALl