检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
}/extended-persistentvolumeclaims 表1 Path参数 参数 参数类型 描述 namespace String 命名空间。 请求消息 请求参数 表2 PersistentVolumeClaim v1 数据结构说明 参数 是否必选 参数类型 描述 apiVersion
/persistentvolumeclaims/{name} 表1 Path参数 参数 是否必选 参数类型 描述 namespace Yes String 命名空间。 name Yes String persistentvolumeclaims名称 表2 Query参数 参数 是否必选
针对如下实例,计算Pod规格。 apiVersion: v1 kind: Pod metadata: name: web-app spec: initContainers: - name: config-generator image: busybox resources:
PersistentVolumeClaim Object 详情请参见表175。 PersistentVolume Object 详情请参见表184。 StorageInfo Object 详情请参见表199。 响应示例 [ { "persistentVolumeClaim": {
直接通过“nginx:8080”就可以访问到Service,进而访问后台Pod。 使用ServiceName的方式有个主要的优点就是可以在开发应用程序时可以将ServiceName写在程序中,这样无需感知具体Service的IP地址。 CoreDNS插件占用计算资源,共2个Pod,每个Pod占用0
- server: serverB.com username: userB password: pwdB plainHTTP: true - server: serverC.com username: userC password:
io/image-snapshot-auto-match: "true" spec: containers: - image: redis name: container-0 resources: limits:
kind: Pod metadata: name: nginx spec: containers: - image: nginx:latest name: container-0 resources: limits: cpu:
io/default-security-group: security-group-id network.alpha.kubernetes.io/domain-id: domain-id network.alpha.kubernetes.io/project-id: project-id name:
--cci-endpoint=https://$endpoint --domain-name=xxxxxxx --user-name=xxxxxx --password='xxxxxx' 其中,endpoint为云容器实例的Endpoint,domain-name为租户名,user-name为子用户名,
kubelet, node2 Killing container with id docker://container-0:Container failed liveness probe.. Container will be killed and recreated.
通过在init container中可检查EIP是否已经分配成功。容器网络控制器会在Pod IP分配后,为Pod绑定EIP并返回分配结果至Pod的Annotation(yangtse.io/allocated-ipv4-eip),通过Pod配置init container并使用downwardAPI,把yangtse
云容器实例-成长地图 | 华为云 云容器实例 云容器实例(Cloud Container Instance, CCI)服务提供 Serverless Container(无服务器容器)引擎,让您无需创建和管理服务器集群即可直接运行容器。 产品介绍 图说ECS 立即使用 立即使用 成长地图
template: spec: restartPolicy: OnFailure containers: - name: main image: pi cron的格式从前到后就是: Minute
EIP EIP概述 为Pod动态创建EIP 为Pod绑定已有EIP
使用kubectl(推荐) kubectl配置指南 cci-iam-authenticator使用参考
Pod Pod 环境变量 启动命令 对容器进行初始化操作 Pod规格计算方式 生命周期管理 存活探针(liveness probe)
镜像快照 创建镜像快照 使用镜像快照 管理镜像快照
通过在init container中可检查EIP是否已经分配成功。容器网络控制器会在Pod IP分配后,为Pod绑定EIP并返回分配结果至Pod的Annotation(yangtse.io/allocated-ipv4-eip),通过Pod配置init container并使用downwardAPI,把yangtse
维护人员管理和维护,进而专注于应用开发,提升应用开发效率、节约企业IT成本。传统上使用 Kubernetes 运行容器,首先需要创建运行容器的 Kubernetes 服务器集群,然后再创建容器负载。云容器实例的 Serverless Container 就是从使用角度,无需创建、管理