Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/operator/docs/gcs_object_storage.md

1.3 KiB

Storing Objects to Google Cloud Platform

Loki Operator supports GCS for Loki storage.

Requirements

  • Create a project on Google Cloud Platform.
  • Create a bucket under same project.
  • Create a service account under same project for GCP authentication.

Installation

  • Deploy the loki operator to your cluster.

  • Copy the service account credentials received from GCP into a file name key.json.

  • Create an Object Storage secret with keys bucketname and key.json as follows:

    kubectl create secret generic test \
      --from-literal=bucketname="<BUCKET_NAME>" \
      --from-file=key.json="<PATH/TO/KEY.JSON>"
    

    where test is the secret name, <BUCKET_NAME> is the name of bucket created in requirements step and <PATH/TO/KEY.JSON> is the file path where the key.json was copied to.

  • Create an instance of lokistack by referencing the secret name and type as gcs:

    spec:
      storage:
        secret:
          name: test
          type: gcs