检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
- name: imagepull-secret 父主题: Pod
": [ { "name": "imagepull-secret" } ] } }
nginx:latest imagePullPolicy: IfNotPresent resources: requests: cpu: 250m memory
- name: imagepull-secret 将上面Deployment的定义保存到deploy-read.yaml文件中,删除之前创建的Deployment,用deploy-read.yaml创建这个Deployment。
image:创建容器使用的镜像。 resources.limits:容器使用资源的大小限制,即容器使用的资源不能超过这个限制。 resources.requests:容器申请使用资源的大小。 Nginx负载创建完后,您可以在云容器实例控制台云容器实例控制台查看到负载。
- name: imagepull-secret
": [ { "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
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
(Collections.singletonList(new V1LocalObjectReference().name("imagepull-secret"))) .containers(Collections.singletonList
# 拉取镜像使用的证书,必须为imagepull-secret - name: imagepull-secret 从这个定义中可以看到Deployment的名称为nginx,spec.replicas定义了Pod的数量,即这个Deployment
- name: kafkatls secret: secretName: cci-sfs-kafka-tls containers: - name: container-0 image
template: metadata: labels: app: cci-downwardapi-test spec: containers: - name: container-0 image