[bitnami/clickhouse] Add distributeReplicasByZone parameter (#18948)

* Add distibuteReplicasByZone param

Signed-off-by: Ivan Panteleev <ispanteleev@gmail.com>

* Bump chart version

Signed-off-by: Ivan Panteleev <ispanteleev@gmail.com>

* typo fix

Signed-off-by: Ivan Panteleev <ispanteleev@gmail.com>

* Update chart version

Co-authored-by: Fran Mulero <fmulero@vmware.com>
Signed-off-by: Ivan Panteleev <amalgamm@users.noreply.github.com>

---------

Signed-off-by: Ivan Panteleev <ispanteleev@gmail.com>
Signed-off-by: Ivan Panteleev <amalgamm@users.noreply.github.com>
Co-authored-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Ivan Panteleev
2023-09-04 14:06:17 +03:00
committed by GitHub
parent 5c7fed5125
commit 351cb28f94
4 changed files with 7 additions and 2 deletions

View File

@@ -33,4 +33,4 @@ maintainers:
name: clickhouse
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/clickhouse
version: 3.7.2
version: 3.8.0

View File

@@ -98,6 +98,7 @@ The command removes all the Kubernetes components associated with the chart and
| `image.debug` | Enable ClickHouse image debug mode | `false` |
| `shards` | Number of ClickHouse shards to deploy | `2` |
| `replicaCount` | Number of ClickHouse replicas per shard to deploy | `3` |
| `distributeReplicasByZone` | Schedules replicas of the same shard to different availability zones | `false` |
| `containerPorts.http` | ClickHouse HTTP container port | `8123` |
| `containerPorts.https` | ClickHouse HTTPS container port | `8443` |
| `containerPorts.tcp` | ClickHouse TCP container port | `9000` |

View File

@@ -52,7 +52,7 @@ spec:
{{- else }}
affinity:
podAffinity: {{- include "common.affinities.pods" (dict "type" $.Values.podAffinityPreset "component" "clickhouse" "customLabels" $podLabels "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" $.Values.podAntiAffinityPreset "component" "clickhouse" "customLabels" $podLabels "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" $.Values.podAntiAffinityPreset "component" "clickhouse" "customLabels" $podLabels "extraPodAffinityTerms" (ternary (list (dict "extraMatchLabels" (dict "shard" $i) "topologyKey" "topology.kubernetes.io/zone")) (list) $.Values.distributeReplicasByZone) "context" $) | nindent 10 }}
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" $.Values.nodeAffinityPreset.type "key" $.Values.nodeAffinityPreset.key "values" $.Values.nodeAffinityPreset.values) | nindent 10 }}
{{- end }}
{{- if $.Values.nodeSelector }}

View File

@@ -105,6 +105,10 @@ shards: 2
## if keeper enable, same as keeper count, keeper cluster by shards.
##
replicaCount: 3
## @param distributeReplicasByZone Schedules replicas of the same shard to different availability zones
##
distributeReplicasByZone: false
## @param containerPorts.http ClickHouse HTTP container port
## @param containerPorts.https ClickHouse HTTPS container port
## @param containerPorts.tcp ClickHouse TCP container port