-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73546 from openshift-cherrypick-robot/cherry-pick…
…-73363-to-enterprise-4.14 [enterprise-4.14] OBSDOCS-339 Configuring Loki to tolerate membership creation failure
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
# ... | ||
---- | ||
|