Commit e1e04d48 authored by root's avatar root

update

parent 1257e46a
...@@ -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 && \
......
...@@ -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 $name | trunc 63 | trimSuffix "-" -}} {{- printf "%s" .Release.Name | 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" -}}
......
...@@ -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 }}
......
...@@ -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
...@@ -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:
......
...@@ -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 }}
......
...@@ -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 }}
...@@ -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 }}
......
...@@ -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
...@@ -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 }}
......
...@@ -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
...@@ -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 }}
......
...@@ -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
...@@ -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 }}
......
...@@ -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
...@@ -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 }}
......
...@@ -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 }}
......
...@@ -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:
......
...@@ -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
...@@ -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 }}
......
...@@ -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
...@@ -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
...@@ -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 }}
......
...@@ -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 }}
......
...@@ -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
...@@ -3,13 +3,13 @@ expose: ...@@ -3,13 +3,13 @@ expose:
tls: tls:
enabled: false enabled: false
ingress: ingress:
host: harbor.wodcloud.local host: hub.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://harbor.wodcloud.local externalURL: https://hub.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: v2.7.1 tag: 2.7.1
resources: resources:
limits: limits:
memory: 4Gi memory: 4Gi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment