本文介绍了在任何地方使用 eks 创建集群时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to create a local cluster on a centos7 machine using eks anywhere. However I am getting below error. Please let me know if I am missing anything? Here is the link I am following to create the cluster. I have also attached the cluster create yaml file

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

错误:错误:无法创建集群:等待外部 etcd 工作负载集群准备就绪时出错:执行等待时出错:错误:等待集群/开发集群上的条件超时

Error:Error: failed to create cluster: error waiting for external etcd for workload cluster to be ready: error executing wait: error: timed out waiting for the condition on clusters/dev-cluster

集群创建 yaml 文件

推荐答案

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

The default spec will look for external etcd. To test it locally remove the 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: {}
---

这篇关于在任何地方使用 eks 创建集群时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 04:16