增加ACS Pod临时存储空间大小

更新时间:
复制为 MD 格式

ACS Pod默认提供30 GiB的免费的临时存储空间(EphemeralStorage),如果该存储空间大小无法满足需求,可以手动增加临时存储空间大小。

计费说明

临时存储空间(EphemeralStorage)如果超出了30 GiB,超出的部分按照云盘价格收取费用。

费用 = 云盘单价 * 增加的临时存储空间容量 * 使用时长。

  • 云盘单价:按照ESSD PL1类型的云盘按量价格进行计费。不同地域下云盘单价不同,具体请参见块存储价格页

  • 增加的临时存储空间容量:自行声明增加的容量,即超出了30 GiB的容量大小。

  • 使用时长:按秒计算。临时存储空间随ACS Pod一起创建和释放,使用时长与Pod运行时长一致。

配置示例

下方示例中为ACS Pod增加20 GiB临时存储空间,总临时存储空间 = 默认30 GiB + 新增20 GiB = 50 GiB。

添加Pod Annotation

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: helloworld-- 
spec:
  entrypoint: helloworld 
  templates:
  - name: helloworld 
    metadata:
      annotations:
        alibabacloud.com/extra-ephemeral-storage: "20Gi"  # 声明要增加的临时存储空间大小
    container:
      image: mirrors-ssl.aliyuncs.com/busybox:latest
      command:
      - sh
      - -c
      args:
      - echo "Hello, world!";
        sleep 60;

设置Pod resource

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: helloworld-- 
spec:
  entrypoint: helloworld 
  templates:
  - name: helloworld 
    container:
      image: mirrors-ssl.aliyuncs.com/busybox:latest
      resources: 
        requests: 
          ephemeral-storage: 50Gi   #  声明临时存储空间大小
      command:
      - sh
      - -c
      args:
      - echo "Hello, world!";
        sleep 60;