diff --git a/templates/registry/registry-ss.yaml b/templates/registry/registry-ss.yaml index e14925d2e2e919be754c60a4a9234f5495d06834..ec289b72abec5e72ec25f8863c3772b9d3eee458 100644 --- a/templates/registry/registry-ss.yaml +++ b/templates/registry/registry-ss.yaml @@ -136,7 +136,7 @@ spec: {{- if .Values.registry.storageSpec.hostPath }} - name: data hostPath: - path: /{{.Values.registry.storageSpec.hostPath.root | default "data" | quote}}/{{ .Release.Namespace }}/{{ .Release.Name }}/database + path: {{.Values.registry.storageSpec.hostPath.root | default "/data" | quote}}/{{ .Release.Namespace }}/{{ .Release.Name }}/database {{- else if .Values.registry.storageSpec.emptyDir }} - name: data emptyDir: {} diff --git a/values-aliyun.yaml b/values-aliyun.yaml index 3fbea152ca2507d5d6b349670bb4d8e15cfd1465..88f9fa97cd7f194e83da637c84a4c6c0e8f0ce2f 100644 --- a/values-aliyun.yaml +++ b/values-aliyun.yaml @@ -137,9 +137,9 @@ database: nodeSelector: harbor: enabled storageSpec: + root: /data # 不用hostPath,则注释 - hostPath: - root: /data + hostPath: true volumeClaimTemplate: spec: storageClassName: rook-ceph-block