1、创建密钥
kubectl create secret docker-registry harbor-keys --docker-server=skg.harbor.bjshxg.com:80 --docker-username=admin --docker-password=harbor123456 -n fat-k-k8s
2、deployment加载密钥
spec: imagePullSecrets: - name: harbor-keys containers: - env: - name: active - name: app value: kkcloud-activity-admin image: >- skg.harbor.bjshxg.com/fat-k-k8s/java-admin:feature_fat-3945 imagePullPolicy: Always name: java-admin
标签:name,harbor,--,admin,密钥,镜像,docker From: https://www.cnblogs.com/linjiangCN/p/17065508.html