harbor
小于 1 分钟
helm repo add harbor https://helm.goharbor.io
helm repo update
安装
helm pull harbor/harbor --version 1.13.1
tar -zxvf harbor-1.13.1.tgz
values修改
cat << EOF > harbor-values.yaml
expose:
type: ingress
tls:
enabled: false
ingress:
hosts:
core: harbor.zili.work
annotations:
ingressClassName: nginx
harbor:
annotations:
ingressClassName: nginx
externalURL: http://harbor.zili.work
persistence:
enabled: true
persistentVolumeClaim:
registry:
accessMode: ReadWriteOnce
size: 2Gi
trivy:
accessMode: ReadWriteOnce
size: 2Gi
harborAdminPassword: "Harbor12345"
EOF
部署
helm upgrade --install harbor . -f harbor-values.yaml -n harbor --create-namespace
域名解析
404
kubectl edit ingress/harbor-ingress --namespace harbor
在 spec 下 追加一行 ingressClassName: nginx。 如下
...
spec:
ingressClassName: nginx
rules:
- host: harbor.zili.work
http:
paths:
- backend:
....