我正在关注https://github.com/kubernetes/kops/blob/master/docs/aws.md中的教程
安装了Amazon Linux的引导EC2实例。

在我需要开始配置集群之前,一切似乎都工作正常。

运行kops命令为集群创建配置时出现此错误。我找不到有关如何解决此问题的任何文章。

有什么帮助吗?

[ec2-user@ip-172-31-19-231 ~]$ kops create cluster --zones us-west-2a,us-west-2b,us-west-2c,us-west-2d ${NAME}

I0224 22:43:29.639232    3292 create_cluster.go:496] Inferred --cloud=aws from zone "us-west-2a"

I0224 22:43:29.699503    3292 subnets.go:184] Assigned CIDR 172.20.32.0/19 to subnet us-west-2a

I0224 22:43:29.699582    3292 subnets.go:184] Assigned CIDR 172.20.64.0/19 to subnet us-west-2b

I0224 22:43:29.699632    3292 subnets.go:184] Assigned CIDR 172.20.96.0/19 to subnet us-west-2c

I0224 22:43:29.699677    3292 subnets.go:184] Assigned CIDR 172.20.128.0/19 to subnet us-west-2d



error assigning default machine type for nodes: error finding default machine type: could not find a suitable supported instance type for the instance group "nodes" (type "Node") in region "us-west-2"

最佳答案

该错误表明您尚未为充当主节点和工作节点的EC2节点指定实例类型。

以下是示例命令:

  kops create cluster --name=my-cluster.k8s.local \
  --state=s3://kops-state-1234 --zones=eu-west-1a \
  --node-count=2 --node-size=t2.micro --master-size=t2.micro

关于amazon-web-services - Kops Create Cluster因AWS Linux中的八卦而失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/54857385/

10-11 07:44