[root@ip-10-0-3-101 ~]# eksctl create cluster -f eks.yaml
Error: loading config file “eks.yaml”: error converting YAML to JSON: yaml: unmarshal errors:
line 11: key “ap-southeast-1” already set in map
配置文件:cat eks.yaml
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: hua-cluster
region: ap-southeast-1
version: “1.21”
vpc:
subnets:
public:
ap-southeast-1: { id: subnet-07895e0bc3854a196 }
ap-southeast-1: { id: subnet-0be1e7aeacc072302 }
managedNodeGroups:
- name: NG1
labels: { role: ng1 }
instanceType: t2.medium
minSize: 1
maxSize: 2
desiredCapacity: 1
#privateNetworking: true
volumeSize: 50
ssh:
publicKeyName: ‘prod-pay2021’
报错原因:子网前面的区域没有分a、b、c