2

我正在尝试在任何地方使用 eks 在 centos7 机器上创建本地集群。但是我得到了错误。如果我遗漏了什么,请告诉我?这是我创建集群的链接。我还附上了集群创建 yaml 文件

链接: https ://aws.amazon.com/blogs/aws/amazon-eks-anywhere-now-generally-available-to-create-and-manage-kubernetes-clusters-on-premises/

错误:错误:未能创建集群:错误等待外部 etcd 以使工作负载集群准备就绪:错误执行等待:错误:超时等待集群/dev-cluster 上的条件

集群创建 yaml 文件


4

1 回答 1

2

默认规范将查找外部 etcd。要在本地测试它,请删除externalEtcdConfiguration

apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: Cluster
metadata:
  name: dev-cluster
spec:
  clusterNetwork:
    cni: cilium
    pods:
      cidrBlocks:
      - 192.168.0.0/16
    services:
      cidrBlocks:
      - 10.96.0.0/12
  controlPlaneConfiguration:
    count: 1
  datacenterRef:
    kind: DockerDatacenterConfig
    name: dev-cluster
  kubernetesVersion: "1.21"
  workerNodeGroupConfigurations:
  - count: 1
---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: DockerDatacenterConfig
metadata:
  name: dev-cluster
spec: {}
---
于 2021-09-16T01:42:28.180 回答