Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ parameters:
registry: ghcr.io
repository: jkroepke/access-log-exporter

preset: legacy
preset: extra-small

components:
# Read Path
Expand Down
1 change: 1 addition & 0 deletions class/loki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ parameters:
output_path: ${_instance}/10_helm_loki
helm_values_files:
- ${_base_directory}/helmcharts/loki/${loki:charts:loki:version}/${loki:preset}.yaml
- ${_base_directory}/helmcharts/loki/${loki:charts:loki:version}/${_instance}-components.yaml
- ${_base_directory}/helmcharts/loki/${loki:charts:loki:version}/${_instance}-configs.yaml
- ${_base_directory}/helmcharts/loki/${loki:charts:loki:version}/${_instance}-overrides.yaml
helm_params:
Expand Down
3 changes: 1 addition & 2 deletions component/helm_values.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ local components = com.makeMergeable({
} + com.makeMergeable(params.components.indexGateway),
// Ingress Configuration
gateway: {
[if params.components.gateway.enabled then 'enabledNonEnterprise']: params.components.gateway.enabled,
Comment thread
simu marked this conversation as resolved.
extraEnvFrom: [ { secretRef: { name: '%s-bucket-secret' % inv.parameters._instance } } ],
Comment thread
simu marked this conversation as resolved.
extraArgs: [ '-config.expand-env=true' ],
nodeSelector: std.get(params.components.gateway, 'nodeSelector', globalConfig.nodeSelector),
} + com.makeMergeable(params.components.gateway),
Expand Down Expand Up @@ -204,6 +202,7 @@ local hardRestrictions = com.makeMergeable({
});

{
['%s-components' % inv.parameters._instance]: components + caches + experimental,
Comment thread
simu marked this conversation as resolved.
['%s-configs' % inv.parameters._instance]: openshift + images + global + loki + ingress,
['%s-overrides' % inv.parameters._instance]: params.helm_values + hardRestrictions,
}
65 changes: 65 additions & 0 deletions docs/modules/ROOT/pages/how-tos/upgrade-loki-v0-v1.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
= Upgrade component version v0 to v1

Version 1.x is a major overhaul of the configuration parameters of the component,
https://github.com/projectsyn/component-loki/releases/tag/v1.0.0[see Release Notes] for more details.

The component has lots of options to configure each part of the Loki installation.
Please have a look at the xref:references/parameters.adoc[parameters documentation] for reference.

[IMPORTANT]
====
As of March 16, 2026, the Grafana Loki Helm chart for OSS users has moved to grafana-community/helm-charts (forked at chart version 6.55.0).
This component will no longer support Helm charts from grafana/loki, instead it uses Helm charts from grafana-community (> v17.x).
====


== Explanation of configuration changes

=== Migrate to Deployment Mode `Distributed`

[IMPORTANT]
====
Prior version of this component used the deployment mode `SimpleScalable`, see https://grafana.com/docs/loki/latest/get-started/deployment-modes/#simple-scalable[Loki Documentation].
This mode is deprecated and will be removed with Loki v4.
Only the preset `legacy` will support `SimpleScalable`, but it is strongly adviced to switch away from `SimpleScalable` and `legacy`.
====

==== Step 1

Deploy v1.x of this component with the following parameters:

[source,yaml]
----
preset: legacy <1>
helm_values:
deploymentMode: SimpleScalable<->Distributed <2>
----
<1> Uses `legacy` preset for component configuration.
<2> Prepares for the transition to `Distributed`.

==== Step 2

Remove the parameters from "Step 1" and deploy again.

=== New Default Resource Requests

[IMPORTANT]
====
This component changes its default resource requests and limits, please check the output of your catalog compilation and adjust if needed.
See xref:references/parameters.adoc#_components[components] and xref:references/parameters.adoc#_caches[caches] to adjust your settings.
====

This component supports the following presets:

* `none`: Use the Helm charts defaults.
* `legacy`: Component defaults for migrating to v1.
* `extra-small`: Component defaults for small production deployments (default).

=== legacy `globalNodeSelector`

The values for the global node selector has moved to `global.nodeSelector`.

[TIP]
====
This change is backward compatible, but migrating the values to the new structure is recommended.
====
1 change: 1 addition & 0 deletions docs/modules/ROOT/partials/nav.adoc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* xref:index.adoc[Home]
* xref:references/parameters.adoc[Parameters]
* xref:how-tos/upgrade-loki-v0-v1.adoc[]

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
labels:
app.kubernetes.io/component: read
app.kubernetes.io/component: memcached-chunks-cache
app.kubernetes.io/instance: loki
app.kubernetes.io/name: loki
app.kubernetes.io/version: 3.7.2
helm.sh/chart: loki-17.4.11
name: loki-read
name: loki-chunks-cache
namespace: syn-loki
spec:
maxUnavailable: 1
selector:
matchLabels:
app.kubernetes.io/component: read
app.kubernetes.io/component: memcached-chunks-cache
app.kubernetes.io/instance: loki
app.kubernetes.io/name: loki
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
namespace: syn-loki
spec:
podManagementPolicy: Parallel
replicas: 1
replicas: 2
selector:
matchLabels:
app.kubernetes.io/component: memcached-chunks-cache
Expand Down Expand Up @@ -66,10 +66,10 @@ spec:
timeoutSeconds: 3
resources:
limits:
memory: 9830Mi
memory: 4Gi
requests:
cpu: 500m
memory: 9830Mi
memory: 4Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
Loading
Loading