简体   繁体   English

创建集群时 EKS Anywhere 超时

[英]EKS Anywhere timeout on create cluster

Based on the EKS Anywhere documentation , I built a cluster config yaml. We are using vSphere 7 Enterprise Plus.根据EKS Anywhere 文档,我构建了一个集群配置 yaml。我们使用的是 vSphere 7 Enterprise Plus。

When I deploy the cluster with eksctl anywhere create cluster -f eksa-cluster.yaml I get the timeout error below.当我在eksctl anywhere create cluster -f eksa-cluster.yaml我收到以下超时错误。 The error doesn't fall within the timeout error categories of the Troubleshooting EKS Anywhere documentation page .该错误不属于EKS Anywhere 故障排除文档页面的超时错误类别。

How would I find out the condition on deployments/etcdadm-controller-controller-manager that it is waiting on?我如何找出它正在等待的 deployments/etcdadm-controller-controller-manager 的条件?

Error: failed to create cluster: error waiting for etcdadm-controller-controller-manager in namespace etcdadm-controller-system: 

error executing wait: error: timed out waiting for the condition on deployments/etcdadm-controller-controller-manager

Here is the cluster config yaml file.这是集群配置 yaml 文件。

apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: Cluster
metadata:
   name: dev-eks-anywhere-cluster
spec:
   clusterNetwork:                                                                                                                                                                                                                           
      cni: "cilium"                                                                                                                                                                                                                          
      pods:                                                                                                                                                                                                                                  
         cidrBlocks:                                                                                                                                                                                                                         
            - 192.168.0.0/16                                                                                                                                                                                          
      services:                                                                                                                                                                                                                              
         cidrBlocks:                                                                                                                                                                                                                         
            - 10.96.0.0/12                                                                                                                                                                                              
   controlPlaneConfiguration:                                                                                                                                                                                                                
      count: 3 ## see if enough resources are available                                                                                                                                                                                      
      endpoint:                                                                                                                                                                                                                              
         host: "10.91.45.2"                                                                                                                                                                                                                  
      machineGroupRef:                                                                                                                                                                                                                       
        kind: VSphereMachineConfig                                                                                                                                                                                                           
        name: dev-eks-anywhere-cluster-controller-nodes                                                                                                                                                                                      
   datacenterRef:                                                                                                                                                                                                                            
      kind: VSphereDatacenterConfig                                                                                                                                                                                                          
      name: dev-eks-anywhere-cluster-datacenter                                                                                                                                                                                              
   externalEtcdConfiguration:                                                                                                                                                                                                                
     count: 3                                                                                                                                                                                                                                
     machineGroupRef:                                                                                                                                                                                                                        
        kind: VSphereMachineConfig                                                                                                                                                                                                           
        name: dev-eks-anywhere-cluster-etcd-nodes                                                                                                                                                                                            
   kubernetesVersion: "1.21"                                                                                                                                                                                                                 
   workerNodeGroupConfigurations:                                                                                                                                                                                                            
   - count: 3                                                                                                                                                                                                                                
     machineGroupRef:                                                                                                                                                                                                                        
       kind: VSphereMachineConfig                                                                                                                                                                                                            
       name: dev-eks-anywhere-cluster-worker-nodes                                                                                                                                                                                           

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: VSphereDatacenterConfig
metadata:
   name: dev-eks-anywhere-cluster-datacenter
spec:
  datacenter: "REDACTED"
  server: "REDACTED
  network: "K8S_DEV_NET"
  insecure: true
  thumbprint: ""

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: VSphereMachineConfig
metadata:
   name: dev-eks-anywhere-cluster-controller-nodes
spec:
  diskGiB: 30
  datastore: "REDACTED"
  folder: ""
  numCPUs: 4
  memoryMiB: 8192
  osFamily: "ubuntu"
  resourcePool: "*/Resources"
  storagePolicyName: ""
  template: "ubuntu-v1.21.2-eks-d-1-21-5-eks-a-2-amd64"
  users:
  - name: "REDACTED"
    sshAuthorizedKeys:
    - "REDACTED"

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: VSphereMachineConfig
metadata:
   name: dev-eks-anywhere-cluster-worker-nodes
spec:
  diskGiB: 30
  datastore: "REDACTED"
  folder: ""
  numCPUs: 4
  memoryMiB: 8192
  osFamily: "ubuntu"
  resourcePool: "*/Resources"
  storagePolicyName: ""
  template: "ubuntu-v1.21.2-eks-d-1-21-5-eks-a-2-amd64"
  users:
  - name: "REDACTED"
    sshAuthorizedKeys:
    - "REDACTED"

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: VSphereMachineConfig
metadata:
   name: dev-eks-anywhere-cluster-etcd-nodes
spec:
  diskGiB: 30
  datastore: "REDACTED"
  folder: ""
  numCPUs: 4
  memoryMiB: 8192
  osFamily: "ubuntu"
  resourcePool: "*/Resources"
  storagePolicyName: ""
  template: "ubuntu-v1.21.2-eks-d-1-21-5-eks-a-2-amd64"
  users:
  - name: "REDACTED"
    sshAuthorizedKeys:
    - "REDACTED"

Did you check the kind cluster created on your admin machine?您是否检查了在您的管理机器上创建的种类集群? If cluster there check if etcd container logs.如果那里有集群,请检查 etcd 容器是否记录日志。 Hope that will give some clue to troubleshoot further.希望这会提供一些线索以进一步排除故障。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM