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
b427f691
Commit
b427f691
authored
Oct 18, 2018
by
舒成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bef88d4a
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
195 additions
and
105 deletions
+195
-105
readme.md
readme.md
+152
-61
templates/_helpers.tpl
templates/_helpers.tpl
+0
-1
templates/adminserver/adminserver-cm.yaml
templates/adminserver/adminserver-cm.yaml
+1
-1
templates/adminserver/adminserver-secrets.yaml
templates/adminserver/adminserver-secrets.yaml
+1
-1
templates/adminserver/adminserver-ss.yaml
templates/adminserver/adminserver-ss.yaml
+3
-3
templates/adminserver/adminserver-svc.yaml
templates/adminserver/adminserver-svc.yaml
+1
-1
templates/chartmuseum/chartmuseum-ss.yaml
templates/chartmuseum/chartmuseum-ss.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/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/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/redis/redis.dp.yml
templates/redis/redis.dp.yml
+2
-2
templates/redis/redis.svc.yml
templates/redis/redis.svc.yml
+2
-2
templates/registry/registry-ss.yaml
templates/registry/registry-ss.yaml
+3
-3
templates/registry/registry-svc.yaml
templates/registry/registry-svc.yaml
+1
-1
templates/ui/ui-dpl.yaml
templates/ui/ui-dpl.yaml
+2
-2
templates/ui/ui-svc.yaml
templates/ui/ui-svc.yaml
+1
-1
No files found.
readme.md
View file @
b427f691
# images
```
bash
docker pull goharbor/harbor-ui:dev
&&
\
docker tag goharbor/harbor-ui:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:dev
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:dev
# harbor-ui
docker pull goharbor/harbor-ui:v1.6.0
&&
\
docker tag goharbor/harbor-ui:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:v1.6.0
docker pull goharbor/harbor-adminserver:dev
&&
\
docker tag goharbor/harbor-adminserver:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:dev
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:dev
# harbor-adminserver
docker pull goharbor/harbor-adminserver:v1.6.0
&&
\
docker tag goharbor/harbor-adminserver:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:v1.6.0
docker pull goharbor/harbor-jobservice:dev
&&
\
docker tag goharbor/harbor-jobservice:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:dev
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:dev
# harbor-jobservice
docker pull goharbor/harbor-jobservice:v1.6.0
&&
\
docker tag goharbor/harbor-jobservice:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.6.0
docker pull goharbor/harbor-db:dev
&&
\
docker tag goharbor/harbor-db:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:dev
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:dev
# harbor-db
docker pull goharbor/harbor-db:v1.6.0
&&
\
docker tag goharbor/harbor-db:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:v1.6.0
docker pull goharbor/registry-photon:dev
&&
\
docker tag goharbor/registry-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/registry-photon:dev
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/registry-photon:dev
# chartmuseum
docker pull chartmuseum/chartmuseum:v0.7.1
&&
\
docker tag chartmuseum/chartmuseum:v0.7.1 registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1
docker pull goharbor/chartmuseum-photon:dev
&&
\
docker tag goharbor/chartmuseum-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum-photon:dev
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum-photon:dev
# clair
docker pull quay.io/coreos/clair:v2.0.6
&&
\
docker tag quay.io/coreos/clair:v2.0.6 registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6
docker pull goharbor/clair-photon:dev
&&
\
docker tag goharbor/clair-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/clair-photon:dev
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/clair-photon:dev
# notary:server
docker pull notary:server-0.5.0
&&
\
docker tag notary:server-0.5.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0
docker pull goharbor/notary-server-photon:dev
&&
\
docker tag goharbor/notary-server-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server-photon:dev
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server-photon:dev
# notary:signer
docker pull notary:signer-0.5.0
&&
\
docker tag notary:signer-0.5.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-signer:0.5.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-signer:0.5.0
# registry
docker pull registry:2.6.2
&&
\
docker tag registry:2.6.2 registry-vpc.cn-qingdao.aliyuncs.com/wod/registry:2.6.2
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/registry:2.6.2
# nginx
docker pull nginx:1.15.2-alpine
&&
\
docker tag nginx:1.15.2-alpine registry-vpc.cn-qingdao.aliyuncs.com/wod/nginx:1.15.2-alpine
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/nginx:1.15.2-alpine
# redis
docker pull redis:4.0.1-alpine
&&
\
docker tag redis:4.0.1-alpine registry-vpc.cn-qingdao.aliyuncs.com/wod/redis:4.0.1-alpine
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/redis:4.0.1-alpine
```
# setup
```
powershell
# 1.template
cd
/etc/kubernetes/helm/harbor
&&
helm
template
.
--name
harbor
--namespace
devops
>
.
/dist/harbor.yaml
# 2.helm install
helm
install
/etc/kubernetes/helm/harbor
\
--name
harbor
\
--namespace
devops
\
--set
harborAdminPassword
=
spaceIN511
\
--set
nodeSelector.kubernetes\.io/hostname
=
172.31.14.41
\
--set
externalDomain
=
harbor.wodcloud.com
## overrides
```
bash
cat
/etc/kubernetes/helm/harbor/values-overrides.yaml
```
```
yaml
persistence
:
enabled
:
true
externalProtocol
:
https
externalDomain
:
harbor.wodcloud.local
harborAdminPassword
:
"
58772015"
ingress
:
enabled
:
true
adminserver
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/harbor-adminserver
tag
:
v1.6.0
volumes
:
config
:
storageClass
:
"
storageos"
accessMode
:
ReadWriteOnce
size
:
1Gi
jobservice
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/harbor-jobservice
tag
:
v1.6.0
ui
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/harbor-ui
tag
:
v1.6.0
busybox
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/busybox
tag
:
1.29
database
:
internal
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/harbor-db
tag
:
v1.6.0
password
:
"
spaceIN511"
volumes
:
data
:
storageClass
:
"
storageos"
accessMode
:
ReadWriteOnce
size
:
1Gi
registry
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/registry
tag
:
2.6.2
volumes
:
data
:
# storageClass: "-"
accessMode
:
ReadWriteOnce
size
:
5Gi
nodeSelector
:
harbor-registry
:
enabled
chartmuseum
:
enabled
:
true
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/chartmuseum
tag
:
v0.7.1
volumes
:
data
:
storageClass
:
"
storageos"
accessMode
:
ReadWriteOnce
size
:
5Gi
clair
:
enabled
:
true
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/clair
tag
:
v2.0.6
volumes
:
pgData
:
storageClass
:
"
storageos"
accessMode
:
ReadWriteOnce
size
:
1Gi
redis
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/redis
tag
:
4.0.1-alpine
usePassword
:
false
cluster
:
enabled
:
false
master
:
persistence
:
enabled
:
false
notary
:
enabled
:
true
server
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/notary-server
tag
:
0.5.0
signer
:
image
:
repository
:
registry.cn-qingdao.aliyuncs.com/wod/notary-signer
tag
:
0.5.0
```
#
images
#
# setup
```
bash
docker pull goharbor/harbor-ui:v1.6.0
&&
\
docker tag goharbor/harbor-ui:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:v1.6.0
docker pull goharbor/harbor-adminserver:v1.6.0
&&
\
docker tag goharbor/harbor-adminserver:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:v1.6.0
docker pull goharbor/harbor-jobservice:v1.6.0
&&
\
docker tag goharbor/harbor-jobservice:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.6.0
docker pull goharbor/harbor-db:v1.6.0
&&
\
docker tag goharbor/harbor-db:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:v1.6.0
# 1.install
docker pull chartmuseum/chartmuseum:v0.7.1
&&
\
docker tag chartmuseum/chartmuseum:v0.7.1 registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1
# label node
kubectl label node <nodename> harbor-registry
=
enabled
docker pull quay.io/coreos/clair:v2.0.6
&&
\
docker tag quay.io/coreos/clair:v2.0.6 registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6
helm
install
\
/etc/kubernetes/helm/harbor
\
--name
=
harbor
\
--namespace
=
devops
\
-f
/etc/kubernetes/helm/harbor/values-overrides.yaml
docker pull notary:server-0.5.0
&&
\
docker tag notary:server-0.5.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0
# uninstall
helm delete harbor
--purge
```
\ No newline at end of file
templates/_helpers.tpl
View file @
b427f691
...
...
@@ -21,7 +21,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app: "{{ template "harbor.name" . }}"
{{- end -}}
{
{
/*
matchLabels
*/
}
}
...
...
templates/adminserver/adminserver-cm.yaml
View file @
b427f691
...
...
@@ -4,7 +4,7 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-adminserver"
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
adminserver
app
:
harbor-
adminserver
data
:
POSTGRESQL_HOST
:
"
{{
template
"harbor.database.host" . }}"
POSTGRESQL_PORT
:
"
{{
template
"harbor.database.port" . }}"
...
...
templates/adminserver/adminserver-secrets.yaml
View file @
b427f691
...
...
@@ -4,7 +4,7 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-adminserver"
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
adminserver
app
:
harbor-
adminserver
type
:
Opaque
data
:
secretKey
:
{{
.Values.secretKey | b64enc | quote
}}
...
...
templates/adminserver/adminserver-ss.yaml
View file @
b427f691
...
...
@@ -4,19 +4,19 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-adminserver"
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
adminserver
app
:
harbor-
adminserver
spec
:
replicas
:
1
serviceName
:
"
{{
template
"harbor.fullname" . }}-adminserver"
selector
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
adminserver
app
:
harbor-
adminserver
template
:
metadata
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
component
:
adminserver
app
:
harbor-
adminserver
spec
:
containers
:
-
name
:
adminserver
...
...
templates/adminserver/adminserver-svc.yaml
View file @
b427f691
...
...
@@ -8,4 +8,4 @@ spec:
targetPort
:
8080
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
adminserver
\ No newline at end of file
app
:
harbor-adminserver
\ No newline at end of file
templates/chartmuseum/chartmuseum-ss.yaml
View file @
b427f691
...
...
@@ -5,19 +5,19 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-chartmuseum"
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
chartmuseum
app
:
harbor-
chartmuseum
spec
:
replicas
:
1
serviceName
:
"
{{
template
"harbor.fullname" . }}-chartmuseum"
selector
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
chartmuseum
app
:
harbor-
chartmuseum
template
:
metadata
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
component
:
chartmuseum
app
:
harbor-
chartmuseum
spec
:
containers
:
-
name
:
chartmuseum
...
...
templates/chartmuseum/chartmuseum-svc.yaml
View file @
b427f691
...
...
@@ -11,5 +11,5 @@ spec:
targetPort
:
9999
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
chartmuseum
app
:
harbor-
chartmuseum
{{
- end
}}
\ No newline at end of file
templates/clair/clair-cm.yaml
View file @
b427f691
...
...
@@ -5,7 +5,7 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-clair
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
clair
app
:
harbor-
clair
data
:
config.yaml
:
|
clair:
...
...
templates/clair/clair-dpl.yaml
View file @
b427f691
...
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-clair
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
clair
app
:
harbor-
clair
spec
:
replicas
:
1
selector
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
clair
app
:
harbor-
clair
template
:
metadata
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
component
:
clair
app
:
harbor-
clair
spec
:
containers
:
-
name
:
clair
...
...
templates/clair/clair-svc.yaml
View file @
b427f691
...
...
@@ -13,5 +13,5 @@ spec:
-
port
:
6060
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
clair
app
:
harbor-
clair
{{
end
}}
templates/database/database-ss.yaml
View file @
b427f691
...
...
@@ -5,19 +5,19 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-database"
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
database
app
:
harbor-
database
spec
:
replicas
:
1
serviceName
:
"
{{
template
"harbor.fullname" . }}-database"
selector
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
database
app
:
harbor-
database
template
:
metadata
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
component
:
database
app
:
harbor-
database
spec
:
initContainers
:
-
name
:
"
remove-lost-found"
...
...
templates/database/database-svc.yaml
View file @
b427f691
...
...
@@ -10,5 +10,5 @@ spec:
-
port
:
5432
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
database
app
:
harbor-
database
{{
- end -
}}
\ No newline at end of file
templates/jobservice/jobservice-dpl.yaml
View file @
b427f691
...
...
@@ -4,18 +4,18 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-jobservice"
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
jobservice
app
:
harbor-
jobservice
spec
:
replicas
:
1
selector
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
jobservice
app
:
harbor-
jobservice
template
:
metadata
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
component
:
jobservice
app
:
harbor-
jobservice
spec
:
containers
:
-
name
:
jobservice
...
...
templates/jobservice/jobservice-svc.yaml
View file @
b427f691
...
...
@@ -10,4 +10,4 @@ spec:
targetPort
:
8080
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
jobservice
app
:
harbor-
jobservice
templates/notary/notary-cm.yaml
View file @
b427f691
...
...
@@ -5,7 +5,7 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-notary
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
notary
app
:
harbor-
notary
data
:
{{
$ca
:
= genCA "harbor-notary-ca" 3650
}}
{{
$cert
:
= genSignedCert (printf "%s-notary-signer" (include "harbor.fullname" .)) nil nil 3650 $ca
}}
...
...
templates/notary/notary-server.yaml
View file @
b427f691
...
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-notary-server
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
notary-server
app
:
harbor-
notary-server
spec
:
replicas
:
1
selector
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
notary-server
app
:
harbor-
notary-server
template
:
metadata
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
component
:
notary-server
app
:
harbor-
notary-server
spec
:
containers
:
-
name
:
notary-server
...
...
templates/notary/notary-signer.yaml
View file @
b427f691
...
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-notary-signer
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
notary-signer
app
:
harbor-
notary-signer
spec
:
replicas
:
1
selector
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
notary-signer
app
:
harbor-
notary-signer
template
:
metadata
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
component
:
notary-signer
app
:
harbor-
notary-signer
spec
:
containers
:
-
name
:
notary-signer
...
...
templates/notary/notary-svc.yaml
View file @
b427f691
...
...
@@ -10,7 +10,7 @@ spec:
-
port
:
4443
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
notary-server
app
:
harbor-
notary-server
---
apiVersion
:
v1
...
...
@@ -24,5 +24,5 @@ spec:
-
port
:
7899
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
notary-signer
app
:
harbor-
notary-signer
{{
end
}}
\ No newline at end of file
templates/redis/redis.dp.yml
View file @
b427f691
...
...
@@ -5,14 +5,14 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-redis
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
redis
app
:
harbor-
redis
spec
:
replicas
:
1
template
:
metadata
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
component
:
redis
app
:
harbor-
redis
spec
:
containers
:
-
name
:
redis
...
...
templates/redis/redis.svc.yml
View file @
b427f691
...
...
@@ -5,11 +5,11 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-redis
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
redis
app
:
harbor-
redis
spec
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
redis
app
:
harbor-
redis
ports
:
-
name
:
redis
port
:
6379
\ No newline at end of file
templates/registry/registry-ss.yaml
View file @
b427f691
...
...
@@ -4,19 +4,19 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-registry"
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
registry
app
:
harbor-
registry
spec
:
replicas
:
1
serviceName
:
"
{{
template
"harbor.fullname" . }}-registry"
selector
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
registry
app
:
harbor-
registry
template
:
metadata
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
component
:
registry
app
:
harbor-
registry
spec
:
containers
:
-
name
:
registry
...
...
templates/registry/registry-svc.yaml
View file @
b427f691
...
...
@@ -9,4 +9,4 @@ spec:
-
port
:
5000
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
registry
\ No newline at end of file
app
:
harbor-registry
\ No newline at end of file
templates/ui/ui-dpl.yaml
View file @
b427f691
...
...
@@ -4,14 +4,14 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-ui"
labels
:
{{
include "harbor.labels" . | indent 4
}}
component
:
ui
app
:
harbor-
ui
spec
:
replicas
:
1
template
:
metadata
:
labels
:
{{
include "harbor.matchLabels" . | indent 8
}}
component
:
ui
app
:
harbor-
ui
spec
:
containers
:
-
name
:
ui
...
...
templates/ui/ui-svc.yaml
View file @
b427f691
...
...
@@ -10,4 +10,4 @@ spec:
targetPort
:
8080
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
ui
app
:
harbor-
ui
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