mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-19 16:55:16 +01:00
Merge pull request #4769 from draeron/helm/fix-volume
[Chart] Fix registry storage config issue
This commit is contained in:
commit
eedbc830ac
@ -8,17 +8,18 @@ data:
|
|||||||
config.yml: |+
|
config.yml: |+
|
||||||
version: 0.1
|
version: 0.1
|
||||||
log:
|
log:
|
||||||
level: info
|
level: {{ .Values.registry.logLevel }}
|
||||||
fields:
|
fields:
|
||||||
service: registry
|
service: registry
|
||||||
storage:
|
storage:
|
||||||
{{- if .Values.registry.objectStorage }}
|
{{- if .Values.registry.objectStorage }}
|
||||||
{{ toYaml .Values.registry.objectStorage | indent 6 }}
|
{{ toYaml .Values.registry.objectStorage | indent 6 }}
|
||||||
|
{{- else }}
|
||||||
|
filesystem:
|
||||||
|
rootdirectory: /var/lib/registry
|
||||||
{{- end }}
|
{{- end }}
|
||||||
cache:
|
cache:
|
||||||
layerinfo: inmemory
|
layerinfo: inmemory
|
||||||
filesystem:
|
|
||||||
rootdirectory: /var/lib/registry
|
|
||||||
maintenance:
|
maintenance:
|
||||||
uploadpurging:
|
uploadpurging:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@ -35,8 +35,10 @@ spec:
|
|||||||
- containerPort: 5000
|
- containerPort: 5000
|
||||||
- containerPort: 5001
|
- containerPort: 5001
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
{{- if not .Values.registry.objectStorage }}
|
||||||
- name: registry-data
|
- name: registry-data
|
||||||
mountPath: /var/lib/registry
|
mountPath: /var/lib/registry
|
||||||
|
{{- end }}
|
||||||
- name: registry-root-certificate
|
- name: registry-root-certificate
|
||||||
mountPath: /etc/registry/root.crt
|
mountPath: /etc/registry/root.crt
|
||||||
subPath: root.crt
|
subPath: root.crt
|
||||||
@ -44,20 +46,13 @@ spec:
|
|||||||
mountPath: /etc/registry/config.yml
|
mountPath: /etc/registry/config.yml
|
||||||
subPath: config.yml
|
subPath: config.yml
|
||||||
volumes:
|
volumes:
|
||||||
{{- if not .Values.registry.objectStorage }}
|
|
||||||
{{- if not .Values.persistence.enabled }}
|
|
||||||
- name: registry-data
|
|
||||||
emptyDir: {}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
- name: registry-root-certificate
|
- name: registry-root-certificate
|
||||||
secret:
|
secret:
|
||||||
secretName: "{{ template "harbor.fullname" . }}-registry"
|
secretName: "{{ template "harbor.fullname" . }}-registry"
|
||||||
- name: registry-config
|
- name: registry-config
|
||||||
configMap:
|
configMap:
|
||||||
name: "{{ template "harbor.fullname" . }}-registry"
|
name: "{{ template "harbor.fullname" . }}-registry"
|
||||||
{{- if not .Values.registry.objectStorage }}
|
{{- if and (not .Values.registry.objectStorage) .Values.persistence.enabled }}
|
||||||
{{- if .Values.persistence.enabled }}
|
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: "registry-data"
|
name: "registry-data"
|
||||||
@ -76,4 +71,3 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.registry.volumes.data.size | quote }}
|
storage: {{ .Values.registry.volumes.data.size | quote }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
@ -198,7 +198,7 @@ registry:
|
|||||||
tag: v2.6.2-v1.4.0
|
tag: v2.6.2-v1.4.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
httpSecret: not-a-secure-secret
|
httpSecret: not-a-secure-secret
|
||||||
logLevel:
|
logLevel: info
|
||||||
# comment out one of the below to use your cloud's object storage.
|
# comment out one of the below to use your cloud's object storage.
|
||||||
# objectStorage:
|
# objectStorage:
|
||||||
# gcs:
|
# gcs:
|
||||||
|
Loading…
Reference in New Issue
Block a user