检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Namespace和Network Namespace(命名空间)是一种在多个用户之间划分资源的方法。适用于用户中存在多个团队或项目的情况。当前云容器实例提供“通用计算型”和“GPU型”两种类型的资源,创建命名空间时需要选择资源类型,后续创建的负载中容器就运行在此类型的集群上。
defined. port 是 Integer The port number of the endpoint. protocol 否 String The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP
"containerPort": 2222, "name": "tfjob-port" }
"containerPort": 2222, "name": "tfjob-port" }
that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. 请求示例 无 响应示例 状态码: 200 OK { "apiVersion" : "v1", "kind" :
that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. 请求示例 无 响应示例 状态码: 200 OK { "apiVersion" : "v1", "kind" :
that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. 请求示例 无 响应示例 状态码: 200 OK { "apiVersion" : "v1", "kind" :
that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. 请求示例 无 响应示例 状态码: 200 OK { "apiVersion" : "v1", "kind" :
that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. 请求示例 无 响应示例 状态码: 200 OK { "apiVersion" : "v1", "kind" :
that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. 请求示例 无 响应示例 状态码: 200 OK { "apiVersion" : "v1", "kind" :
API的调用方法请参见如何调用API。 创建流程 调用创建Namespace接口创建命名空间。 调用创建Network接口创建网络,与VPC和子网关联。 调用创建Deployment接口创建nginx容器负载。 创建Nginx负载 调用创建Namespace接口创建命名空间,并指定使用GPU型资源。
that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. 请求示例 无 响应示例 状态码: 200 OK { "apiVersion" : "v1", "kind" :
that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. 请求示例 无 响应示例 状态码: 200 OK { "apiVersion" : "v1", "kind" :
supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the
server. port Yes String Name or number of the port to access on the container. The port number must be in the range 1 to 65535. The port name must
ir、DownwardAPI、Projected、PersistentVolumeClaims几种Volume类型,其中Projected和DownwardAPI类型仅bursting 1.3.25版本及以上支持。 EmptyDir:不支持子路径。 PersistentVolumeClaims:只支持SFS、SFS
defined. port Integer The port number of the endpoint. protocol String The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. 表13
2222, "name": "tfjob-port" }
2222, "name": "tfjob-port" }
named port in a pod must have a unique name. Name for the port that can be referred to by services. hostPort Integer Number of the port to expose