检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
对象 createImagecache 删除一个imagecache对象 deleteImagecache 替换指定的imagecache对象 replaceImagecache 更新指定的imagecache对象 updateImagecache 上传模板 createChart
": [ { "name": "imagepull-secret" } ] } }
- name: imagepull-secret 父主题: Pod
": [ { "name": "imagepull-secret"
image:创建容器使用的镜像。 resources.limits:容器使用资源的大小限制,即容器使用的资源不能超过这个限制。 resources.requests:容器申请使用资源的大小。 Nginx负载创建完后,您可以在云容器实例控制台云容器实例控制台查看到负载。
- name: imagepull-secret 将上面Deployment的定义保存到deploy-read.yaml文件中,删除之前创建的Deployment,用deploy-read.yaml创建这个Deployment。
- name: imagepull-secret
": [ { "name": "imagepull-secret"
": [ { "name": "imagepull-secret"
apiVersion: v1 kind: Pod metadata: name: pod-emptydir-name spec: containers: - image: 'library/ubuntu:latest' volumeMounts
yaml示例如下: apiVersion: v1 kind: Pod metadata: namespace: default name: dns-example spec: containers: - name: test image: nginx
busybox command: ['sleep','20'] containers: - name: mysql image: percona:5.7.22 imagePullPolicy: Always
=image, resources=client.V1ResourceRequirements( requests={"cpu": "500m", "memory
apiVersion: v1 kind: Pod metadata: name: liveness-http spec: containers: - name: liveness image: k8s.gcr.io/liveness args:
- name: imagepull-secret 表3 tls证书参数说明 Annotation 功能 可选值 默认值 monitoring.cci.io/metrics-tls-cert-reference tls证书volume引用 ${volume-name
(Collections.singletonList(new V1LocalObjectReference().name("imagepull-secret"))) .containers(Collections.singletonList
This value will get capped at 5 by GC. image String Image that the container is running. imageID String ID of the container's image. containerID
# 拉取镜像使用的证书,必须为imagepull-secret - name: imagepull-secret 从这个定义中可以看到Deployment的名称为nginx,spec.replicas定义了Pod的数量,即这个Deployment
template: metadata: labels: app: cci-downwardapi-test spec: containers: - name: container-0 image
- name: kafkatls secret: secretName: cci-sfs-kafka-tls containers: - name: container-0 image