检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the
$namespace | grep "Error syncing pod failed to" 图1 查看失败的容器的名称 查看退出容器的错误日志。 kubectl logs $podName -n $namespace -c $containerName 此种问题有如下解决方法:重新创建工作负载,并配置正确的端口,确保端口不冲突。
Init容器(Init-Containers) Init-Containers,即初始化容器,顾名思义容器启动的时候,会先启动一个或多个容器,如果有多个,那么这几个Init Container按照定义的顺序依次执行,只有所有的Init Container执行完后,主容器才会启动。由于一个Pod里的存储卷是共享的,所以Init
创建EIPPool 创建动态EIPPool 创建静态EIPPool 父主题: EIPPool
支持区域:全部 网络访问概述 内网访问 公网访问 从容器访问公网 容器存储 容器存储是为容器工作负载提供存储的组件,支持多种类型的存储,同一个工作负载(pod)可以使用任意数量的存储。 云容器实例支持将数据存储在华为云的云存储上,当前支持的云存储包括:云硬盘存储卷(EVS)、文件
管理EIPPool 更新EIPPool 考虑到用户实际场景,EIPPool对象当前只允许用户调整EIP的数量,即对EIPPool进行扩缩容。用户如果需要调整EIP其他参数,可新建EIPPool对象后在负载配置中替换即可。 EIPPool缩容时,如果EIP资源被占用,则不会删除对应的EIP,直到占用解除。
initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the
云服务资源的权限。 图1 云容器实例与其他服务的关系 容器镜像服务 容器镜像服务(Software Repository for Container,SWR)是一种支持容器镜像全生命周期管理的服务, 提供简单易用、安全可靠地镜像管理功能,帮助用户快速部署容器化服务。 您可以使用容器镜像服务中的镜像创建负载。
使用Service和Ingress管理网络访问 Service Ingress 网络访问场景 业务探针(Readiness probe)
查询APIGroupList 功能介绍 get available API versions 调用方法 请参见如何调用API。 URI GET /apis 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token。
查询APIVersions 功能介绍 get available API versions 调用方法 请参见如何调用API。 URI GET /api 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token。
initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the
使用ConfigMap和Secret提高配置灵活性 ConfigMap Secret
the network is available NetworkActive = "Active" // NetworkFailed means the network is not available NetworkFailed = "Failed" // NetworkTerminating
return code for this status, 0 if not set. details io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails object Extended data associated with the reason
挂载OBS使用限制 云容器实例通过辅助容器(SideCar Container)挂载OBS路径,并将路径共享给主容器,如图1所示。 图1 SideCar Container 限制条件 挂载OBS时有如下限制: 创建Pod时需要添加annotations字段:obssidecar-
概述 本文通过调用一系列云容器实例的API使用nginx镜像创建一个工作负载,介绍使用云容器实例API的基本流程。 其中,镜像直接使用开源镜像中心的nginx镜像,容器的资源规格为0.25核CPU、512M内存,并绑定一个负载均衡实例,通过负载均衡实例从外网访问容器负载。 API的调用方法请参见如何调用API。
"watch" ] }, { "kind" : "PersistentVolumeClaim", "name" : "persistentvolumeclaims", "namespaced" : true, "shortNames" : [
查询所有extensions/v1beta1的API 功能介绍 get available resources 调用方法 请参见如何调用API。 URI GET /apis/extensions/v1beta1 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述
查询所有batch/v1的API 功能介绍 get available resources 调用方法 请参见如何调用API。 URI GET /apis/batch/v1 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String