Skip to content

Conversation

@openshift-cherrypick-robot

This is an automated cherry-pick of #102311

/assign briandooley

…anagementState

Doc Reference: https://docs.redhat.com/en/documentation/red_hat_openshift_logging/6.3/html/installing_logging/installing-logging#install-loki-operator-cli_installing-logging

By default, the retention config is not mentioned in standard installation YAML because of which end users use the exact same config for deployment and then object storage get flooded with a lot of logs. This breaks ODF and impacts the applications consuming storage from ODF.

It is required to add retention config in standard installation YAML in the documentation. If there is no retention, then the logs will not be remove / cleaned up from object storage until retention is configured or until lifecycle policy is configured on the object bucket.

[new commit] Update LokiStack configuration with global limits for retention and managementState

Doc Reference: https://docs.redhat.com/en/documentation/red_hat_openshift_logging/6.3/html/installing_logging/installing-logging#install-loki-operator-cli_installing-logging

By default, the retention config is not mentioned in standard installation YAML because of which end users use the exact same config for deployment and then object storage get flooded with a lot of logs. This breaks ODF and impacts the applications consuming storage from ODF.

It is required to add retention config in standard installation YAML in the documentation. If there is no retention, then the logs will not be remove / cleaned up from object storage until retention is configured or until lifecycle policy is configured on the object bucket.

Here is the updated config:

~~~
apiVersion: loki.grafana.com/v1
kind: LokiStack
metadata:
  name: logging-loki  1
  namespace: openshift-logging  2
spec:
  managementState: Managed
  limits:
    global:   3
      retention:   4
        days: 20   # Set the value as per requirement.
  size: 1x.small  5
  storage:
    schemas:
    - version: v13
      effectiveDate: "<yyyy>-<mm>-<dd>"  6
    secret:
      name: logging-loki-s3  7
      type: s3  8
  storageClassName: <storage_class_name>  9
  tenants:
    mode: openshift-logging  10
~~~
@openshift-ci
Copy link

openshift-ci bot commented Nov 13, 2025

@openshift-cherrypick-robot: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@briandooley briandooley merged commit 9fe6f0d into openshift:standalone-logging-docs-6.0 Nov 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants