检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
sh all”命令,则在界面上做如下配置即可,第一行是命令行脚本名称,第二行是参数。 图1 命令行脚本 使用kubectl设置容器生命周期 使用kubectl设置容器生命周期请参见生命周期管理。 父主题: 工作负载
容器工作负载类 为什么业务运行性能不达预期? 如何设置实例(Pod)数? 如何查看资源配额? 如何设置应用的探针? 弹性伸缩策略如何配置? 使用sample镜像创建工作负载无法运行 调用接口删除Deployment后怎么还能查看到Pod? 为什么exec进入容器后执行GPU相关的操作报错?
label may cause this and other jobs to not function correctly. However, You may see manualSelector=true in jobs that were created with the old
Deployment”,单击右上角“镜像创建”。 图1 创建无状态负载 在“容器配置”,单击“使用该镜像”,选择镜像完成。 在“容器设置”,单击展开“高级设置 > 健康检查 > 应用业务探针”,如下图设置工作负载业务探针。 图2 配置应用业务探针 该配置是检查用户业务是否就绪,不就绪则不转发流量到当前实例。
list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will
欠费后需要及时充值,详细操作请参见账户充值。 如果存储在云容器实例 CCI中的数据不再使用,您可以将这些资源删除,以免继续扣费。 您可以在“费用中心 > 总览”页面设置“可用额度预警”功能,当可用额度、通用代金券和现金券的总额度低于预警阈值时,系统自动发送短信和邮件提醒。 当产生欠费后,请您及时充值使可用额度大于0。
autoscaling.v1.ScaleStatus 参数 参数类型 描述 replicas Integer actual number of observed instances of the scaled object. selector String label query over
api.core.v1.NamespaceCondition objects Represents the latest available observations of a namespace's current state. phase 否 String Phase is the
首先使用cci-iam-authenticator作为k8s client端的认证插件,通过用户名/密码的方式配置IAM认证信息。您可参照安装并设置kubectl进行配置。配置完成后,执行“kubectl config view”命令,获取$HOME/.kube/config路径下的kubeconfig文件。
md#spec-and-status status 否 io.k8s.api.core.v1.ServiceStatus object Most recently observed status of the service. Populated by the system. Read-only. More
md#spec-and-status status 否 io.k8s.api.core.v1.ServiceStatus object Most recently observed status of the service. Populated by the system. Read-only. More
md#spec-and-status status io.k8s.api.core.v1.ServiceStatus object Most recently observed status of the service. Populated by the system. Read-only. More
tNetwork运行的Pod,您应该明确设置其DNS策略“ClusterFirstWithHostNet”。 “None”:它允许Pod忽略Kubernetes环境中的DNS设置。应使用dnsConfigPod规范中的字段提供所有DNS设置 。 Kubernetes 1.10及以
--name指定容器的名称为some-mysql。 -e指定容器的环境变量。如这里指定环境变量MYSQL_ROOT_PASSWORD的值为********,请替换为您设置的密码。指定环境变量MYSQL_DATABASE,镜像启动时要创建的数据库名称为wordpress。 -d表示在后台运行。 执行下面的命令运行Wordpress。
autoscaling.v1.ScaleStatus 参数 是否必选 参数类型 描述 replicas 是 Integer actual number of observed instances of the scaled object. selector 否 String label query over
如果是使用HTTP协议的自建镜像仓库地址,需要设置为true,否则会因协议不同而导致镜像拉取失败。默认值为false。 insecureSkipVerify boolean 否 true 如果是使用自签发证书的自建镜像仓库地址,需要设置为true来跳过证书认证,否则会因证书认证失败
list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will
md#spec-and-status status io.k8s.api.core.v1.ServiceStatus object Most recently observed status of the service. Populated by the system. Read-only. More
autoscaling.v1.ScaleStatus 参数 参数类型 描述 replicas Integer actual number of observed instances of the scaled object. selector String label query over
replicas:Pod的数量,即Deployment下有几个Pod。 selector.matchLabels:Deployment使用哪些标签选择Pod,例如这里设置的标签app=nginx,当Pod有这个标签时,就会被Deployment选中管理。 template:Pod的模板,定义Pod的各种配置和规格。