基于EKS Anywhere 文档,我构建了一个集群配置 yaml。我们正在使用 vSphere 7 Enterprise Plus。
当我部署集群时,eksctl anywhere create cluster -f eksa-cluster.yaml
出现以下超时错误。该错误不属于故障排除 EKS Anywhere 文档页面的超时错误类别。
我如何找出它正在等待的 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
这是集群配置 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"