Skip to content

Commit

Permalink
Merge pull request #73546 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-73363-to-enterprise-4.14

[enterprise-4.14] OBSDOCS-339 Configuring Loki to tolerate membership creation failure
  • Loading branch information
jab-rh committed Mar 21, 2024
2 parents 75a5ef7 + 23ed4d7 commit 101bb90
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logging/log_storage/cluster-logging-loki.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ endif::[]

include::modules/logging-loki-retention.adoc[leveloffset=+1]
include::modules/loki-rate-limit-errors.adoc[leveloffset=+1]
include::modules/logging-loki-memberlist-ip.adoc[leveloffset=+1]

[role="_additional-resources"]
[id="additional-resources_cluster-logging-loki"]
Expand All @@ -59,4 +60,4 @@ include::modules/loki-rate-limit-errors.adoc[leveloffset=+1]
* link:https://loki-operator.dev/docs/howto_connect_grafana.md/[Grafana Dashboard documentation]
* link:https://loki-operator.dev/docs/object_storage.md/[Loki Object Storage documentation]
* link:https://loki-operator.dev/docs/api.md/#loki-grafana-com-v1-IngestionLimitSpec[{loki-op} `IngestionLimitSpec` documentation]
* link:https://grafana.com/docs/loki/latest/operations/storage/schema/#changing-the-schema[Loki Storage Schema documentation]
* link:https://grafana.com/docs/loki/latest/operations/storage/schema/#changing-the-schema[Loki Storage Schema documentation]
34 changes: 34 additions & 0 deletions modules/logging-loki-memberlist-ip.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Module included in the following assemblies:
//
// * logging/cluster-logging-loki.adoc

:_mod-docs-content-type: CONCEPT
[id="logging-loki-memberlist-ip_{context}"]
= Configuring Loki to tolerate memberlist creation failure

In an OpenShift cluster, administrators generally use a non-private IP network range. As a result, the LokiStack memberlist configuration fails because, by default, it only uses private IP networks.

As an administrator, you can select the pod network for the memberlist configuration. You can modify the LokiStack CR to use the `podIP` in the `hashRing` spec. To configure the LokiStack CR, use the following command:

[source,terminal]
----
$ oc patch LokiStack logging-loki -n openshift-logging --type=merge -p '{"spec": {"hashRing":{"memberlist":{"instanceAddrType":"podIP","type": "memberlist"}}}}'
----

.Example LokiStack to include `podIP`
[source,yaml]
----
apiVersion: loki.grafana.com/v1
kind: LokiStack
metadata:
name: logging-loki
namespace: openshift-logging
spec:
# ...
hashRing:
type: memberlist
memberlist:
instanceAddrType: podIP
# ...
----

0 comments on commit 101bb90

Please sign in to comment.