diff --git a/charts/sn-platform/templates/bookkeeper/bookkeeper-cluster.yaml b/charts/sn-platform/templates/bookkeeper/bookkeeper-cluster.yaml index 8f1c1b40..0c1057c8 100644 --- a/charts/sn-platform/templates/bookkeeper/bookkeeper-cluster.yaml +++ b/charts/sn-platform/templates/bookkeeper/bookkeeper-cluster.yaml @@ -151,6 +151,10 @@ spec: reclaimPolicy: {{ .Values.bookkeeper.volumes.reclaimPolicy | default "Delete" }} {{- end }} config: + {{- with .Values.bookkeeper.rackAwareTopologyLabels }} + rackAwareTopologyLabels: + {{- toYaml . | nindent 4 }} + {{- end }} custom: {{- with .Values.bookkeeper.custom }} {{ toYaml . | indent 6 }} diff --git a/charts/sn-platform/values.yaml b/charts/sn-platform/values.yaml index f1b49c36..f3c7700d 100644 --- a/charts/sn-platform/values.yaml +++ b/charts/sn-platform/values.yaml @@ -901,6 +901,10 @@ bookkeeper: # preferredDuringSchedulingIgnoredDuringExecution - scheduler will try to enforce but not guranentee type: preferredDuringSchedulingIgnoredDuringExecution topologySpreadConstraints: [] + # For BookKeeperCluster, the field rackAwareTopologyLabels should be configured as nodes topology labels the value of which will be set as the rack name. + # When there are multiple labels configured, all their values will be joined by "/". + # The operator will propagate the label value from nodes to pods and ensure the pod container starts with the label values as environment variables automatically. + rackAwareTopologyLabels: [] labels: {} annotations: {} securityContext: