Skip to content

Commit

Permalink
fix zones config
Browse files Browse the repository at this point in the history
  • Loading branch information
joshleecreates committed Sep 30, 2024
1 parent 2fa81f4 commit 7d45a4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/clickhouse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: clickhouse
description: A Helm chart for creating a ClickHouse Cluster with the Altinity Operator for ClickHouse
type: application
version: 0.1.4
version: 0.1.5
appVersion: "23.8.8.21"

dependencies:
Expand Down
4 changes: 3 additions & 1 deletion charts/clickhouse/examples/values-production.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
clickhouse:
antiAffinity: true
zones:
- us-west-1a
- us-west-2a
- us-west-2b
nodeSelector:
node.kubernetes.io/instance-type: "m6i.large"

keeper:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions charts/clickhouse/templates/chit-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ spec:
podTemplates:
- name: {{ include "clickhouse.podTemplateName" . }}
{{ include "clickhouse.podTemplateBase" . }}
{{- if not (empty .Values.zones) -}}
{{- if not (empty .Values.clickhouse.zones) -}}
{{- $originalContext := . -}}
{{- range .Values.zones }}
{{- range .Values.clickhouse.zones }}
- name: {{ include "clickhouse.podTemplateName" $originalContext }}-{{ . }}
{{ include "clickhouse.podTemplateBase" $originalContext }}
zone:
Expand Down

0 comments on commit 7d45a4d

Please sign in to comment.