@@ -29,9 +29,9 @@ Allow the release namespace to be overridden for multi-namespace deployments in
2929{{- end -}}
3030
3131{{/*
32- singleBinary fullname
32+ monolithic fullname
3333*/ }}
34- {{- define " loki.singleBinaryFullname " -}}
34+ {{- define " loki.monolithicFullname " -}}
3535{{- if .Values.fullnameOverride -}}
3636{{- .Values.fullnameOverride | trunc 63 | trimSuffix " -" -}}
3737{{- else -}}
@@ -66,14 +66,14 @@ Params:
6666Return if deployment mode is simple scalable
6767*/ }}
6868{{- define " loki.deployment.isScalable" -}}
69- {{- and (eq (include " loki.isUsingObjectStorage" . ) " true" ) (or (eq .Values.deploymentMode " SingleBinary<->SimpleScalable" ) (eq .Values.deploymentMode " SimpleScalable" ) (eq .Values.deploymentMode " SimpleScalable<->Distributed" )) }}
69+ {{- and (eq (include " loki.isUsingObjectStorage" . ) " true" ) (or (eq .Values.deploymentMode " SingleBinary<->SimpleScalable" ) ( eq .Values.deploymentMode " Monolithic<->SimpleScalable " ) (eq .Values.deploymentMode " SimpleScalable" ) (eq .Values.deploymentMode " SimpleScalable<->Distributed" )) }}
7070{{- end -}}
7171
7272{{/*
7373Return if deployment mode is single binary
7474*/ }}
75- {{- define " loki.deployment.isSingleBinary " -}}
76- {{- or (eq .Values.deploymentMode " SingleBinary" ) (eq .Values.deploymentMode " SingleBinary<->SimpleScalable" ) }}
75+ {{- define " loki.deployment.isMonolithic " -}}
76+ {{- or (eq .Values.deploymentMode " SingleBinary" ) (eq .Values.deploymentMode " Monolithic " ) ( eq .Values.deploymentMode " SingleBinary<->SimpleScalable " ) ( eq .Values.deploymentMode " Monolithic <->SimpleScalable" ) }}
7777{{- end -}}
7878
7979{{/*
@@ -465,8 +465,8 @@ configMap:
465465Generate list of ingress service paths based on deployment type
466466*/ }}
467467{{- define " loki.ingress.servicePaths" -}}
468- {{- if (eq (include " loki.deployment.isSingleBinary " . ) " true" ) -}}
469- {{- include " loki.ingress.singleBinaryServicePaths " . }}
468+ {{- if (eq (include " loki.deployment.isMonolithic " . ) " true" ) -}}
469+ {{- include " loki.ingress.monolithicServicePaths " . }}
470470{{- else if (eq (include " loki.deployment.isDistributed" . ) " true" ) -}}
471471{{- include " loki.ingress.distributedServicePaths" . }}
472472{{- else if and (eq (include " loki.deployment.isScalable" . ) " true" ) -}}
@@ -504,8 +504,8 @@ Ingress service paths for simple scalable deployment when backend components wer
504504{{/*
505505Ingress service paths for single binary deployment
506506*/ }}
507- {{- define " loki.ingress.singleBinaryServicePaths " -}}
508- {{- $serviceName := include " loki.singleBinaryFullname " . }}
507+ {{- define " loki.ingress.monolithicServicePaths " -}}
508+ {{- $serviceName := include " loki.monolithicFullname " . }}
509509{{- include " loki.ingress.servicePath" (dict " ctx" . " serviceName" $serviceName " paths" .Values.ingress.paths.distributor )}}
510510{{- include " loki.ingress.servicePath" (dict " ctx" . " serviceName" $serviceName " paths" .Values.ingress.paths.queryFrontend )}}
511511{{- include " loki.ingress.servicePath" (dict " ctx" . " serviceName" $serviceName " paths" .Values.ingress.paths.ruler )}}
@@ -561,10 +561,10 @@ Create the service endpoint including port for MinIO.
561561
562562{{/* Determine the public host for the Loki cluster */ }}
563563{{- define " loki.host" -}}
564- {{- $isSingleBinary := eq (include " loki.deployment.isSingleBinary " . ) " true" -}}
564+ {{- $isMonolithic := eq (include " loki.deployment.isMonolithic " . ) " true" -}}
565565{{- $url := printf " %s .%s .svc.%s .:%s " (include " loki.resourceName" (dict " ctx" . " component" " gateway" )) (include " loki.namespace" . ) .Values.global.clusterDomain (.Values.gateway.service.port | toString) }}
566- {{- if and $isSingleBinary (not .Values.gateway.enabled ) }}
567- {{- $url = printf " %s .%s .svc.%s .:%s " (include " loki.singleBinaryFullname " . ) (include " loki.namespace" . ) .Values.global.clusterDomain (.Values.loki.server.http_listen_port | toString) }}
566+ {{- if and $isMonolithic (not .Values.gateway.enabled ) }}
567+ {{- $url = printf " %s .%s .svc.%s .:%s " (include " loki.monolithicFullname " . ) (include " loki.namespace" . ) .Values.global.clusterDomain (.Values.loki.server.http_listen_port | toString) }}
568568{{- end }}
569569{{- printf " %s " $url -}}
570570{{- end -}}
@@ -704,8 +704,8 @@ http {
704704 {{- $backendUrl = .Values.gateway.nginxConfig.customBackendUrl }}
705705 {{- end }}
706706
707- {{- $singleBinaryHost := include " loki.singleBinaryFullname " . }}
708- {{- $singleBinaryUrl := printf " %s ://%s .%s .svc.%s :%s " $httpSchema $singleBinaryHost $namespace .Values.global.clusterDomain (.Values.loki.server.http_listen_port | toString) }}
707+ {{- $monolithicHost := include " loki.monolithicFullname " . }}
708+ {{- $monolithicUrl := printf " %s ://%s .%s .svc.%s :%s " $httpSchema $monolithicHost $namespace .Values.global.clusterDomain (.Values.loki.server.http_listen_port | toString) }}
709709
710710 {{- $distributorHost := include " loki.resourceName" (dict " ctx" . " component" " distributor" ) }}
711711 {{- $ingesterHost := include " loki.resourceName" (dict " ctx" . " component" " ingester" ) }}
@@ -725,15 +725,15 @@ http {
725725 {{- $schedulerUrl := printf " %s ://%s .%s .svc.%s :%s " $httpSchema $schedulerHost $namespace .Values.global.clusterDomain (.Values.loki.server.http_listen_port | toString) }}
726726 {{- $querierUrl := printf " %s ://%s .%s .svc.%s :%s " $httpSchema $querierHost $namespace .Values.global.clusterDomain (.Values.loki.server.http_listen_port | toString) }}
727727
728- {{- if eq (include " loki.deployment.isSingleBinary " . ) " true" }}
729- {{- $distributorUrl = $singleBinaryUrl }}
730- {{- $ingesterUrl = $singleBinaryUrl }}
731- {{- $queryFrontendUrl = $singleBinaryUrl }}
732- {{- $indexGatewayUrl = $singleBinaryUrl }}
733- {{- $rulerUrl = $singleBinaryUrl }}
734- {{- $compactorUrl = $singleBinaryUrl }}
735- {{- $schedulerUrl = $singleBinaryUrl }}
736- {{- $querierUrl = $singleBinaryUrl }}
728+ {{- if eq (include " loki.deployment.isMonolithic " . ) " true" }}
729+ {{- $distributorUrl = $monolithicUrl }}
730+ {{- $ingesterUrl = $monolithicUrl }}
731+ {{- $queryFrontendUrl = $monolithicUrl }}
732+ {{- $indexGatewayUrl = $monolithicUrl }}
733+ {{- $rulerUrl = $monolithicUrl }}
734+ {{- $compactorUrl = $monolithicUrl }}
735+ {{- $schedulerUrl = $monolithicUrl }}
736+ {{- $querierUrl = $monolithicUrl }}
737737 {{- else if eq (include " loki.deployment.isScalable" . ) " true" }}
738738 {{- $distributorUrl = $writeUrl }}
739739 {{- $ingesterUrl = $writeUrl }}
@@ -994,11 +994,11 @@ enableServiceLinks: false
994994{{- define " loki.compactorAddress" -}}
995995{{- $isSimpleScalable := eq (include " loki.deployment.isScalable" . ) " true" -}}
996996{{- $isDistributed := eq (include " loki.deployment.isDistributed" . ) " true" -}}
997- {{- $isSingleBinary := eq (include " loki.deployment.isSingleBinary " . ) " true" -}}
997+ {{- $isMonolithic := eq (include " loki.deployment.isMonolithic " . ) " true" -}}
998998{{- $compactorAddress := include " loki.resourceName" (dict " ctx" . " component" " backend" ) -}}
999- {{- if $isSingleBinary -}}
999+ {{- if $isMonolithic -}}
10001000{{/* single binary */ }}
1001- {{- $compactorAddress = include " loki.singleBinaryFullname " . -}}
1001+ {{- $compactorAddress = include " loki.monolithicFullname " . -}}
10021002{{/* distributed */ }}
10031003{{- else if $isDistributed -}}
10041004{{- $compactorAddress = include " loki.resourceName" (dict " ctx" . " component" " compactor" ) -}}
0 commit comments