更新时间:2024-06-13 GMT+08:00
分享

镜像拉取配置说明

此配置主要针对用户发布的服务包中带有镜像,需要授权给对应的购买用户者下载使用时需要增加的步骤。

用户需要在用户部署的deployment.yaml、statefulset.yaml等包含镜像下载的文件中增加如下配置。

apiVersion: apps/v1
kind: Deployment
metadata:
  name: example
spec:
  replicas: 1
  spec:
    serviceAccountName: details
    containers:
    - name: details
      image: "{{ .Values.global.hub }}/details:1.5.0"
      imagePullPolicy: IfNotPresent
    restartPolicy: Always         
    imagePullSecrets:           
      - name: default-secret
分享:

    相关文档

    相关产品