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
389ab421
Commit
389ab421
authored
Aug 17, 2019
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update v1.8
parent
d8f0e7cc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
67 deletions
+25
-67
templates/_helpers.tpl
templates/_helpers.tpl
+1
-2
templates/chartmuseum/chartmuseum-pvc.yaml
templates/chartmuseum/chartmuseum-pvc.yaml
+0
-32
templates/registry/registry-ss.yaml
templates/registry/registry-ss.yaml
+2
-2
values-aliyun.yaml
values-aliyun.yaml
+18
-27
values.yaml
values.yaml
+4
-4
No files found.
templates/_helpers.tpl
View file @
389ab421
...
@@ -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,7 +21,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
...
@@ -21,7 +21,6 @@ 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
*/
}
}
...
...
templates/chartmuseum/chartmuseum-pvc.yaml
deleted
100644 → 0
View file @
d8f0e7cc
{{
- if .Values.chartmuseum.enabled
}}
{{
- $persistence
:
= .Values.persistence -
}}
{{
- if $persistence.enabled
}}
{{
- $chartmuseum
:
= $persistence.persistentVolumeClaim.chartmuseum -
}}
{{
- if and (not $chartmuseum.existingClaim) (eq $persistence.imageChartStorage.type "filesystem")
}}
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
{{
template "harbor.chartmuseum" .
}}
{{
- if eq $persistence.resourcePolicy "keep"
}}
annotations
:
helm.sh/resource-policy
:
keep
{{
- end
}}
labels
:
{{
include "harbor.labels" . | indent 4
}}
app
:
chartmuseum
spec
:
accessModes
:
-
{{
$chartmuseum.accessMode
}}
resources
:
requests
:
storage
:
{{
$chartmuseum.size
}}
{{
- if $chartmuseum.storageClass
}}
{{
- if eq "-" $chartmuseum.storageClass
}}
storageClassName
:
"
"
{{
- else
}}
storageClassName
:
{{
$chartmuseum.storageClass
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
\ No newline at end of file
templates/registry/registry-ss.yaml
View file @
389ab421
{{
- $storage
:
= .Values.
registry.s
torage
}}
{{
- $storage
:
= .Values.
persistence.imageChartS
torage
}}
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
StatefulSet
kind
:
StatefulSet
metadata
:
metadata
:
...
@@ -60,7 +60,7 @@ spec:
...
@@ -60,7 +60,7 @@ spec:
{{
- end
}}
{{
- end
}}
-
name
:
registry-root-certificate
-
name
:
registry-root-certificate
mountPath
:
/etc/registry/root.crt
mountPath
:
/etc/registry/root.crt
subPath
:
t
okenServiceRootCertBundle
subPath
:
t
ls.crt
-
name
:
registry-config
-
name
:
registry-config
mountPath
:
/etc/registry/config.yml
mountPath
:
/etc/registry/config.yml
subPath
:
config.yml
subPath
:
config.yml
...
...
values-aliyun.yaml
View file @
389ab421
...
@@ -13,6 +13,19 @@ externalURL: https://hub.wodcloud.local
...
@@ -13,6 +13,19 @@ externalURL: https://hub.wodcloud.local
persistence
:
persistence
:
enabled
:
false
enabled
:
false
imageChartStorage
:
type
:
s3
s3
:
accesskey
:
AKIAIOSFODNN7EXAMPLE
secretkey
:
wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
region
:
us-east-1
regionendpoint
:
http://minio.wodcloud.local
bucket
:
registry
encrypt
:
false
v4auth
:
true
chunksize
:
'
5242880'
rootdirectory
:
/
imagePullPolicy
:
IfNotPresent
imagePullPolicy
:
IfNotPresent
...
@@ -32,12 +45,6 @@ core:
...
@@ -32,12 +45,6 @@ core:
tag
:
v1.8.2
tag
:
v1.8.2
replicas
:
1
replicas
:
1
adminserver
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/harbor-adminserver
tag
:
v1.8.2
replicas
:
1
jobservice
:
jobservice
:
image
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/harbor-jobservice
repository
:
registry.cn-qingdao.aliyuncs.com/wod/harbor-jobservice
...
@@ -58,21 +65,6 @@ registry:
...
@@ -58,21 +65,6 @@ registry:
memory
:
256Mi
memory
:
256Mi
nodeSelector
:
nodeSelector
:
harbor
:
enabled
harbor
:
enabled
storage
:
# 存储类型,filesystem-本地文件存储,s3-minio s3存储
type
:
filesystem
filesystem
:
rootdirectory
:
/data
s3
:
accesskey
:
AKIAIOSFODNN7EXAMPLE
secretkey
:
wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
region
:
us-east-1
regionendpoint
:
http://minio.wodcloud.local
bucket
:
registry
encrypt
:
false
v4auth
:
true
chunksize
:
5242880
rootdirectory
:
/
storageSpec
:
storageSpec
:
# type: emptyDir , hostPath , volumeClaimTemplate
# type: emptyDir , hostPath , volumeClaimTemplate
type
:
hostPath
type
:
hostPath
...
@@ -103,7 +95,6 @@ chartmuseum:
...
@@ -103,7 +95,6 @@ chartmuseum:
nodeSelector
:
nodeSelector
:
harbor
:
enabled
harbor
:
enabled
storageSpec
:
storageSpec
:
# type: emptyDir , hostPath
type
:
hostPath
type
:
hostPath
emptyDir
:
{}
emptyDir
:
{}
hostPath
:
hostPath
:
...
@@ -115,7 +106,6 @@ clair:
...
@@ -115,7 +106,6 @@ clair:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/clair-photon
repository
:
registry.cn-qingdao.aliyuncs.com/wod/clair-photon
tag
:
v2.0.8-v1.8.2
tag
:
v2.0.8-v1.8.2
replicas
:
1
replicas
:
1
updatersInterval
:
12
notary
:
notary
:
enabled
:
true
enabled
:
true
...
@@ -145,9 +135,10 @@ database:
...
@@ -145,9 +135,10 @@ database:
nodeSelector
:
nodeSelector
:
harbor
:
enabled
harbor
:
enabled
storageSpec
:
storageSpec
:
type
:
hostPath
emptyDir
:
{}
hostPath
:
root
:
/data
root
:
/data
# 不用hostPath,则注释
hostPath
:
true
volumeClaimTemplate
:
volumeClaimTemplate
:
spec
:
spec
:
storageClassName
:
rook-ceph-block
storageClassName
:
rook-ceph-block
...
...
values.yaml
View file @
389ab421
...
@@ -33,10 +33,10 @@ expose:
...
@@ -33,10 +33,10 @@ expose:
# set to `ncp` if using the NCP (NSX-T Container Plugin) ingress controller
# set to `ncp` if using the NCP (NSX-T Container Plugin) ingress controller
controller
:
default
controller
:
default
annotations
:
annotations
:
ingress.kubernetes.io/ssl-redirect
:
"
true"
#
ingress.kubernetes.io/ssl-redirect: "true"
ingress.kubernetes.io/proxy-body-size
:
"
0"
#
ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/ssl-redirect
:
"
true"
#
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-body-size
:
"
0"
#
nginx.ingress.kubernetes.io/proxy-body-size: "0"
clusterIP
:
clusterIP
:
# The name of ClusterIP service
# The name of ClusterIP service
name
:
harbor
name
:
harbor
...
...
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