# Storing Objects to Google Cloud Platform Loki Operator supports [GCS](https://cloud.google.com/) for Loki storage. ### Requirements * Create a [project](https://cloud.google.com/resource-manager/docs/creating-managing-projects) on Google Cloud Platform. * Create a [bucket](https://cloud.google.com/storage/docs/creating-buckets) under same project. * Create a [service account](https://cloud.google.com/docs/authentication/getting-started#creating_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: ```console kubectl create secret generic test \ --from-literal=bucketname="" \ --from-file=key.json="" ``` where `test` is the secret name, `` is the name of bucket created in requirements step and `` is the file path where the `key.json` was copied to. * Create an instance of [lokistack](../hack/lokistack_dev.yaml) by referencing the secret name and type as `gcs`: ```yaml spec: storage: secret: name: test type: gcs ```