更新时间:2025-05-15 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
父主题: 约束与说明