如harbor地址: harbor.qing.cn
#docker login harbor.classba.cn
#cat /root/.docker/config.json | base64
#cat sert.yaml
apiVersion: v1
kind: Secret metadata: namespace: default name: harbor.qing.cn.key type: kubernetes.io/dockerconfigjson data: .dockerconfigjson: dGgiOiAiYXpoek9rdDFZbVZ5Ym1WMFpwYlc5aU1USXoiCgkJfQoJfSwKCSJIdHRwSGVhZGVycyI6IHsKCQkiVXNlcEb2NrZXItQ2xpZW50LzE3LjA5LjAtY2UgKGxpbnV4KSIKCX0KfQ== #kubectl apply -f sert.yaml 在以后的yaml文件 中写: image: harbor.qing.cn/xxx/nginx:v1 imagePullSecrets: - name: harbor.qing.cn.key