概述

本文主要介绍在Kubernetes集群创建失败时,如何查找失败的原因,并解决问题。

 

详细信息

您可以参考以下步骤,通过查看集群的创建事件查看集群创建失败的原因,然后根据相应的失败原因解决问题。

  1. 登录ROS 管理控制台,选择集群所在的地域,单击所需的集群资源栈名称,单击 事件 ,将鼠标移动到失败事件右侧的状态描述,查看具体的失败报错信息。
    注:上图中的报错信息显示集群创建失败的原因是由于VPC达到配额。
  2. 通过上一步获取的失败报错信息,参考以下内容进行解决。
    报错信息 解决方法
    Resource CREATE failed: ResponseException: resources.k8s_SNat_Eip: Elastic IP address quota exceeded Code: QuotaExceeded.Eip 释放多余的EIP或者提交VPC产品的工单提高EIP限额。
    Resource CREATE failed: ResponseException: resources.k8s_master_slb_internet: The maximum number of SLB instances is exceeded. Code: ORDER.QUANTITY_INVALID 释放多余的SLB实例或者提交SLB产品的工单提高SLB限额。
    Resource CREATE failed: ResponseException: resources.k8s_vpc: VPC quota exceeded. Code: QuotaExceeded.Vpc 释放多余的VPC或者提交VPC产品的工单提高VPC限额。
    Status Code: 403 Code: InvalidResourceType.NotSupported Message: This resource type is not supported ECS没有库存或者选择的类型不支持,请选择其他ECS规格重试。
    Resource CREATE failed: ResponseException: resources.k8s_master_1: The specified image does not support cloud-init. Code: ImageNotSupportCloudInit 使用自定义镜像创建集群,自定义镜像必须是基于最新的CentOS镜像。
    Resource CREATE failed: ResponseException: resources.k8s_nodes: The resource is out of stock in the specified zone. Please try other types, or choose other regions and zones. Code: OperationDenied.NoStock 当前所选实例规格已售罄,请选择其他可用区或其他实例规格。
    Resource CREATE failed: ResponseException: resources.k8s_NAT_Gateway: A route entry already exists, which CIDR is '0.0.0.0/0' Code: RouterEntryConflict.Duplicated 当前VPC路由表内已存在默认路由,请移除默认路由,或取消勾选为专有网络创建SNAT后重试。
    Resource CREATE failed: ResponseException: resources.KubernetesWorkerRole: The number of role is limited to 200. Code: LimitExceeded.Role RAM角色数量已达到配额限制,请清理部分角色或提交RAM工单提高配额。
    Resource CREATE failed: ResponseException: resources.k8s_NAT_Gateway: The Account failed to create order. Code: OrderFailed 下单失败,请提交工单咨询。
    Resource CREATE failed: ResponseException: resources.k8s_master_1: This operation is forbidden by Aliyun RiskControl system. Code: Forbidden.RiskControl 您的账户出现异常,详情请提交工单咨询。
    Resource CREATE failed: ResponseException: resources.k8s_master_slb_internet: Your account does not have enough balance. Code: PAY.INSUFFICIENT_BALANCE 创建按量付费实例需要您账户余额大于100元,请先充值。
    Resource CREATE failed: ResponseException: resources.k8s_nodes: Your account does not have enough balance. Code: InvalidAccountStatus.NotEnoughBalance
    Resource CREATE failed: WaitConditionFailure: resources.k8s_node_cloudinit_wait_cond: See output value for more details. 配置集群出错,请稍后重试或提交工单咨询。
    Resource CREATE failed: WaitConditionTimeout: resources.k8s_master1_cloudinit_wait_cond: 0 of 2 received:
    Resource CREATE failed: ResponseException: resources.k8s_master_1: The request processing has failed due to some unknown error. Code: UnknownError 未知错误,请稍后重试或提交工单咨询。
    Resource CREATE failed: ResponseException: resources.k8s_nodes: The request processing has failed due to some unknown error. Code: UnknownError

 

适用于

  • 容器服务 Kubernetes 版