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
e1e04d48
Commit
e1e04d48
authored
Apr 07, 2019
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1257e46a
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
54 additions
and
56 deletions
+54
-56
Deploy.md
Deploy.md
+4
-4
templates/_helpers.tpl
templates/_helpers.tpl
+1
-3
templates/chartmuseum/chartmuseum-dpl.yaml
templates/chartmuseum/chartmuseum-dpl.yaml
+3
-3
templates/chartmuseum/chartmuseum-svc.yaml
templates/chartmuseum/chartmuseum-svc.yaml
+1
-1
templates/clair/clair-cm.yaml
templates/clair/clair-cm.yaml
+1
-1
templates/clair/clair-dpl.yaml
templates/clair/clair-dpl.yaml
+3
-3
templates/clair/clair-svc.yaml
templates/clair/clair-svc.yaml
+1
-1
templates/core/core-dpl.yaml
templates/core/core-dpl.yaml
+3
-3
templates/core/core-svc.yaml
templates/core/core-svc.yaml
+1
-1
templates/database/database-ss.yaml
templates/database/database-ss.yaml
+3
-3
templates/database/database-svc.yaml
templates/database/database-svc.yaml
+1
-1
templates/jobservice/jobservice-dpl.yaml
templates/jobservice/jobservice-dpl.yaml
+3
-3
templates/jobservice/jobservice-svc.yaml
templates/jobservice/jobservice-svc.yaml
+1
-1
templates/nginx/deployment.yaml
templates/nginx/deployment.yaml
+3
-3
templates/nginx/service.yaml
templates/nginx/service.yaml
+1
-1
templates/notary/notary-cm.yaml
templates/notary/notary-cm.yaml
+1
-1
templates/notary/notary-server.yaml
templates/notary/notary-server.yaml
+3
-3
templates/notary/notary-signer.yaml
templates/notary/notary-signer.yaml
+3
-3
templates/notary/notary-svc.yaml
templates/notary/notary-svc.yaml
+2
-2
templates/portal/deployment.yaml
templates/portal/deployment.yaml
+3
-3
templates/portal/service.yaml
templates/portal/service.yaml
+1
-1
templates/redis/service.yaml
templates/redis/service.yaml
+1
-1
templates/redis/statefulset.yaml
templates/redis/statefulset.yaml
+3
-3
templates/registry/registry-dpl.yaml
templates/registry/registry-dpl.yaml
+3
-3
templates/registry/registry-svc.yaml
templates/registry/registry-svc.yaml
+1
-1
values-aliyun.yaml
values-aliyun.yaml
+3
-3
No files found.
Deploy.md
View file @
e1e04d48
...
@@ -40,10 +40,10 @@ docker pull goharbor/harbor-jobservice:v1.7.5 && \
...
@@ -40,10 +40,10 @@ docker pull goharbor/harbor-jobservice:v1.7.5 && \
docker tag goharbor/harbor-jobservice:v1.7.5 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.7.5
&&
\
docker tag goharbor/harbor-jobservice:v1.7.5 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.7.5
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.7.5
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.7.5
#
goharbor/registry-photon
#
registry
docker pull
goharbor/registry-photon:v2.6.2-v1.7.5
&&
\
docker pull
registry:2.7.1
&&
\
docker tag
goharbor/registry-photon:v2.6.2-v1.7.5 registry-vpc.cn-qingdao.aliyuncs.com/wod/registry-photon:v2.6.2-v1.7.5
&&
\
docker tag
registry:2.7.1 registry-vpc.cn-qingdao.aliyuncs.com/wod/registry:2.7.1
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/registry
-photon:v2.6.2-v1.7.5
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/registry
:2.7.1
# goharbor/harbor-registryctl
# goharbor/harbor-registryctl
docker pull goharbor/harbor-registryctl:v1.7.5
&&
\
docker pull goharbor/harbor-registryctl:v1.7.5
&&
\
...
...
templates/_helpers.tpl
View file @
e1e04d48
...
@@ -13,7 +13,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
...
@@ -13,7 +13,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
*/
}
}
*/
}
}
{{- define "harbor.fullname" -}}
{{- define "harbor.fullname" -}}
{{- $name := default "harbor" .Values.nameOverride -}}
{{- $name := default "harbor" .Values.nameOverride -}}
{{- printf "%s
-%s" .Release.Name $n
ame | trunc 63 | trimSuffix "-" -}}
{{- printf "%s
" .Release.N
ame | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{
{
/*
Helm
required
labels
*/
}
}
{
{
/*
Helm
required
labels
*/
}
}
...
@@ -21,13 +21,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
...
@@ -21,13 +21,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
heritage: {{ .Release.Service }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
release: {{ .Release.Name }}
chart: {{ .Chart.Name }}
chart: {{ .Chart.Name }}
app: "{{ template "harbor.name" . }}"
{{- end -}}
{{- end -}}
{
{
/*
matchLabels
*/
}
}
{
{
/*
matchLabels
*/
}
}
{{- define "harbor.matchLabels" -}}
{{- define "harbor.matchLabels" -}}
release: {{ .Release.Name }}
release: {{ .Release.Name }}
app: "{{ template "harbor.name" . }}"
{{- end -}}
{{- end -}}
{{- define "harbor.autoGenCert" -}}
{{- define "harbor.autoGenCert" -}}
...
...
templates/chartmuseum/chartmuseum-dpl.yaml
View file @
e1e04d48
...
@@ -5,18 +5,18 @@ metadata:
...
@@ -5,18 +5,18 @@ metadata:
name
:
"
{{
template
"harbor.chartmuseum" . }}"
name
:
"
{{
template
"harbor.chartmuseum" . }}"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
chartmuseum
app
:
chartmuseum
spec
:
spec
:
replicas
:
{{
.Values.chartmuseum.replicas
}}
replicas
:
{{
.Values.chartmuseum.replicas
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
chartmuseum
app
:
chartmuseum
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
chartmuseum
app
:
chartmuseum
annotations
:
annotations
:
checksum/configmap
:
{{
include (print $.Template.BasePath "/chartmuseum/chartmuseum-cm.yaml") . | sha256sum
}}
checksum/configmap
:
{{
include (print $.Template.BasePath "/chartmuseum/chartmuseum-cm.yaml") . | sha256sum
}}
checksum/secret
:
{{
include (print $.Template.BasePath "/chartmuseum/chartmuseum-secret.yaml") . | sha256sum
}}
checksum/secret
:
{{
include (print $.Template.BasePath "/chartmuseum/chartmuseum-secret.yaml") . | sha256sum
}}
...
...
templates/chartmuseum/chartmuseum-svc.yaml
View file @
e1e04d48
...
@@ -11,5 +11,5 @@ spec:
...
@@ -11,5 +11,5 @@ spec:
targetPort
:
9999
targetPort
:
9999
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
chartmuseum
app
:
chartmuseum
{{
- end
}}
{{
- end
}}
\ No newline at end of file
templates/clair/clair-cm.yaml
View file @
e1e04d48
...
@@ -5,7 +5,7 @@ metadata:
...
@@ -5,7 +5,7 @@ metadata:
name
:
{{
template "harbor.clair" .
}}
name
:
{{
template "harbor.clair" .
}}
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
clair
app
:
clair
data
:
data
:
config.yaml
:
|
config.yaml
:
|
clair:
clair:
...
...
templates/clair/clair-dpl.yaml
View file @
e1e04d48
...
@@ -5,18 +5,18 @@ metadata:
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.clair" .
}}
name
:
{{
template "harbor.clair" .
}}
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
clair
app
:
clair
spec
:
spec
:
replicas
:
{{
.Values.clair.replicas
}}
replicas
:
{{
.Values.clair.replicas
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
clair
app
:
clair
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
clair
app
:
clair
annotations
:
annotations
:
checksum/configmap
:
{{
include (print $.Template.BasePath "/clair/clair-cm.yaml") . | sha256sum
}}
checksum/configmap
:
{{
include (print $.Template.BasePath "/clair/clair-cm.yaml") . | sha256sum
}}
{{
- if .Values.clair.podAnnotations
}}
{{
- if .Values.clair.podAnnotations
}}
...
...
templates/clair/clair-svc.yaml
View file @
e1e04d48
...
@@ -13,5 +13,5 @@ spec:
...
@@ -13,5 +13,5 @@ spec:
port
:
6061
port
:
6061
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
clair
app
:
clair
{{
end
}}
{{
end
}}
templates/core/core-dpl.yaml
View file @
e1e04d48
...
@@ -4,18 +4,18 @@ metadata:
...
@@ -4,18 +4,18 @@ metadata:
name
:
{{
template "harbor.core" .
}}
name
:
{{
template "harbor.core" .
}}
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
core
app
:
core
spec
:
spec
:
replicas
:
{{
.Values.core.replicas
}}
replicas
:
{{
.Values.core.replicas
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
core
app
:
core
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.matchLabels" . | indent 8
}}
{{
include "harbor.matchLabels" . | indent 8
}}
component
:
core
app
:
core
annotations
:
annotations
:
checksum/configmap
:
{{
include (print $.Template.BasePath "/core/core-cm.yaml") . | sha256sum
}}
checksum/configmap
:
{{
include (print $.Template.BasePath "/core/core-cm.yaml") . | sha256sum
}}
checksum/secret
:
{{
include (print $.Template.BasePath "/core/core-secret.yaml") . | sha256sum
}}
checksum/secret
:
{{
include (print $.Template.BasePath "/core/core-secret.yaml") . | sha256sum
}}
...
...
templates/core/core-svc.yaml
View file @
e1e04d48
...
@@ -13,4 +13,4 @@ spec:
...
@@ -13,4 +13,4 @@ spec:
targetPort
:
8080
targetPort
:
8080
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
core
app
:
core
templates/database/database-ss.yaml
View file @
e1e04d48
...
@@ -6,19 +6,19 @@ metadata:
...
@@ -6,19 +6,19 @@ metadata:
name
:
"
{{
template
"harbor.database" . }}"
name
:
"
{{
template
"harbor.database" . }}"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
database
app
:
database
spec
:
spec
:
replicas
:
1
replicas
:
1
serviceName
:
"
{{
template
"harbor.database" . }}"
serviceName
:
"
{{
template
"harbor.database" . }}"
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
database
app
:
database
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
database
app
:
database
annotations
:
annotations
:
checksum/secret
:
{{
include (print $.Template.BasePath "/database/database-secret.yaml") . | sha256sum
}}
checksum/secret
:
{{
include (print $.Template.BasePath "/database/database-secret.yaml") . | sha256sum
}}
{{
- if .Values.database.podAnnotations
}}
{{
- if .Values.database.podAnnotations
}}
...
...
templates/database/database-svc.yaml
View file @
e1e04d48
...
@@ -10,5 +10,5 @@ spec:
...
@@ -10,5 +10,5 @@ spec:
-
port
:
5432
-
port
:
5432
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
database
app
:
database
{{
- end -
}}
{{
- end -
}}
\ No newline at end of file
templates/jobservice/jobservice-dpl.yaml
View file @
e1e04d48
...
@@ -4,18 +4,18 @@ metadata:
...
@@ -4,18 +4,18 @@ metadata:
name
:
"
{{
template
"harbor.jobservice" . }}"
name
:
"
{{
template
"harbor.jobservice" . }}"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
jobservice
app
:
jobservice
spec
:
spec
:
replicas
:
{{
.Values.jobservice.replicas
}}
replicas
:
{{
.Values.jobservice.replicas
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
jobservice
app
:
jobservice
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
jobservice
app
:
jobservice
annotations
:
annotations
:
checksum/configmap
:
{{
include (print $.Template.BasePath "/jobservice/jobservice-cm.yaml") . | sha256sum
}}
checksum/configmap
:
{{
include (print $.Template.BasePath "/jobservice/jobservice-cm.yaml") . | sha256sum
}}
checksum/secret
:
{{
include (print $.Template.BasePath "/jobservice/jobservice-secrets.yaml") . | sha256sum
}}
checksum/secret
:
{{
include (print $.Template.BasePath "/jobservice/jobservice-secrets.yaml") . | sha256sum
}}
...
...
templates/jobservice/jobservice-svc.yaml
View file @
e1e04d48
...
@@ -10,4 +10,4 @@ spec:
...
@@ -10,4 +10,4 @@ spec:
targetPort
:
8080
targetPort
:
8080
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
jobservice
app
:
jobservice
templates/nginx/deployment.yaml
View file @
e1e04d48
...
@@ -5,18 +5,18 @@ metadata:
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.nginx" .
}}
name
:
{{
template "harbor.nginx" .
}}
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
nginx
app
:
nginx
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
nginx
app
:
nginx
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
nginx
app
:
nginx
annotations
:
annotations
:
{{
- if not .Values.expose.tls.enabled
}}
{{
- if not .Values.expose.tls.enabled
}}
checksum/configmap
:
{{
include (print $.Template.BasePath "/nginx/configmap-http.yaml") . | sha256sum
}}
checksum/configmap
:
{{
include (print $.Template.BasePath "/nginx/configmap-http.yaml") . | sha256sum
}}
...
...
templates/nginx/service.yaml
View file @
e1e04d48
...
@@ -59,5 +59,5 @@ spec:
...
@@ -59,5 +59,5 @@ spec:
{{
- end
}}
{{
- end
}}
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
nginx
app
:
nginx
{{
- end
}}
{{
- end
}}
\ No newline at end of file
templates/notary/notary-cm.yaml
View file @
e1e04d48
...
@@ -5,7 +5,7 @@ metadata:
...
@@ -5,7 +5,7 @@ metadata:
name
:
{{
template "harbor.notary-server" .
}}
name
:
{{
template "harbor.notary-server" .
}}
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
notary
app
:
notary
data
:
data
:
{{
$ca
:
= genCA "harbor-notary-ca" 365
}}
{{
$ca
:
= genCA "harbor-notary-ca" 365
}}
{{
$cert
:
= genSignedCert (include "harbor.notary-signer" .) nil nil 365 $ca
}}
{{
$cert
:
= genSignedCert (include "harbor.notary-signer" .) nil nil 365 $ca
}}
...
...
templates/notary/notary-server.yaml
View file @
e1e04d48
...
@@ -5,18 +5,18 @@ metadata:
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.notary-server" .
}}
name
:
{{
template "harbor.notary-server" .
}}
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
notary-server
app
:
notary-server
spec
:
spec
:
replicas
:
{{
.Values.notary.server.replicas
}}
replicas
:
{{
.Values.notary.server.replicas
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
notary-server
app
:
notary-server
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
notary-server
app
:
notary-server
annotations
:
annotations
:
checksum/configmap
:
{{
include (print $.Template.BasePath "/notary/notary-cm.yaml") . | sha256sum
}}
checksum/configmap
:
{{
include (print $.Template.BasePath "/notary/notary-cm.yaml") . | sha256sum
}}
checksum/secret-core
:
{{
include (print $.Template.BasePath "/core/core-secret.yaml") . | sha256sum
}}
checksum/secret-core
:
{{
include (print $.Template.BasePath "/core/core-secret.yaml") . | sha256sum
}}
...
...
templates/notary/notary-signer.yaml
View file @
e1e04d48
...
@@ -5,18 +5,18 @@ metadata:
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.notary-signer" .
}}
name
:
{{
template "harbor.notary-signer" .
}}
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
notary-signer
app
:
notary-signer
spec
:
spec
:
replicas
:
{{
.Values.notary.signer.replicas
}}
replicas
:
{{
.Values.notary.signer.replicas
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
notary-signer
app
:
notary-signer
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
notary-signer
app
:
notary-signer
annotations
:
annotations
:
checksum/configmap
:
{{
include (print $.Template.BasePath "/notary/notary-cm.yaml") . | sha256sum
}}
checksum/configmap
:
{{
include (print $.Template.BasePath "/notary/notary-cm.yaml") . | sha256sum
}}
spec
:
spec
:
...
...
templates/notary/notary-svc.yaml
View file @
e1e04d48
...
@@ -13,7 +13,7 @@ spec:
...
@@ -13,7 +13,7 @@ spec:
-
port
:
4443
-
port
:
4443
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
notary-server
app
:
notary-server
---
---
apiVersion
:
v1
apiVersion
:
v1
...
@@ -27,5 +27,5 @@ spec:
...
@@ -27,5 +27,5 @@ spec:
-
port
:
7899
-
port
:
7899
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
notary-signer
app
:
notary-signer
{{
end
}}
{{
end
}}
\ No newline at end of file
templates/portal/deployment.yaml
View file @
e1e04d48
...
@@ -4,18 +4,18 @@ metadata:
...
@@ -4,18 +4,18 @@ metadata:
name
:
"
{{
template
"harbor.portal" . }}"
name
:
"
{{
template
"harbor.portal" . }}"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
portal
app
:
portal
spec
:
spec
:
replicas
:
{{
.Values.portal.replicas
}}
replicas
:
{{
.Values.portal.replicas
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
portal
app
:
portal
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.matchLabels" . | indent 8
}}
{{
include "harbor.matchLabels" . | indent 8
}}
component
:
portal
app
:
portal
annotations
:
annotations
:
{{
- if .Values.portal.podAnnotations
}}
{{
- if .Values.portal.podAnnotations
}}
{{
toYaml .Values.portal.podAnnotations | indent 8
}}
{{
toYaml .Values.portal.podAnnotations | indent 8
}}
...
...
templates/portal/service.yaml
View file @
e1e04d48
...
@@ -13,4 +13,4 @@ spec:
...
@@ -13,4 +13,4 @@ spec:
targetPort
:
80
targetPort
:
80
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
portal
app
:
portal
templates/redis/service.yaml
View file @
e1e04d48
...
@@ -10,5 +10,5 @@ spec:
...
@@ -10,5 +10,5 @@ spec:
-
port
:
6379
-
port
:
6379
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
redis
app
:
redis
{{
- end -
}}
{{
- end -
}}
\ No newline at end of file
templates/redis/statefulset.yaml
View file @
e1e04d48
...
@@ -5,19 +5,19 @@ metadata:
...
@@ -5,19 +5,19 @@ metadata:
name
:
{{
template "harbor.redis" .
}}
name
:
{{
template "harbor.redis" .
}}
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
redis
app
:
redis
spec
:
spec
:
replicas
:
1
replicas
:
1
serviceName
:
{{
template "harbor.redis" .
}}
serviceName
:
{{
template "harbor.redis" .
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
redis
app
:
redis
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
redis
app
:
redis
{{
- if .Values.redis.podAnnotations
}}
{{
- if .Values.redis.podAnnotations
}}
annotations
:
annotations
:
{{
toYaml .Values.redis.podAnnotations | indent 8
}}
{{
toYaml .Values.redis.podAnnotations | indent 8
}}
...
...
templates/registry/registry-dpl.yaml
View file @
e1e04d48
...
@@ -4,18 +4,18 @@ metadata:
...
@@ -4,18 +4,18 @@ metadata:
name
:
"
{{
template
"harbor.registry" . }}"
name
:
"
{{
template
"harbor.registry" . }}"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
registry
app
:
registry
spec
:
spec
:
replicas
:
{{
.Values.registry.replicas
}}
replicas
:
{{
.Values.registry.replicas
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
registry
app
:
registry
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
registry
app
:
registry
annotations
:
annotations
:
checksum/configmap
:
{{
include (print $.Template.BasePath "/registry/registry-cm.yaml") . | sha256sum
}}
checksum/configmap
:
{{
include (print $.Template.BasePath "/registry/registry-cm.yaml") . | sha256sum
}}
checksum/secret
:
{{
include (print $.Template.BasePath "/registry/registry-secret.yaml") . | sha256sum
}}
checksum/secret
:
{{
include (print $.Template.BasePath "/registry/registry-secret.yaml") . | sha256sum
}}
...
...
templates/registry/registry-svc.yaml
View file @
e1e04d48
...
@@ -12,4 +12,4 @@ spec:
...
@@ -12,4 +12,4 @@ spec:
port
:
8080
port
:
8080
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
registry
app
:
registry
\ No newline at end of file
\ No newline at end of file
values-aliyun.yaml
View file @
e1e04d48
...
@@ -3,13 +3,13 @@ expose:
...
@@ -3,13 +3,13 @@ expose:
tls
:
tls
:
enabled
:
false
enabled
:
false
ingress
:
ingress
:
host
:
h
arbor
.wodcloud.local
host
:
h
ub
.wodcloud.local
controller
:
default
controller
:
default
annotations
:
annotations
:
ingress.kubernetes.io/ssl-redirect
:
"
true"
ingress.kubernetes.io/ssl-redirect
:
"
true"
rewriteAnnotation
:
traefik.ingress.kubernetes.io/rewrite-target
rewriteAnnotation
:
traefik.ingress.kubernetes.io/rewrite-target
externalURL
:
https://h
arbor
.wodcloud.local
externalURL
:
https://h
ub
.wodcloud.local
persistence
:
persistence
:
enabled
:
false
enabled
:
false
...
@@ -44,7 +44,7 @@ registry:
...
@@ -44,7 +44,7 @@ registry:
registry
:
registry
:
image
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/registry
repository
:
registry.cn-qingdao.aliyuncs.com/wod/registry
tag
:
v
2.7.1
tag
:
2.7.1
resources
:
resources
:
limits
:
limits
:
memory
:
4Gi
memory
:
4Gi
...
...
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