diff --git a/charts/sn-platform-slim/templates/bookkeeper/bookkeeper-cluster.yaml b/charts/sn-platform-slim/templates/bookkeeper/bookkeeper-cluster.yaml index e35f8950..08deac0f 100644 --- a/charts/sn-platform-slim/templates/bookkeeper/bookkeeper-cluster.yaml +++ b/charts/sn-platform-slim/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-slim/values.yaml b/charts/sn-platform-slim/values.yaml index 5bf2d1ce..30e1e2d6 100644 --- a/charts/sn-platform-slim/values.yaml +++ b/charts/sn-platform-slim/values.yaml @@ -826,6 +826,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: