From 080810e5010d2efce8bad0ab14cc160a57f60890 Mon Sep 17 00:00:00 2001 From: liyaka Date: Wed, 11 Sep 2024 16:40:46 +0300 Subject: [PATCH 1/3] fix for clickhouse loadbalancer --- .../opik/templates/clickhouseinstallation.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/deployment/helm_chart/opik/templates/clickhouseinstallation.yaml b/deployment/helm_chart/opik/templates/clickhouseinstallation.yaml index 93aff412de..a96767e968 100644 --- a/deployment/helm_chart/opik/templates/clickhouseinstallation.yaml +++ b/deployment/helm_chart/opik/templates/clickhouseinstallation.yaml @@ -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 }} @@ -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 @@ -71,8 +75,10 @@ spec: ports: - name: http port: 8123 + targetPort: 8123 - name: tcp port: 9000 + targetPort: 9000 type: LoadBalancer volumeClaimTemplates: @@ -86,9 +92,3 @@ spec: resources: requests: storage: {{ .Values.clickhouse.storage }} - - defaults: - templates: - podTemplate: clickhouse-cluster-pod-template - serviceTemplate: clickhouse-cluster-svc-template - From fd7800a1b183e1464c1cf9daa38ccf71e8266621 Mon Sep 17 00:00:00 2001 From: liyaka Date: Wed, 11 Sep 2024 16:45:17 +0300 Subject: [PATCH 2/3] small helm docs update --- deployment/helm_chart/opik/README.md.gotmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deployment/helm_chart/opik/README.md.gotmpl b/deployment/helm_chart/opik/README.md.gotmpl index b5853a7d26..5c0ed69fa8 100644 --- a/deployment/helm_chart/opik/README.md.gotmpl +++ b/deployment/helm_chart/opik/README.md.gotmpl @@ -58,9 +58,7 @@ helm repo add bitnami https://charts.bitnami.com/bitnami helm dependency build VERSION=0.1.0 helm upgrade --install opik -n opik --create-namespace -f values.yaml \ - --set component.backend.image.tag=$VERSION --set component.frontend.image.tag=$VERSION \ - --set component.backend.env.ANALYTICS_DB_MIGRATIONS_PASS=opik --set component.backend.env.ANALYTICS_DB_PASS=opik \ - --set component.backend.env.STATE_DB_PASS=opik + --set component.backend.image.tag=$VERSION --set component.frontend.image.tag=$VERSION ``` ## Open application From 451b79c60aab214a24f8f47db822583879ebb05b Mon Sep 17 00:00:00 2001 From: CometActions Date: Wed, 11 Sep 2024 13:48:43 +0000 Subject: [PATCH 3/3] Update Helm documentation --- deployment/helm_chart/opik/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deployment/helm_chart/opik/README.md b/deployment/helm_chart/opik/README.md index ba684e857c..da595e8f76 100644 --- a/deployment/helm_chart/opik/README.md +++ b/deployment/helm_chart/opik/README.md @@ -58,9 +58,7 @@ helm repo add bitnami https://charts.bitnami.com/bitnami helm dependency build VERSION=0.1.0 helm upgrade --install opik -n opik --create-namespace -f values.yaml \ - --set component.backend.image.tag=$VERSION --set component.frontend.image.tag=$VERSION \ - --set component.backend.env.ANALYTICS_DB_MIGRATIONS_PASS=opik --set component.backend.env.ANALYTICS_DB_PASS=opik \ - --set component.backend.env.STATE_DB_PASS=opik + --set component.backend.image.tag=$VERSION --set component.frontend.image.tag=$VERSION ``` ## Open application