mirror of
https://github.com/bitnami/charts.git
synced 2026-03-27 15:27:10 +08:00
[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:
@@ -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
|
||||
|
||||
@@ -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` |
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user