检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
重要的节点分组方法。 比如,您可能创建了一个“tier”和“app”标签,通过Label(tier=frontend,app=myapp)来标记前端Pod容器,使用Label(tier=backend,app=myapp)标记后台Pod。然后可以使用Selectors选择带有特定
Deployment apiVersion: apps/v1 metadata: name: kafka-dey spec: replicas: 1 selector: matchLabels: app: kafka template:
field are 'Apply' and 'Update'. time String Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' 表10
是取如下两项的较大者: 所有应用容器对某个资源的 limit/request 之和。 对某个资源的有效初始的 limit/request 。 针对如下实例,计算Pod规格。 apiVersion: v1 kind: Pod metadata: name: web-app spec: initContainers:
field are 'Apply' and 'Update'. time String Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' 表7
selector={"matchLabels": {"app": app}}, template=client.V1PodTemplateSpec( metadata=client.V1ObjectMeta(labels={"app": app}),
"app": "nginx" }, "template": { "metadata": { "labels": { "app": "nginx"
Subject-Token的值)。 Content-Type 是 String 消息体的类型(格式),默认取值为“application/json” 缺省值:application/json 表4 请求Body参数 参数 是否必选 参数类型 描述 apiVersion 否 String
Subject-Token的值)。 Content-Type 是 String 消息体的类型(格式),默认取值为“application/json” 缺省值:application/json 表4 请求Body参数 参数 是否必选 参数类型 描述 apiVersion 否 String
field are 'Apply' and 'Update'. time String Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' 表7
Subject-Token的值)。 Content-Type 是 String 消息体的类型(格式),默认取值为“application/json” 缺省值:application/json 响应参数 无 请求示例 无 响应示例 无 状态码 状态码 描述 200 OK 400 BadRequest
Pod 无状态负载(Deployment) 任务(Job) 定时任务(CronJob) 查看资源使用率 容器启动命令 容器生命周期 健康检查 远程终端 升级负载 伸缩负载 客户端DNS配置
loadBalancerIP: 100.85.218.195 # DNAT使用的 EIP selector: app: nginx ports: - name: service0 targetPort: 80 # Pod 暴露的端口
apiVersion: apps/v1 kind: Deployment metadata: name: deployment-test spec: replicas: 1 selector: matchLabels: app: redis template:
Subject-Token的值)。 Content-Type 是 String 消息体的类型(格式),默认取值为“application/json” 缺省值:application/json 表4 请求Body参数 参数 是否必选 参数类型 描述 apiVersion 否 String
设置了app=nginx和env=prod两个Label。 apiVersion: v1 kind: Pod metadata: name: nginx labels: # 为Pod设置两个Label app: nginx
Patch”。 请求示例: Content-Type: application/merge-patch+json { "metadata": { "labels": { "app": "test" } } } 响应消息
Subject-Token的值)。 Content-Type 是 String 消息体的类型(格式),默认取值为“application/json” 缺省值:application/json 表4 请求Body参数 参数 是否必选 参数类型 描述 apiVersion 否 String
field are 'Apply' and 'Update'. time String Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' 表7
镜像创建两个Pod,每个Pod占用500m core CPU、1G内存。 apiVersion: apps/v1 # 注意这里与Pod的区别,Deployment是apps/v1而不是v1 kind: Deployment # 资源类型为Deployment