You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在GCP搭建集群时遇“failed to unmarshal install-config.yaml”错误求助

OpenShift安装配置文件解析错误修复

错误原因

你遇到的错误是因为install-config.yaml里的compute字段格式不符合要求:该字段需要是机器池数组类型(对应Go里的[]types.MachinePool),但你写成了单个机器池对象,导致配置解析失败。

修复方法

把compute节点下的内容改成数组格式——在第一个子字段前加- (短横线加空格),示例如下:

compute:
- architecture: amd64
  hyperthreading: Enabled
  name: worker
  platform:
    aws:
      zones:
      - us-east-1a
      - us-east-1b
      - us-east-1c
      rootVolume:
        iops: 4000
        size: 500
        type: io2
      type: m5.2xlarge
  replicas: 3

哪怕只需要一个计算节点池,也必须用数组包裹,这是OpenShift安装配置的强制格式要求,controlPlane字段同理。

内容的提问来源于stack exchange,提问作者TK421

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.20 07:24:26