https://github.com/loganmc10/openshift-loki-installer
https://github.com/loganmc10/openshift-loki-installer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/loganmc10/openshift-loki-installer
- Owner: loganmc10
- License: apache-2.0
- Created: 2023-01-20T15:26:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-13T14:19:29.000Z (5 months ago)
- Last Synced: 2024-12-31T00:42:55.891Z (5 months ago)
- Language: Jinja
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Usage
The target cluster requires NooBaa (ODF Multicloud Object Gateway).loki_size defaults to ```1x.small```. See https://docs.openshift.com/container-platform/latest/logging/cluster-logging-loki.html#deployment-sizing_cluster-logging-loki for possible options.
```
export KUBECONFIG=~/path/to/kubeconfig
ansible-playbook loki-playbook.yaml -e "loki_size=1x.extra-small"
```Optional arguments:
```
-e "auditing=true"
-e "remote_logging=true"
```## Remote Logging
When `remote_logging` is enabled, the playbook writes a file with a Secret named `-secret.yaml` to the playbook directory.
This Secret can be applied to the remote cluster, and then used for log forwarding, for example:
```
apiVersion: logging.openshift.io/v1
kind: ClusterLogForwarder
metadata:
name: instance
namespace: openshift-logging
spec:
outputs:
- name: loki-app
type: loki
url: https://logging-loki-openshift-logging.apps.cluster.example.com/api/logs/v1/application
secret:
name: remote-logging-secret
...
pipelines:
- name: send-app-logs
inputRefs:
- application
outputRefs:
- loki-app
labels:
clustername:
...
```