检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
will get capped at 5 by GC. image String Image that the container is running. imageID String ID of the container's image. containerID String Container's
cpu: 1000m memory: 2048Mi imagePullSecrets: - name: imagepull-secret 表2 参数说明 Annotation 功能 可选值 默认值 monitoring
docker pull mysql:5.7 docker pull wordpress 下载完成后,执行docker images命令可以看到本地已经存在两个镜像,如下图所示。 运行容器 使用容器引擎可以直接运行Wordpress和MySQL,且可以使用--link参数将两个容器连接
"workingDir" : "/home" } ], "imagePullSecrets" : [ { "name" : "imagepull-secret" } ], "restartPolicy"
get capped at 5 by GC. image Yes String The image the container is running. imageID No String ID of the container's image. containerID No String
ConfigMap的使用 配置项创建完成后,可以在创建负载的过程中挂载到容器指定路径下,如下图所示,将名为cci-configmap01的配置项挂载到“/tmp/configmap1”路径下。 图1 使用ConfigMap 负载创建后,在“/tmp/configmap1”路径下将创建
构建容器镜像。 docker build -t nginx:v3 . 执行以下命令,可查看到已成功部署的nginx镜像,版本为v3。 docker images 父主题: 镜像仓库类
updated. image String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy String Image pull policy
updated. image String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy String Image pull policy
updated. image 否 String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy 否 String Image pull policy
Secret列表中会出现新创建的Secret。 Secret的使用 Secret创建完后,可以在创建负载的过程中作为环境变量引用,或以文件方式挂载到容器中。 图1 使用环境变量挂载Secret 图2 将Secret挂载到容器中 挂载路径的字符串长度不能超过256个字符。 Secret文件格式说明 secret.yaml资源描述文件
updated. image String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy String Image pull policy
updated. image String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy String Image pull policy
updated. image String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy String Image pull policy
"v1beta1" } ] }, { "name" : "image.cci.io", "preferredVersion" : { "groupVersion" : "image.cci.io/v1alpha1", "version" :
# Pod定义 spec: containers: - name: pi image: perl command: - perl - "-Mbignum=bpi"
updated. image String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy String Image pull policy
updated. image String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy String Image pull policy
updated. image String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy String Image pull policy
updated. image String Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images imagePullPolicy String Image pull policy