diff --git a/helm/huly/templates/configmap.yaml b/helm/huly/templates/configmap.yaml index 8c143b2..9806d2a 100644 --- a/helm/huly/templates/configmap.yaml +++ b/helm/huly/templates/configmap.yaml @@ -53,6 +53,13 @@ data: GITHUB_URL: "{{ $proto }}://{{ .Values.domain }}/_github" {{- end }} + {{- if .Values.observability.otlpEndpoint }} + OTEL_EXPORTER_OTLP_ENDPOINT: {{ .Values.observability.otlpEndpoint | quote }} + {{- end }} + {{- if .Values.observability.otlpHeaders }} + OTEL_EXPORTER_OTLP_HEADERS: {{ .Values.observability.otlpHeaders | quote }} + {{- end }} + {{- if .Values.aibot.enabled }} AI_URL: "{{ $proto }}://{{ .Values.domain }}/_aibot" AI_BOT_URL: "http://aibot:4010" diff --git a/helm/huly/templates/fulltext/deployment.yaml b/helm/huly/templates/fulltext/deployment.yaml index e98e1e8..6741cc7 100644 --- a/helm/huly/templates/fulltext/deployment.yaml +++ b/helm/huly/templates/fulltext/deployment.yaml @@ -32,12 +32,21 @@ spec: {{- include "huly.envSecret" (dict "name" "SERVER_SECRET" "key" "SERVER_SECRET" "root" .) | nindent 12 }} {{- include "huly.envSecret" (dict "name" "DB_URL" "key" "CR_DB_URL" "root" .) | nindent 12 }} {{- include "huly.envSecret" (dict "name" "STORAGE_CONFIG" "key" "STORAGE_CONFIG" "root" .) | nindent 12 }} + {{- if .Values.fulltext.dbUrl }} + - name: FULLTEXT_DB_URL + value: {{ .Values.fulltext.dbUrl | quote }} + {{- else }} {{- include "huly.envConfig" (dict "name" "FULLTEXT_DB_URL" "key" "ELASTIC_URL" "root" .) | nindent 12 }} + {{- end }} {{- include "huly.envConfig" (dict "name" "ELASTIC_INDEX_NAME" "key" "ELASTIC_INDEX_NAME" "root" .) | nindent 12 }} {{- include "huly.envConfig" (dict "name" "REKONI_URL" "key" "REKONI_URL_INTERNAL" "root" .) | nindent 12 }} {{- include "huly.envConfig" (dict "name" "ACCOUNTS_URL" "key" "ACCOUNTS_URL_INTERNAL" "root" .) | nindent 12 }} {{- include "huly.envConfig" (dict "name" "STATS_URL" "key" "STATS_URL_INTERNAL" "root" .) | nindent 12 }} {{- include "huly.envConfig" (dict "name" "QUEUE_CONFIG" "key" "QUEUE_CONFIG" "root" .) | nindent 12 }} + {{- if .Values.fulltext.backend }} + - name: FULLTEXT_BACKEND + value: {{ .Values.fulltext.backend | quote }} + {{- end }} readinessProbe: tcpSocket: port: 4700 diff --git a/helm/huly/values.yaml b/helm/huly/values.yaml index 9e770f1..99d978e 100644 --- a/helm/huly/values.yaml +++ b/helm/huly/values.yaml @@ -106,6 +106,18 @@ appSettings: # Desktop update channel desktopChannel: "selfhost" +# ────────────────────────────────────────────────────────────── +# Observability — OpenTelemetry trace export +# ────────────────────────────────────────────────────────────── +observability: + # Set to enable OTLP trace export from Huly services. + # Example: http://openobserve.openobserve.svc:5080/api/default + otlpEndpoint: "" + # Extra headers for OTLP exporter (e.g. auth). + # Format: "Header1=Value1,Header2=Value2" + # Example: "Authorization=Basic dXNlcjpwYXNz" + otlpHeaders: "" + # ────────────────────────────────────────────────────────────── # Global pod settings (applied to all services) # ────────────────────────────────────────────────────────────── @@ -209,6 +221,11 @@ workspace: fulltext: replicas: 1 + # Search backend: "elastic" (default), "opensearch", or "typesense" + backend: "" + # Override FULLTEXT_DB_URL (defaults to ELASTIC_URL). + # Required for typesense: e.g. "http://typesense:8108?apiKey=xyz" + dbUrl: "" resources: limits: memory: 512Mi