检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
64:80,192.168.198.10:80 14m 这里的192.168.113.81:80是Pod的IP:Port,通过如下命令可以查看到Pod的IP,与上面的IP一致。 # kubectl get pods -o wide -n $namespace_name NAME
使用kubernetes官方Java SDK访问CCI 本节将介绍如何将CCI认证工具cci-iam-authenticator与kubernetes-client/java结合使用以调用API。 安装cci-iam-authenticator 请参考使用kubectl,下载安装
使用client-go访问CCI 本节将介绍如何将CCI认证工具cci-iam-authenticator与client-go结合使用以调用API。 安装cci-iam-authenticator 请参考使用kubectl,下载安装及设置cci-iam-authenticator。
参数类型 描述 clientIP No ClientIPConfig object clientIP contains the configurations of Client IP based session affinity. 表108 ClientIPConfig字段数据结构说明
"python", "/opt/tf-benchmarks/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py",
值,从而做到灵活的配置,而不是每次都重新编写应用程序制作镜像。 手动输入只需要直接输入变量名称和变量值。 变量引用支持引用PodIP(Pod的IP地址)、PodName(Pod的名称)以及Secret,输入变量名称,选择引用类型、引用值。其中Secret引用的创建请参见使用Secret。
io.k8s.api.core.v1.PodIP 参数 参数类型 描述 ip String ip is an IP address (IPv4 or IPv6) assigned to the pod 请求示例 将已创建Pod的镜像替换为"redis:latest"。 { "apiVersion"
"python", "/opt/tf-benchmarks/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py",
yet running. 表107 io.k8s.api.core.v1.PodIP 参数 是否必选 参数类型 描述 ip 否 String ip is an IP address (IPv4 or IPv6) assigned to the pod 响应参数 状态码: 200 表108
支持CCI侧负载通过service发布。 支持CCE集群pod与CCI集群中pod通过service互通。 支持指定cluster-dns。 支持pod绑定全域弹性公网ip。 网络 日志 用户可以通过同时安装CCE Log Collector插件和bursting插件,采集CCI侧工作负载的日志。 支持弹性CCI的负载通过CCE
not yet running. 表108 io.k8s.api.core.v1.PodIP 参数 参数类型 描述 ip String ip is an IP address (IPv4 or IPv6) assigned to the pod 请求示例 将Pod的labels值更新为pod-test2。
'OutOfDisk' hostIP No String IP address of the host to which the pod is assigned. Empty if not yet scheduled. podIP No String IP address allocated
'OutOfDisk' hostIP String IP address of the host to which the pod is assigned. Empty if not yet scheduled. podIP String IP address allocated
set -o nounset set -o pipefail SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s
调度负载到CCI 简介 对于使用CCE集群和CCI的使用场景,用户可以按需将工作负载调度到CCE集群节点或者对接CCI的虚拟节点,本文详细介绍如何将CCE集群的工作负载调度到CCI上。 bursting插件当前提供两种方式管理CCE集群的pod,使其能够调度到CCI: 方式一:通过配置labels控制pod调度到CCI
sting插件会根据用户提供的CPU、内存规格,对pod的资源规格做出规整,以达到合理利用资源并满足CCI资源规格的目的。本章节将详细介绍如何进行资源规格的规整。 约束与限制 弹性到CCI的pod需要至少有一个容器有CPU的limit或者request限制。 本节的资源规整算法仅适用于云原生bursting,CCI
参数类型 描述 hostnames Array of strings Hostnames for the above IP address. ip String IP address of the host file entry. 表25 io.k8s.api.core.v1.LocalObjectReference
参数类型 描述 hostnames 否 Array of strings Hostnames for the above IP address. ip 否 String IP address of the host file entry. 表24 io.k8s.api.core.v1.LocalObjectReference
"python", "/opt/tf-benchmarks/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py",
Label 为什么需要Label 当资源变得非常多的时候,如何分类管理就非常重要了,Kubernetes提供了一种机制来为资源分类,那就是Label(标签)。Label非常简单,但是却很强大,Kubernetes中几乎所有资源都可以用Label来组织。 Label的具体形式是ke