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
Show 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
# images
```
bash
```
bash
docker pull goharbor/harbor-ui:dev
&&
\
# harbor-ui
docker tag goharbor/harbor-ui:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:dev
&&
\
docker pull goharbor/harbor-ui:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:dev
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
&&
\
# harbor-adminserver
docker tag goharbor/harbor-adminserver:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:dev
&&
\
docker pull goharbor/harbor-adminserver:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:dev
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
&&
\
# harbor-jobservice
docker tag goharbor/harbor-jobservice:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:dev
&&
\
docker pull goharbor/harbor-jobservice:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:dev
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
&&
\
# harbor-db
docker tag goharbor/harbor-db:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:dev
&&
\
docker pull goharbor/harbor-db:v1.6.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:dev
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
&&
\
# chartmuseum
docker tag goharbor/registry-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/registry-photon:dev
&&
\
docker pull chartmuseum/chartmuseum:v0.7.1
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/registry-photon:dev
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
&&
\
# clair
docker tag goharbor/chartmuseum-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum-photon:dev
&&
\
docker pull quay.io/coreos/clair:v2.0.6
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum-photon:dev
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
&&
\
# notary:server
docker tag goharbor/clair-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/clair-photon:dev
&&
\
docker pull notary:server-0.5.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/clair-photon:dev
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
&&
\
# notary:signer
docker tag goharbor/notary-server-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server-photon:dev
&&
\
docker pull notary:signer-0.5.0
&&
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server-photon:dev
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 pull registry:2.6.2
&&
\
docker tag registry:2.6.2 registry-vpc.cn-qingdao.aliyuncs.com/wod/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
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/registry:2.6.2
# nginx
docker pull nginx:1.15.2-alpine
&&
\
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 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
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/nginx:1.15.2-alpine
# redis
docker pull redis:4.0.1-alpine
&&
\
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 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
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/redis:4.0.1-alpine
```
```
# setup
## overrides
```
powershell
```
bash
# 1.template
cat
/etc/kubernetes/helm/harbor/values-overrides.yaml
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
```
```
```
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
```
bash
docker pull goharbor/harbor-ui:v1.6.0
&&
\
# 1.install
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
docker pull chartmuseum/chartmuseum:v0.7.1
&&
\
# label node
docker tag chartmuseum/chartmuseum:v0.7.1 registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1
&&
\
kubectl label node <nodename> harbor-registry
=
enabled
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1
docker pull quay.io/coreos/clair:v2.0.6
&&
\
helm
install
\
docker tag quay.io/coreos/clair:v2.0.6 registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6
&&
\
/etc/kubernetes/helm/harbor
\
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6
--name
=
harbor
\
--namespace
=
devops
\
-f
/etc/kubernetes/helm/harbor/values-overrides.yaml
docker pull notary:server-0.5.0
&&
\
# uninstall
docker tag notary:server-0.5.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0
&&
\
helm delete harbor
--purge
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0
```
```
\ 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
...
@@ -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.Version | replace "+" "_" }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app: "{{ template "harbor.name" . }}"
{{- end -}}
{{- end -}}
{
{
/*
matchLabels
*/
}
}
{
{
/*
matchLabels
*/
}
}
...
...
templates/adminserver/adminserver-cm.yaml
View file @
b427f691
...
@@ -4,7 +4,7 @@ metadata:
...
@@ -4,7 +4,7 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-adminserver"
name
:
"
{{
template
"harbor.fullname" . }}-adminserver"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
adminserver
app
:
harbor-
adminserver
data
:
data
:
POSTGRESQL_HOST
:
"
{{
template
"harbor.database.host" . }}"
POSTGRESQL_HOST
:
"
{{
template
"harbor.database.host" . }}"
POSTGRESQL_PORT
:
"
{{
template
"harbor.database.port" . }}"
POSTGRESQL_PORT
:
"
{{
template
"harbor.database.port" . }}"
...
...
templates/adminserver/adminserver-secrets.yaml
View file @
b427f691
...
@@ -4,7 +4,7 @@ metadata:
...
@@ -4,7 +4,7 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-adminserver"
name
:
"
{{
template
"harbor.fullname" . }}-adminserver"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
adminserver
app
:
harbor-
adminserver
type
:
Opaque
type
:
Opaque
data
:
data
:
secretKey
:
{{
.Values.secretKey | b64enc | quote
}}
secretKey
:
{{
.Values.secretKey | b64enc | quote
}}
...
...
templates/adminserver/adminserver-ss.yaml
View file @
b427f691
...
@@ -4,19 +4,19 @@ metadata:
...
@@ -4,19 +4,19 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-adminserver"
name
:
"
{{
template
"harbor.fullname" . }}-adminserver"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
adminserver
app
:
harbor-
adminserver
spec
:
spec
:
replicas
:
1
replicas
:
1
serviceName
:
"
{{
template
"harbor.fullname" . }}-adminserver"
serviceName
:
"
{{
template
"harbor.fullname" . }}-adminserver"
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
adminserver
app
:
harbor-
adminserver
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
adminserver
app
:
harbor-
adminserver
spec
:
spec
:
containers
:
containers
:
-
name
:
adminserver
-
name
:
adminserver
...
...
templates/adminserver/adminserver-svc.yaml
View file @
b427f691
...
@@ -8,4 +8,4 @@ spec:
...
@@ -8,4 +8,4 @@ spec:
targetPort
:
8080
targetPort
:
8080
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
adminserver
app
:
harbor-adminserver
\ No newline at end of file
\ No newline at end of file
templates/chartmuseum/chartmuseum-ss.yaml
View file @
b427f691
...
@@ -5,19 +5,19 @@ metadata:
...
@@ -5,19 +5,19 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-chartmuseum"
name
:
"
{{
template
"harbor.fullname" . }}-chartmuseum"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
chartmuseum
app
:
harbor-
chartmuseum
spec
:
spec
:
replicas
:
1
replicas
:
1
serviceName
:
"
{{
template
"harbor.fullname" . }}-chartmuseum"
serviceName
:
"
{{
template
"harbor.fullname" . }}-chartmuseum"
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
chartmuseum
app
:
harbor-
chartmuseum
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
chartmuseum
app
:
harbor-
chartmuseum
spec
:
spec
:
containers
:
containers
:
-
name
:
chartmuseum
-
name
:
chartmuseum
...
...
templates/chartmuseum/chartmuseum-svc.yaml
View file @
b427f691
...
@@ -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
:
harbor-
chartmuseum
{{
- end
}}
{{
- end
}}
\ No newline at end of file
templates/clair/clair-cm.yaml
View file @
b427f691
...
@@ -5,7 +5,7 @@ metadata:
...
@@ -5,7 +5,7 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-clair
name
:
{{
template "harbor.fullname" .
}}
-clair
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
clair
app
:
harbor-
clair
data
:
data
:
config.yaml
:
|
config.yaml
:
|
clair:
clair:
...
...
templates/clair/clair-dpl.yaml
View file @
b427f691
...
@@ -5,18 +5,18 @@ metadata:
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-clair
name
:
{{
template "harbor.fullname" .
}}
-clair
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
clair
app
:
harbor-
clair
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
clair
app
:
harbor-
clair
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
clair
app
:
harbor-
clair
spec
:
spec
:
containers
:
containers
:
-
name
:
clair
-
name
:
clair
...
...
templates/clair/clair-svc.yaml
View file @
b427f691
...
@@ -13,5 +13,5 @@ spec:
...
@@ -13,5 +13,5 @@ spec:
-
port
:
6060
-
port
:
6060
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
clair
app
:
harbor-
clair
{{
end
}}
{{
end
}}
templates/database/database-ss.yaml
View file @
b427f691
...
@@ -5,19 +5,19 @@ metadata:
...
@@ -5,19 +5,19 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-database"
name
:
"
{{
template
"harbor.fullname" . }}-database"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
database
app
:
harbor-
database
spec
:
spec
:
replicas
:
1
replicas
:
1
serviceName
:
"
{{
template
"harbor.fullname" . }}-database"
serviceName
:
"
{{
template
"harbor.fullname" . }}-database"
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
database
app
:
harbor-
database
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
database
app
:
harbor-
database
spec
:
spec
:
initContainers
:
initContainers
:
-
name
:
"
remove-lost-found"
-
name
:
"
remove-lost-found"
...
...
templates/database/database-svc.yaml
View file @
b427f691
...
@@ -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
:
harbor-
database
{{
- end -
}}
{{
- end -
}}
\ No newline at end of file
templates/jobservice/jobservice-dpl.yaml
View file @
b427f691
...
@@ -4,18 +4,18 @@ metadata:
...
@@ -4,18 +4,18 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-jobservice"
name
:
"
{{
template
"harbor.fullname" . }}-jobservice"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
jobservice
app
:
harbor-
jobservice
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
jobservice
app
:
harbor-
jobservice
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
jobservice
app
:
harbor-
jobservice
spec
:
spec
:
containers
:
containers
:
-
name
:
jobservice
-
name
:
jobservice
...
...
templates/jobservice/jobservice-svc.yaml
View file @
b427f691
...
@@ -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
:
harbor-
jobservice
templates/notary/notary-cm.yaml
View file @
b427f691
...
@@ -5,7 +5,7 @@ metadata:
...
@@ -5,7 +5,7 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-notary
name
:
{{
template "harbor.fullname" .
}}
-notary
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
notary
app
:
harbor-
notary
data
:
data
:
{{
$ca
:
= genCA "harbor-notary-ca" 3650
}}
{{
$ca
:
= genCA "harbor-notary-ca" 3650
}}
{{
$cert
:
= genSignedCert (printf "%s-notary-signer" (include "harbor.fullname" .)) nil nil 3650 $ca
}}
{{
$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:
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-notary-server
name
:
{{
template "harbor.fullname" .
}}
-notary-server
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
notary-server
app
:
harbor-
notary-server
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
notary-server
app
:
harbor-
notary-server
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
notary-server
app
:
harbor-
notary-server
spec
:
spec
:
containers
:
containers
:
-
name
:
notary-server
-
name
:
notary-server
...
...
templates/notary/notary-signer.yaml
View file @
b427f691
...
@@ -5,18 +5,18 @@ metadata:
...
@@ -5,18 +5,18 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-notary-signer
name
:
{{
template "harbor.fullname" .
}}
-notary-signer
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
notary-signer
app
:
harbor-
notary-signer
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
notary-signer
app
:
harbor-
notary-signer
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
notary-signer
app
:
harbor-
notary-signer
spec
:
spec
:
containers
:
containers
:
-
name
:
notary-signer
-
name
:
notary-signer
...
...
templates/notary/notary-svc.yaml
View file @
b427f691
...
@@ -10,7 +10,7 @@ spec:
...
@@ -10,7 +10,7 @@ spec:
-
port
:
4443
-
port
:
4443
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
notary-server
app
:
harbor-
notary-server
---
---
apiVersion
:
v1
apiVersion
:
v1
...
@@ -24,5 +24,5 @@ spec:
...
@@ -24,5 +24,5 @@ spec:
-
port
:
7899
-
port
:
7899
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
notary-signer
app
:
harbor-
notary-signer
{{
end
}}
{{
end
}}
\ No newline at end of file
templates/redis/redis.dp.yml
View file @
b427f691
...
@@ -5,14 +5,14 @@ metadata:
...
@@ -5,14 +5,14 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-redis
name
:
{{
template "harbor.fullname" .
}}
-redis
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
redis
app
:
harbor-
redis
spec
:
spec
:
replicas
:
1
replicas
:
1
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
redis
app
:
harbor-
redis
spec
:
spec
:
containers
:
containers
:
-
name
:
redis
-
name
:
redis
...
...
templates/redis/redis.svc.yml
View file @
b427f691
...
@@ -5,11 +5,11 @@ metadata:
...
@@ -5,11 +5,11 @@ metadata:
name
:
{{
template "harbor.fullname" .
}}
-redis
name
:
{{
template "harbor.fullname" .
}}
-redis
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
redis
app
:
harbor-
redis
spec
:
spec
:
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
redis
app
:
harbor-
redis
ports
:
ports
:
-
name
:
redis
-
name
:
redis
port
:
6379
port
:
6379
\ No newline at end of file
templates/registry/registry-ss.yaml
View file @
b427f691
...
@@ -4,19 +4,19 @@ metadata:
...
@@ -4,19 +4,19 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-registry"
name
:
"
{{
template
"harbor.fullname" . }}-registry"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
registry
app
:
harbor-
registry
spec
:
spec
:
replicas
:
1
replicas
:
1
serviceName
:
"
{{
template
"harbor.fullname" . }}-registry"
serviceName
:
"
{{
template
"harbor.fullname" . }}-registry"
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
include "harbor.matchLabels" . | indent 6
}}
{{
include "harbor.matchLabels" . | indent 6
}}
component
:
registry
app
:
harbor-
registry
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.labels" . | indent 8
}}
{{
include "harbor.labels" . | indent 8
}}
component
:
registry
app
:
harbor-
registry
spec
:
spec
:
containers
:
containers
:
-
name
:
registry
-
name
:
registry
...
...
templates/registry/registry-svc.yaml
View file @
b427f691
...
@@ -9,4 +9,4 @@ spec:
...
@@ -9,4 +9,4 @@ spec:
-
port
:
5000
-
port
:
5000
selector
:
selector
:
{{
include "harbor.matchLabels" . | indent 4
}}
{{
include "harbor.matchLabels" . | indent 4
}}
component
:
registry
app
:
harbor-registry
\ No newline at end of file
\ No newline at end of file
templates/ui/ui-dpl.yaml
View file @
b427f691
...
@@ -4,14 +4,14 @@ metadata:
...
@@ -4,14 +4,14 @@ metadata:
name
:
"
{{
template
"harbor.fullname" . }}-ui"
name
:
"
{{
template
"harbor.fullname" . }}-ui"
labels
:
labels
:
{{
include "harbor.labels" . | indent 4
}}
{{
include "harbor.labels" . | indent 4
}}
component
:
ui
app
:
harbor-
ui
spec
:
spec
:
replicas
:
1
replicas
:
1
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
include "harbor.matchLabels" . | indent 8
}}
{{
include "harbor.matchLabels" . | indent 8
}}
component
:
ui
app
:
harbor-
ui
spec
:
spec
:
containers
:
containers
:
-
name
:
ui
-
name
:
ui
...
...
templates/ui/ui-svc.yaml
View file @
b427f691
...
@@ -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
:
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