三.错误笔记
作者:互联网
部署时镜像拉取失败
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是否和项目的所在工作空间一致
标签:name,错误,Secrets,app,笔记,project,harbor,spec 来源: https://blog.csdn.net/I_T_T_I/article/details/114542728