检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
kubectl logs $podName -n $namespace -c $containerName 根据日志提示修复工作负载本身的问题。 图3 容器启动命令配置不正确 此种问题的解决方案是:重新创建工作负载,并配置正确的启动命令。 排查项三:工作负载配置的健康检查执行失败 工作负载
该配置是检查用户业务是否就绪,不就绪则不转发流量到当前实例。 单击展开“生命周期”,配置容器的“停止前处理”,保证容器在退出过程中能够对外提供服务。 图3 配置生命周期 该配置是保证业务容器在退出过程中能够对外提供服务。 单击“下一步:访问设置”,如图4。 图4 配置访问类型及端口 单击“下一步”完成工作负载的创建。
为“ABCDEFG....”,则调用接口时将“X-Auth-Token: ABCDEFG....”加到请求消息头即可,如下所示。 1 2 3 POST https://iam.ap-southeast-1.myhuaweicloud.com/v3.0/OS-USER/users Content-Type:
} }, "startTime": "2019-07-23T12:38:58Z" } } 状态码 表3 状态码 状态码 描述 200 OK 401 Unauthorized 404 Not found 500 Internal error 403
} }, "startTime": "2019-07-24T08:42:33Z" } } 状态码 表3 状态码 状态码 描述 200 OK 401 Unauthorized 404 Not found 500 Internal error 403
} } } }, "status": { } } 状态码 表3 状态码 状态码 描述 200 OK 201 Created 202 Accepted 401 Unauthorized 400 Badrequest
unset pretty 否 String If 'true', then the output is pretty printed. 请求参数 表3 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token。 通过调用IAM服务获取
参照无状态负载(Deployment)或创建任务,在添加容器后,展开“高级设置 > 存储”,选择“极速文件存储卷”,单击“添加极速文件存储卷”。 图3 添加极速文件存储卷 创建极速文件存储过程中需要创建单独的虚拟机,耗时较长。因此当前仅支持使用已有的极速文件存储卷。 挂载子路径为极速文件存
ces/test-api/deployments/nginx/scale", "uid" : "3bd1306c-ac3e-41c2-81ab-14c79fa006d3" }, "spec" : { "replicas" : 2 }, "status"
+optional Status NetworkStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // NetworkSpec describes the attributes on a network
做好转储。 图2 使用日志存储 查看日志 负载创建完成后,您可以查看容器日志。 单击已创建的负载,在容器实例所在行,单击“查看日志”。 图3 查看日志 在AOM界面中即可查看对应容器的日志,AOM中日志查询方法请参见查看日志文件。 父主题: 通过CCI控制台和API使用CCI
GroupVersionForDiscovery objects versions are the versions supported in this group. 表3 io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery 参数 参数类型
GroupVersionForDiscovery objects versions are the versions supported in this group. 表3 io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery 参数 参数类型
resources contains the name of the resources and if they are namespaced. 表3 io.k8s.apimachinery.pkg.apis.meta.v1.APIResource 参数 参数类型 描述 categories
resources contains the name of the resources and if they are namespaced. 表3 io.k8s.apimachinery.pkg.apis.meta.v1.APIResource 参数 参数类型 描述 categories
GroupVersionForDiscovery objects versions are the versions supported in this group. 表3 io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery 参数 参数类型
GroupVersionForDiscovery objects versions are the versions supported in this group. 表3 io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery 参数 参数类型
GroupVersionForDiscovery objects versions are the versions supported in this group. 表3 io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery 参数 参数类型
resources contains the name of the resources and if they are namespaced. 表3 io.k8s.apimachinery.pkg.apis.meta.v1.APIResource 参数 参数类型 描述 categories
GroupVersionForDiscovery objects versions are the versions supported in this group. 表3 io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery 参数 参数类型