首页 云原生应用交付平台 操作指南 线上验证 验证环境 IAAS 资源配置说明

验证环境 IAAS 资源配置说明

更新时间: 2022-05-31 17:27:39

本文介绍如何在 ADP 平台通过配置文件进行验证环境 IAAS 资源的管理。

配置文件说明

region: cn-hangzhou // 云资源所在区域,与云供应商对齐
resources: // 资源需求列表定义
  - identifier: master // 资源分组名称,同一分组内的机器资源规格是相同的
    cpu: // 机器 CPU 参数定义。注:cpu 和内存参数定义具有相关性,通常内存大小是 CPU 核数的 1,2,4 倍
      required: 4 // CPU 核数
    memory: // 机器内存参数定义。注:cpu 和内存参数定义具有相关性,通常内存大小是 CPU 核数的 1,2,4 倍
      required: 8 // 内存大小(GiB)
    instanceType: ecs.c7.xlarge // 指定机器实例规格,为空则自动根据 CPU/Memory 等配置自动选择合适的实例规格
    storage: // 机器磁盘需求定义,其中第一块盘为系统盘,其他都为数据盘
      - required: 50
      - required: 500
      - type: 'cloud_efficiency' // 云盘类型,为空则默认根据机器实例规格自动选择
        required: 50
    Image: // 指定操作系统相关信息,为空则使用系统配置默认值
      nameRegex: ^centos_7_(0)?6 // 指定操作系统镜像正则规则
      id: centos_7_6_x64_20G_alibase_20211130.vhd // 指定操作系统镜像 ID,优先级高于 nameRegex
    publicIP: // 公网 IP 配置
      bandwidth: 100 // 最大带宽(Mbps)
      required: 1 // 需要的公网 IP 数量,如果该值小于该分组的机器数量,则会按顺序分配公网 IP
    ports: // 机器需要开放的端口
      - cidrIP: 0.0.0.0/0 // 开放的目标 IP 段
        portRange: 22/22 // 开放的 IP 端口范围,格式为 "from/end"
        protocol: tcp // 传输层协议,ENUM["tcp", "udp", "icmp"]
        unallowed: false // false,代表允许通过;true,代表拒绝通过
    rootPassword: "customPassword" // 指定 root 账户登录密码,为空则自动生成随机密码
    replica: 1 // 该分组机器数量
  - identifier: worker // 最简化配置示例
    cpu:
      required: 4
    memory:
      required: 8
    storage:
      - required: 50
      - required: 500
    replica: 1
  - identifier: armnode // arm 机器配置示例
    cpu:
      required: 4
    memory:
      required: 8
    arch: arm64 // 标注机器架构为 arm64,则相应的机器实例规格以及操作系统都会自动使用 arm64 架构
    storage:
      - required: 50
      - required: 500
    replica: 1
  - identifier: gpunode // gpu 机器配置示例
    cpu:
      required: 4
    memory:
      required: 8
    instanceType: ecs.gn5i-c4g1.xlarge // 指定 GPU 实例规格,CPU/Memory 值需和该实例规格对应的机器配置对齐
    gpu: // GPU 相关配置
      driver: // GPU 驱动配置
        CUDAVersion: 10.1.168
        driverVersion: 450.80.02
        cuDNNVersion: 8.0.4
      required: 1 // GPU 数
      specType: NVIDIA P4 // GPU 规格,如 NVIDIA T4, NVIDIA P4, NVIDIA A30 等
    storage:
      - required: 50
      - required: 500
    replica: 1
instanceCIDR: 172.16.0.0/16 // 专有网络 IP 段,默认会创建一个新的专有网络

相关文档参考

阿里云地域列表:https://help.aliyun.com/document_detail/40654.html

阿里云ECS 各地域可购买实例规格列表:https://ecs-buy.aliyun.com/instanceTypes?spm=5176.ecsbuyv3.instance.5.122a3675y4CVhw#/instanceTypeByRegion

阿里云云盘类型列表:https://help.aliyun.com/document_detail/25691.html

阿里云公共镜像列表:https://help.aliyun.com/document_detail/100410.html

阿里云 GPU 实例规格族:https://help.aliyun.com/document_detail/163798.html

GPU 驱动版本选择参考:https://help.aliyun.com/document_detail/298150.html#section-hpy-73j-bvr

上一篇: 故障演练 下一篇: 产品交付
阿里云首页 云原生应用交付平台 相关技术圈