基于EKS Anywhere文档,我构建了一个集群配置yaml。我们正在使用vSphere 7 Enterprise Plus。
当我使用eksctl anywhere create cluster -f eksa-cluster.yaml
部署集群时我得到下面的超时错误。该错误不属于疑难解答EKS Anywhere文档页面的超时错误类别。
我将如何了解它正在等待的部署/ecdadm控制器控制器管理器的情况?
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
这是集群配置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"
您检查了在管理机器上创建的种类集群吗?
kubectl获取机器-
如果您看到机器处于资源调配状态,现在请检查裸机上的部署状态。检查正在运行的容器数量以及每个容器的日志。