Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
harbor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
market
harbor
Commits
3737395a
Commit
3737395a
authored
May 25, 2022
by
舒成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
30e5e8d0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
40 deletions
+17
-40
templates/NOTES.txt
templates/NOTES.txt
+1
-1
templates/ingress/ingresshost.yaml
templates/ingress/ingresshost.yaml
+3
-15
templates/ingress/ingressroute.yaml
templates/ingress/ingressroute.yaml
+13
-24
No files found.
templates/NOTES.txt
View file @
3737395a
Please wait for several minutes for Harbor deployment to complete.
Please wait for several minutes for Harbor deployment to complete.
Then you should be able to visit the Harbor portal at {{
.Values.externalURL }}.{{
$.Values.global.host }}
Then you should be able to visit the Harbor portal at {{ $.Values.global.host }}
For more details, please visit https://github.com/goharbor/harbor
For more details, please visit https://github.com/goharbor/harbor
templates/ingress/ingresshost.yaml
View file @
3737395a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
apiVersion
:
bcc.bd-apaas.com/v1alpha1
apiVersion
:
bcc.bd-apaas.com/v1alpha1
kind
:
IngressHost
kind
:
IngressHost
metadata
:
metadata
:
name
:
"
{{
template
"harbor.ingress" . }}
-core
"
name
:
"
{{
template
"harbor.ingress" . }}"
annotations
:
annotations
:
{{
- with .Values.expose.ingress.annotations
}}
{{
- with .Values.expose.ingress.annotations
}}
{{
- toYaml . | nindent 4
}}
{{
- toYaml . | nindent 4
}}
...
@@ -11,18 +11,6 @@ metadata:
...
@@ -11,18 +11,6 @@ metadata:
labels
:
labels
:
{{
include "harbor.labels" . | nindent 4
}}
{{
include "harbor.labels" . | nindent 4
}}
spec
:
spec
:
host
:
"
{{
.Values.expose.ingress.hosts.core
}}.{{
$.Values.global.host
}}"
host
:
"
{{
$.Values.global.host
}}"
---
apiVersion
:
bcc.bd-apaas.com/v1alpha1
kind
:
IngressHost
metadata
:
name
:
"
{{
template
"harbor.ingress" . }}-notary"
annotations
:
{{
- with .Values.expose.ingress.annotations
}}
{{
- toYaml . | nindent 4
}}
{{
- end
}}
labels
:
{{
include "harbor.labels" . | nindent 4
}}
spec
:
host
:
"
{{
.Values.expose.ingress.hosts.notary
}}.{{
$.Values.global.host
}}"
{{
- end -
}}
{{
- end -
}}
templates/ingress/ingressroute.yaml
View file @
3737395a
...
@@ -14,45 +14,39 @@ spec:
...
@@ -14,45 +14,39 @@ spec:
entryPoints
:
entryPoints
:
-
websecure
-
websecure
routes
:
routes
:
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.portal" .
}}
-
name
:
{{
template "harbor.portal" .
}}
port
:
{{
template "harbor.portal.servicePort" .
}}
port
:
{{
template "harbor.portal.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/api/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/api/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/service/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/service/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/v2/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/v2/`)
kind
:
Rule
kind
:
Rule
middlewares
:
middlewares
:
-
name
:
"
{{
template
"harbor.ingress" . }}-https"
-
name
:
"
{{
template
"harbor.ingress" . }}-https"
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/chartrepo/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/chartrepo/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/c/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/c/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{ .Values.expose.ingress.hosts.notary }}.{{ $.Values.global.host }}`) && PathPrefix(`/`)
tls
:
{}
kind
:
Rule
services
:
-
name
:
{{
template "harbor.notary-server" .
}}
port
:
4443
tls
:
certResolver
:
default
---
---
apiVersion
:
bcc.bd-apaas.com/v1alpha1
apiVersion
:
bcc.bd-apaas.com/v1alpha1
kind
:
IngressRoute
kind
:
IngressRoute
...
@@ -68,39 +62,34 @@ spec:
...
@@ -68,39 +62,34 @@ spec:
entryPoints
:
entryPoints
:
-
web
-
web
routes
:
routes
:
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.portal" .
}}
-
name
:
{{
template "harbor.portal" .
}}
port
:
{{
template "harbor.portal.servicePort" .
}}
port
:
{{
template "harbor.portal.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/api/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/api/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/service/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/service/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/v2/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/v2/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/chartrepo/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/chartrepo/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{
.Values.expose.ingress.hosts.core }}.{{
$.Values.global.host }}`) && PathPrefix(`/c/`)
-
match
:
Host(`{{ $.Values.global.host }}`) && PathPrefix(`/c/`)
kind
:
Rule
kind
:
Rule
services
:
services
:
-
name
:
{{
template "harbor.core" .
}}
-
name
:
{{
template "harbor.core" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
port
:
{{
template "harbor.core.servicePort" .
}}
-
match
:
Host(`{{ .Values.expose.ingress.hosts.notary }}.{{ $.Values.global.host }}`) && PathPrefix(`/`)
kind
:
Rule
services
:
-
name
:
{{
template "harbor.notary-server" .
}}
port
:
4443
{{
- end -
}}
{{
- end -
}}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment