部署时镜像拉取失败
1.工程的Deployment是否添加imagePullSecrets
示例:
spec:
replicas: 2
selector:
matchLabels:
app: $project_name
template:
metadata:
labels:
app: $project_name
spec:
imagePullSecrets:
- name: harbor-Secrets
containers:
- name: $project_name
image: $REGISTRY/$DOCKERHUB_NAMESPACE/$project_name:latest
2.添加的harbor-Secrets是否和项目的所在工作空间一致