From 02ad674a00227da826887c1e2c320318f03b2b49 Mon Sep 17 00:00:00 2001 From: Chris Blumentritt Date: Thu, 7 Mar 2024 15:44:49 -0600 Subject: [PATCH] Adds loki helm install examples Signed-off-by: Chris Blumentritt --- helm-configs/loki/README.md | 27 +++++++++++++++++++ .../loki-helm-minio-overrides-example.yaml | 6 +++++ .../loki/loki-helm-s3-overrides-example.yaml | 19 +++++++++++++ .../loki-helm-swift-overrides-example.yaml | 18 +++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 helm-configs/loki/README.md create mode 100644 helm-configs/loki/loki-helm-minio-overrides-example.yaml create mode 100644 helm-configs/loki/loki-helm-s3-overrides-example.yaml create mode 100644 helm-configs/loki/loki-helm-swift-overrides-example.yaml diff --git a/helm-configs/loki/README.md b/helm-configs/loki/README.md new file mode 100644 index 00000000..e676ae9c --- /dev/null +++ b/helm-configs/loki/README.md @@ -0,0 +1,27 @@ +# Setting up Loki + +## Add the grafana helm repo +```bash +helm repo add grafana https://grafana.github.io/helm-charts +helm repo update +``` + +## Install the helm chart + +You will need to make changes depending on how you want to configure loki. Example files are included in this directory choose one relevant to your deploy + +```bash +helm upgrade --install --values my-loki-helm-overrides.yaml loki grafana/loki --create-namespace --namespace grafana +``` + +### Swift notes + +If you plan on using swift as a backend for log storage see the [loki-helm-swift-overrides-example.yaml](loki-helm-swift-overrides-example.yaml) + +### S3 notes + +If you plan on using s3 as a backend for log storage see the [loki-helm-s3-overrides-example.yaml](loki-helm-s3-overrides-example.yaml) + +### minio notes + +If you plan on using minio as a backend for log storage see the [loki-helm-minio-overrides-example.yaml](loki-helm-minio-overrides-example.yaml) \ No newline at end of file diff --git a/helm-configs/loki/loki-helm-minio-overrides-example.yaml b/helm-configs/loki/loki-helm-minio-overrides-example.yaml new file mode 100644 index 00000000..057a2466 --- /dev/null +++ b/helm-configs/loki/loki-helm-minio-overrides-example.yaml @@ -0,0 +1,6 @@ +global: + dnsService: "coredns" +minio: + enabled: true +loki: + auth_enabled: false \ No newline at end of file diff --git a/helm-configs/loki/loki-helm-s3-overrides-example.yaml b/helm-configs/loki/loki-helm-s3-overrides-example.yaml new file mode 100644 index 00000000..e86aa1a6 --- /dev/null +++ b/helm-configs/loki/loki-helm-s3-overrides-example.yaml @@ -0,0 +1,19 @@ +global: + dnsService: "coredns" +minio: + enabled: false +loki: + auth_enabled: false + storage: + bucketNames: + chunks: < CHUNKS BUCKET NAME > # TODO: Update with relevant bucket name for chunks + ruler: < RULER BUCKET NAME > # TODO: Update with relevant bucket name for ruler + admin: < ADMIN BUCKET NAME > # TODO: Update with relevant bucket name for admin + type: s3 + s3: + endpoint: < ENDPOINT URL > # TODO: Update with valid enpoint URL + region: < REGION > # TODO: Update with valid region + secretAccessKey: < SECRET ACCESS KEY > # TODO: Update with valid secret access key + accessKeyId: < ACCESS KEY ID > # TODO: Update with access key id + s3ForcePathStyle: false + insecure: [ true | false ] # TODO: True if valid cert or false if not \ No newline at end of file diff --git a/helm-configs/loki/loki-helm-swift-overrides-example.yaml b/helm-configs/loki/loki-helm-swift-overrides-example.yaml new file mode 100644 index 00000000..7f5f060b --- /dev/null +++ b/helm-configs/loki/loki-helm-swift-overrides-example.yaml @@ -0,0 +1,18 @@ +global: + dnsService: "coredns" +minio: + enabled: false +loki: + auth_enabled: false + storage: + bucketNames: + chunks: chunks + ruler: ruler + admin: admin + type: swift + swift: + auth_url: https://identity.api.rackspacecloud.com/v1.0 + username: < USERNAME > # TODO: Update with valid username + password: < PASSWORD > # TODO: Update with valid password + container_name: < CONTAINER > # TODO: Update with valid container + region_name: < REGION > # TODO: Update with valid region