当前位置:网站首页>终极套娃 2.0 | 云原生交付的封装
终极套娃 2.0 | 云原生交付的封装
2022-07-25 15:52:00 【InfoQ】
封装是为了减少“失误”
何为制品
- 将代码编译成应用安装包
- 在客户要求的环境中安装应用
- 制品是对 docker 镜像的进一步抽象,类似 docker-compose.yml,涵盖了多个镜像(服务)的总体描述,以及互相之间的依赖关系
- 制品是对应用交付环境的声明(结构化、可被系统识别的软件安装部署说明书),不仅声明每个镜像服务的资源限制,也能够声明所需要的中间件(比如 mysql)




dice.ymlversion: "2.0"
envs:
ETCDCTL_API: "3"
services:
cluster-agent:
cmd: /app/cluster-agent
deployments:
replicas: 1
envs:
DEBUG: "false"
resources:
cpu: ${request_cpu:1}
max_cpu: 1
max_mem: 1024
mem: ${request_mem:1024}
addons:
mysql:
plan: mysql:basic
dice.ymldice.yml交付制品
- 镜像列表(docker images)
dice.yml声明了各个服务(镜像列表所对应的)部署所需的资源,以及需要的中间件
dice.ymldice.ymldice.yml
最后
边栏推荐
- Wavelet transform --dwt2 and wavedec2
- Pytoch framework exercise (based on kaggle Titanic competition)
- MySQL 悲观锁
- Ice 100g network card fragment message hash problem
- 华为2023届提前批预热开始!左 神的程序代码面试指南终派上用场
- Product dynamics - Android 13 high-efficiency adaptation new upgrade
- 今天睡眠质量记录84分
- MATLAB optimization tool manopt installation
- 电阻电路的等效变化(Ⅱ)
- Endnote cannot edit range resolution
猜你喜欢

Redis分布式锁,没它真不行

Crazy God redis notes 12

Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式

「数字安全」警惕 NFT的七大骗局
![Beyond compare 4 realizes class file comparison [latest]](/img/ab/4babd7d4ee4ea132a6039858dd6451.png)
Beyond compare 4 realizes class file comparison [latest]

用GaussDB(for Redis)存画像,推荐业务轻松降本60%

Waterfall flow layout

Pytoch learning notes - Teacher Liu Er RNN advanced chapter - code comments and results

Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output

Redis distributed lock, it's really impossible without it
随机推荐
TypeError: Unrecognized value type: <class ‘str‘> ParserError: Unknown string format
报表工具的二次革命
Ice 100g network card fragment message hash problem
CircleIndicator组件,使指示器风格更加多样化
Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
华为2023届提前批预热开始!左 神的程序代码面试指南终派上用场
Beyond Compare 4 实现class文件对比【最新】
如何构建面向海量数据、高实时要求的企业级OLAP数据引擎?
Leetcode - 677 key value mapping (Design)*
Visual studio 2022 view class diagram
「数字安全」警惕 NFT的七大骗局
MySQL教程68-AS 设置别名
Waterfall flow layout
MySQL tutorial 66 data table query statement
Which led display manufacturer is better
Distributed | practice: smoothly migrate business from MYCAT to dble
行云管家V6.5.1/2/3系列版本发布:数据库OpenAPI能力持续强化
MySQL check whether the table is locked
共享锁(Shared Lock)
面试8家公司,1周拿了5个offer,分享一下自己的心得