Skip to content

Commit

Permalink
fix for clickhouse loadbalancer
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaka committed Sep 11, 2024
1 parent 77996fe commit 080810e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deployment/helm_chart/opik/templates/clickhouseinstallation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ metadata:
component: clickhouse
{{- include "opik.labels" $ | nindent 4 }}
spec:
defaults:
templates:
podTemplate: clickhouse-cluster-pod-template
serviceTemplate: {{ .Values.clickhouse.service.serviceTemplate }}
volumeClaimTemplate: storage-vc-template
configuration:
users:
# TODO change for local
{{- if .Values.clickhouse.adminUser.useSecret.enabled }}
{{ .Values.clickhouse.adminUser.username }}/k8s_secret_password: {{ include "opik.name" .}}-{{ .Values.clickhouse.adminUser.secretname }}/{{ .Values.clickhouse.adminUser.password_key }}
{{- else }}
Expand All @@ -31,12 +35,12 @@ spec:
shardsCount: {{ .Values.clickhouse.shardsCount }}
replicasCount: {{ .Values.clickhouse.replicasCount }}
templates:
podTemplate: clickhouse-stable
podTemplate: clickhouse-cluster-pod-template
serviceTemplate: {{ .Values.clickhouse.service.serviceTemplate }}
volumeClaimTemplate: storage-vc-template
templates:
podTemplates:
- name: clickhouse-stable
- name: clickhouse-cluster-pod-template
spec:
containers:
- name: clickhouse
Expand Down Expand Up @@ -71,8 +75,10 @@ spec:
ports:
- name: http
port: 8123
targetPort: 8123
- name: tcp
port: 9000
targetPort: 9000
type: LoadBalancer

volumeClaimTemplates:
Expand All @@ -86,9 +92,3 @@ spec:
resources:
requests:
storage: {{ .Values.clickhouse.storage }}

defaults:
templates:
podTemplate: clickhouse-cluster-pod-template
serviceTemplate: clickhouse-cluster-svc-template

0 comments on commit 080810e

Please sign in to comment.