diff --git a/deploy/helm/templates/configmap.yaml b/deploy/helm/templates/configmap.yaml index 0bb18d547b6..11015ed9e71 100644 --- a/deploy/helm/templates/configmap.yaml +++ b/deploy/helm/templates/configmap.yaml @@ -17,6 +17,11 @@ data: # the default storage class name. DEFAULT_STORAGE_CLASS: {{ include "kubeblocks.defaultStorageClass" . | quote }} + {{- with .Values.registryConfig }} + registries: + {{- toYaml . | nindent 6 }} + {{- end }} + --- apiVersion: v1 kind: ConfigMap diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml index d3ac3565739..89b0fe9b278 100644 --- a/deploy/helm/values.yaml +++ b/deploy/helm/values.yaml @@ -314,6 +314,13 @@ dataPlane: values: - "true" +# dynamically replace instance's registry. ref: https://github.com/apecloud/kubeblocks/pull/8018 +# e.g. +# registryConfig: +# defaultRegistry: apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com +# defaultNamespace: apecloud +registryConfig: {} + # Add extra pod labels to KubeBlocks Deployment extraLabels: {}