Skip to content

Commit 4a50bc3

Browse files
OBSDOCS-339 Configuring Loki to tolerate membership creation failure
1 parent 67f90f6 commit 4a50bc3

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

logging/log_storage/cluster-logging-loki.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ endif::[]
5050

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

5455
[role="_additional-resources"]
5556
[id="additional-resources_cluster-logging-loki"]
@@ -59,4 +60,4 @@ include::modules/loki-rate-limit-errors.adoc[leveloffset=+1]
5960
* link:https://loki-operator.dev/docs/howto_connect_grafana.md/[Grafana Dashboard documentation]
6061
* link:https://loki-operator.dev/docs/object_storage.md/[Loki Object Storage documentation]
6162
* link:https://loki-operator.dev/docs/api.md/#loki-grafana-com-v1-IngestionLimitSpec[{loki-op} `IngestionLimitSpec` documentation]
62-
* link:https://grafana.com/docs/loki/latest/operations/storage/schema/#changing-the-schema[Loki Storage Schema documentation]
63+
* link:https://grafana.com/docs/loki/latest/operations/storage/schema/#changing-the-schema[Loki Storage Schema documentation]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * logging/cluster-logging-loki.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="logging-loki-memberlist-ip_{context}"]
7+
= Configuring Loki to tolerate memberlist creation failure
8+
9+
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.
10+
11+
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:
12+
13+
[source,terminal]
14+
----
15+
$ oc patch LokiStack logging-loki -n openshift-logging --type=merge -p '{"spec": {"hashRing":{"memberlist":{"instanceAddrType":"podIP","type": "memberlist"}}}}'
16+
----
17+
18+
.Example LokiStack to include `podIP`
19+
[source,yaml]
20+
----
21+
apiVersion: loki.grafana.com/v1
22+
kind: LokiStack
23+
metadata:
24+
name: logging-loki
25+
namespace: openshift-logging
26+
spec:
27+
# ...
28+
hashRing:
29+
type: memberlist
30+
memberlist:
31+
instanceAddrType: podIP
32+
# ...
33+
----
34+

0 commit comments

Comments
 (0)