harbor 1.7 helm ingress 对接lvs nginx报错集锦

harbor 1.7 helm ingress 对接lvs nginx报错集锦

harbor 1.7 helm ingress 对接lvs nginx报错集锦

1. 没有强制将http转https

因为http和https同时存在并转向ingress,造成从https登陆但是后续线程拉取的时候走了http(或者倒过来)

docker push harbor.com/test/xxxx
The push refers to a repository [harbor.com/test/xxx]
91125c69a79d: Pushing [==================================================>]  4.608kB
0dd7a13ac647: Pushing [==================================================>]     512B
29cc52c85180: Waiting 
1d31b5806ba4: Waiting 
unauthorized: authentication required

解决:
nginx中强制http转https

2. unknown blob

docker push harbor.com/test/xxxx
The push refers to a repository [harbor.com/test/xxxx]
fd713c7c81af: Preparing 
032657ac7c4a: Preparing 
fc3c053505e6: Preparing 
91b6f6ead101: Preparing 
f439636ab0f0: Preparing 
5bef08742407: Waiting 

#或者

docker push harbor.com/test/xxxx
The push refers to a repository [harbor.com/test/xxxx]
fd713c7c81af: Preparing 
232c7039f829: Waiting 
09b60d1d72bf: Waiting 
d1d12d748b81: Waiting 
6683a9074c03: Waiting 
29cc52c85180: Waiting 
1d31b5806ba4: Waiting 
unknown blob

解决:
nginx中加入

proxy_set_header Host $host;