文档首页/ 云容器引擎 CCE/ API参考/ API/ 插件实例字段说明/ CCE突发弹性引擎(对接CCI)
更新时间:2024-10-31 GMT+08:00
分享

CCE突发弹性引擎(对接CCI)

插件介绍

Virtual Kubelet是基于社区Virtual Kubelet开源项目开发的插件,该插件支持用户在短时高负载场景下,将部署在CCE上的无状态负载(Deployment)、有状态负载(StatefulSet)、普通任务(Job)三种资源类型的容器实例(Pod),弹性创建到华为云云容器实例CCI服务上,以减少集群扩容带来的消耗。详情请参见virtual kubelet

字段说明

表1 参数描述

参数

是否必选

参数类型

描述

basic

表2 object

插件基础配置参数

flavor

表3 object

插件规格参数

custom

表4 object

插件自定义参数

表2 basic

参数

是否必选

参数类型

描述

available_zone

String

插件所在可用区。

如:cn-north-4a

cci_address

String

CCI的访问地址和端口。

如:https://cci.***.com:443

euleros_version

String

欧拉OS的版本,固定为:2.2.5

iam_address

String

IAM的访问地址和端口。

如:https://iam.***.com:443

swr_addr

String

SWR的访问地址。

如:swr.***.com

swr_user

String

SWR的用户名,官方插件默认为:hwofficial

rbac_enabled

String

是否支持RBAC,支持则值为:true

cluster_id

String

集群ID

cluster_name

String

集群的名称

vpc_id

String

虚拟私有云ID

network_id

String

子网ID

security_group_id

String

安全组ID

project_id

String

项目ID

region

String

所在区域。

如:cn-north-4

表3 flavor

参数

是否必选

参数类型

描述

description

String

插件相关的描述信息

name

String

插件规格名称

replicas

String

实例数,默认为:1

resources

resources object

容器资源(CPU、内存)配额。

表4 custom

参数

是否必选

参数类型

描述

isInstallProxy

String

跨服务互通。

true:支持CCE集群中的Pod与CCI集群中的Pod通过Kubernetes Service互通。

subnet_id

String

子网的IPv4子网ID

subnets

subnet object

扩展子网配置

表5 resources字段数据结构说明

参数

是否必选

参数类型

描述

limitsCpu

String

CPU大小限制,单位:m

limitsMem

String

内存大小限制,单位:Mi

name

String

插件名称

requestsCpu

String

申请的CPU大小,单位:m

requestsMem

String

申请的内存大小,单位:Mi

表6 subnet字段数据结构说明

参数

是否必选

参数类型

描述

subnetID

String

扩展子网的IPv4子网ID

请求示例

{
	"metadata": {
		"annotations": {
			"addon.install/type": "install"
		}
	},
	"spec": {
		"clusterID": "ccbe7bdf-4**9-3**b-b**4-0********78",
		"version": "1.5.15",
		"addonTemplateName": "virtual-kubelet",
		"values": {
			"basic": {
                "addon_version": "1.5.15",
				"available_zone": "cn-north-4a",
				"cci_address": "https://cci.***.com:443",
				"euleros_version": "2.2.5",
				"iam_address": "https://iam.***.com:443",
				"swr_addr": "swr.***.com",
				"swr_user": "hwofficial",
				"rbac_enabled": true,
				"cluster_id": "ccbe7bdf-4**9-3**b-b**4-0********78",
				"cluster_name": "test-vk",
				"vpc_id": "2372199f-e6e0-48be-9437-e774aae6bd70",
				"network_id": "863a5e6c-e4f5-45f8-80d9-5090f17a767b",
				"security_group_id": "ac3c1a82-f320-495a-b81d-e7aaa6b304a4",
				"project_id": "085a4*********00a9ccf7fba",
				"region": "cn-north-4"
			},
			"flavor": {
				"description": "Has only one instance",
				"name": "Single",
				"replicas": 1,
                "resources": [
                    {
                        "name": "virtual-kubelet",
                        "limitsCpu": "2000m",
                        "requestsCpu": "500m",
                        "limitsMem": "4096Mi",
                        "requestsMem": "512Mi"
                    },
                    {
                        "name": "bursting-virtual-kubelet",
                        "limitsCpu": "2000m",
                        "requestsCpu": "500m",
                        "limitsMem": "4096Mi",
                        "requestsMem": "512Mi"
                    },
                    {
                        "name": "profile-controller",
                        "limitsCpu": "1000m",
                        "requestsCpu": "250m",
                        "limitsMem": "1024Mi",
                        "requestsMem": "256Mi"
                    },
                    {
                        "name": "proxy",
                        "limitsCpu": "2000m",
                        "requestsCpu": "250m",
                        "limitsMem": "4096Mi",
                        "requestsMem": "512Mi"
                    },
                    {
                        "name": "resource-syncer",
                        "limitsCpu": "2000m",
                        "requestsCpu": "250m",
                        "limitsMem": "4096Mi",
                        "requestsMem": "512Mi"
                    },
                    {
                        "name": "bursting-resource-syncer",
                        "limitsCpu": "2000m",
                        "requestsCpu": "500m",
                        "limitsMem": "1024Mi",
                        "requestsMem": "256Mi"
                    },
                    {
                        "name": "webhook",
                        "limitsCpu": "2000m",
                        "requestsCpu": "500m",
                        "limitsMem": "1024Mi",
                        "requestsMem": "256Mi"
                    },
                    {
                        "name": "bursting-webhook",
                        "limitsCpu": "2000m",
                        "requestsCpu": "500m",
                        "limitsMem": "1024Mi",
                        "requestsMem": "256Mi"
                    }
                ]
			},
			"custom": {
				"isInstallProxy": true,
                "subnet_id": "ad821361-288b-4d1f-9309-65aa2809e4fd",
                "subnets": [
                    {
                        "subnetID": "ce374ecf-1559-41ef-8967-9de579b1296012"
                    }
                ]
			}
		}
	}
}

相关文档