检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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
查询指定namespace下的PersistentVolumeClaims 创建PersistentVolumeClaim 删除PersistentVolumeClaim 查询PersistentVolumeClaim 替换PersistentVolumeClaims 父主题:
删除指定namespace下的Pods 功能介绍 删除Namespace下所有Pod。 调用方法 请参见如何调用API。 URI DELETE /api/v1/namespaces/{namespace}/pods 表1 路径参数 参数 是否必选 参数类型 描述 namespace
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
负载创建 概述 使用Docker run运行容器 使用控制台创建负载 调用API创建负载 Dockerfile参数在云容器实例中如何使用
pvc-evs namespace: namespaces-test annotations: { paas.storage.io/cryptKeyId: ee9b610c-e356-11e9-aadc-d0efc1b3bb6b } spec: accessModes:
查询指定namespace下的Services 功能介绍 查询Namespace下所有Service的详细信息。 调用方法 请参见如何调用API。 URI GET /api/v1/namespaces/{namespace}/services 表1 路径参数 参数 是否必选 参数类型
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
表8 io.k8s.api.core.v1.PersistentVolumeClaimSpec 参数 是否必选 参数类型 描述 accessModes 否 Array of strings AccessModes contains the desired access modes
l。 Namespace和Network 介绍云容器示例中Namespace与Network的概念。 Pod 介绍Pod相关概念,以及如何使用Pod。 Label 介绍Label的作用,以及如何使用Label。 无状态负载(Deployment) 介绍Deployment的使用场
使用type=LoadBalancer的负载均衡 Pod规格限制 云容器实例当前支持使用GPU,您可以根据需要选择,实例收费详情请参见产品价格详情。 当不使用GPU时,Pod规格需满足如下要求: 表1 Pod规格限制要求 Pod规格限制项 限制取值范围 Pod的CPU 0.25核-32核,或者自定义选择48核、64核。
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
表14 io.k8s.api.core.v1.PersistentVolumeClaimSpec 参数 是否必选 参数类型 描述 accessModes 否 Array of strings AccessModes contains the desired access modes
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
查询指定namespace下的resourcequotas 功能介绍 查询指定namespace下的resourcequotas(资源用量)。 调用方法 请参见如何调用API。 URI GET /api/v1/namespaces/{namespace}/resourcequotas
ds 表14 io.k8s.api.core.v1.PersistentVolumeClaimSpec 参数 参数类型 描述 accessModes Array of strings AccessModes contains the desired access modes the
获取插件模板 CCI:namespace:get 获取指定namespace CCI:namespace:update 更新namespace CCI:namespace:create 创建namespace CCI:namespace:list 列出所有namespaces CCI:namespace:delete
图2 选择Pod来源 您可以查看到所有Pod详情,包括基本信息、Pod中容器组成、Pod的监控信息、事件,以及使用远程终端访问Pod。您还可以对Pod进行删除操作,并查看Pod的日志。 图3 Pod详情 使用kubectl创建Pod 使用kubectl创建Pod请参见Pod“开发指南”。
HostPath的Pod通过bursting弹到CCI时,会被拦截。如无法改变Pod spec.volumes中配置的HostPath,可通过配置Annotation的形式,允许让使用HostPath的Pod弹性到CCI上,bursting在校验时需要去掉Pod中的HostPat
use. 说明: 使用的镜像是容器镜像服务界面上的“我的镜像”页签中的镜像时必须设置。 initContainers No containers object List of initialization containers belonging to the pod. Init containers