Kubernetes中,运行容器的最小资源单位是Pod,一个Pod封装一个或多个容器、存储资源、一个独立的网络IP等。实际使用中很少直接创建Pod,而是使用Kubernetes中称为Controller的抽象层来管理Pod实例,例如Deployment和StatefulSet。另外在Kub
rules for the pod. podAffinity io.k8s.api.core.v1.PodAffinity object Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
rules for the pod. podAffinity io.k8s.api.core.v1.PodAffinity object Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
工作负载优先调度到CCE集群,集群资源不足时工作负载弹性到CCI。 不开启(off) 工作负载不会弹性到CCI。 方式一:通过配置labels控制pod调度到CCI 通过CCE集群控制台(console)创建pod调度到CCI。通过CCE集群创建工作负载时,选择CCI弹性承载策略配置,选择“不开启”以外的任意策略。
rules for the pod. podAffinity io.k8s.api.core.v1.PodAffinity object Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and
IP,简称EIP)前,请先了解EIP的使用限制。 配置公网访问-创建工作负载时设置 在云容器实例中,您只需要在创建负载时选择“公网访问”,然后配置如下参数。 服务名称:服务名称即Service的名称,Service是用于管理Pod访问的对象。Service的详细信息请参见Service。 安装coredns:c
of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and
用户镜像上传SWR。使用方式请参考:SWR官方文档。 在华为云CCE控制台创建负载选择镜像。 对接到SWR中的镜像。请确保您的SWR仓库中已正确上传了镜像,SWR服务使用详情请参见:SWR官方文档。 方式二:通过在CCE集群node选取SWR镜像 登录CCE集群节点。 查看SWR镜像仓库中的镜像地址。
rules for the pod. podAffinity io.k8s.api.core.v1.PodAffinity object Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
弹性到CCI 2.0 暂不支持配置日志采集。 操作步骤 安装“云原生日志采集插件”和“CCE 突发弹性引擎 (对接 CCI)”插件。 登录CCE控制台。 选择CCE集群,单击进入CCE集群总览页面。 在导航栏左侧单击“插件中心”,进入插件中心首页。 选择“CCE 突发弹性引擎 (对接 CCI)”插件,单击“安装”。
实例配置 实例配置规范 实例资源配额 父主题: CCE突发弹性引擎(对接CCI)
probe) 一个新Pod创建后,Service就能立即选择到它,并会把请求转发给Pod,那问题就来了,通常一个Pod启动是需要时间的,如果Pod还没准备好(可能需要时间来加载配置或数据,或者可能需要执行 一个预热程序之类),这时把请求转给Pod的话,Pod也无法处理,造成请求失败。
cci.io/pod-size-specs”的注解。 本节的资源规整算法仅适用于云原生bursting,CCI 2.0的console和API有独立的Pod规格规整算法。弹至CCI 2.0的pod也需遵循CCI 2.0的规格约束,如果未命中CCI 2.0支持的规格,会在CCE侧的pod
Annotation 功能 约束 logpath.k8s.io/$containerName 通过Pod容器环境变量配置采集文件 $containerName为容器名变量。 支持配置多条路径,每个路径配置都要是以“/”开头的绝对路径,各路径配置以“;”分隔。 只支持完整日志文件路径或者使
实例配置规范 通过阅读本章节您可以了解到容器实例(Pod)配置规范的相关内容。 约束与限制 暂不支持守护进程集(DaemonSet)。 暂不支持HostNetwork网络模式。 暂不支持通过配置TCP启动探针进行健康检查。 暂不支持动态资源分配(Dynamic Resource Allocation)特性,并在插件1
CCI FullAccess CCI ReadOnlyAccess CCI CommonOperations 创建无状态负载 √ x √ 删除无状态负载 √ x √ 查看无状态负载 √ √ √ 升级负载 √ x √ 伸缩负载 √ x √ 删除Pod √ x √ 查看Pod √ √ √ 创建任务
rules for the pod. podAffinity io.k8s.api.core.v1.PodAffinity object Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
rules for the pod. podAffinity io.k8s.api.core.v1.PodAffinity object Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and
您即将访问非华为云网站,请注意账号财产安全