检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
请求示例 创建一个名为"deployment-test"的普通Deployment,使用redis镜像创建一个Pod,每个Pod占用500m core CPU、1024Mi内存。
删除指定namespace下的Pods 功能介绍 删除Namespace下所有Pod。 调用方法 请参见如何调用API。
URI PUT /apis/apps/v1/namespaces/{namespace}/deployments/{name} 表1 路径参数 参数 是否必选 参数类型 描述 name 是 String name of the Deployment namespace 是 String
URI GET /api/v1/namespaces/{namespace}/pods/{name}/log 表1 路径参数 参数 是否必选 参数类型 描述 name 是 String name of the Pod namespace 是 String object name and
URI GET /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status 表1 路径参数 参数 是否必选 参数类型 描述 name 是 String name of the Deployment namespace
查询指定namespace下的Pods 功能介绍 查询指定namespace下的Pods的详细信息。 调用方法 请参见如何调用API。
表14 io.k8s.api.core.v1.PersistentVolumeClaimStatus 参数 参数类型 描述 accessModes Array of strings AccessModes contains the actual access modes the volume
Succeeded Integer The number of pods which reached phase Succeeded. failed Integer The number of pods which reached phase Failed. minAvailable
2021年6月 序号 功能名称 功能描述 阶段 相关文档 1 CCE弹性到CCI实例状态同步零延迟 virtual-kubelet新增对k8s v1.17版本的支持,支持对接CCE v1.17版本集群,以CCI作为CCE集群中Pod的运行资源。
More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ 表9 io.k8s.api.core.v1.NamespaceStatus 参数 参数类型 描述 conditions Array
Only use Always when creating a deployment. Default to Always.
删除指定namespace下的Networks 功能介绍 删除指定namespace下的所有Network对象。 调用方法 请参见如何调用API。
More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ 表8 io.k8s.api.core.v1.NamespaceStatus 参数 是否必选 参数类型 描述 conditions 否
Exact export maintains cluster-specific fields like 'Namespace'. Deprecated.
Only use Always when creating a deployment. Default to Always.
表15 io.k8s.api.core.v1.PersistentVolumeClaimStatus 参数 参数类型 描述 accessModes Array of strings AccessModes contains the actual access modes the volume
URI GET /api/v1/namespaces/{namespace}/pods/{name}/exec 表1 路径参数 参数 是否必选 参数类型 描述 name 是 String name of the PodExecOptions namespace 是 String object
例如,查看北京四的namespace资源。 kubectl get ns No resources found. 您可以从回显中看到北京四没有任何命名空间,在云容器实例中创建资源首先需要创建一个命名空间,具体方法请参见Namespace和Network。
容器正在使用的GPU加速卡内存量(单位:字节) container_accelerator_memory_total_bytes 总GPU加速卡可用内存量(单位:字节) container_accelerator_duty_cycle GPU加速卡实际运行时间百分比 监控指标数总计
Only use Always when creating a deployment. Default to Always.