> For the complete documentation index, see [llms.txt](https://v2.dataos.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v2.dataos.info/references/resources/lakehouse/supported-sources/lakehouse-on-gcs-1.md). Agents can also search and read this documentation through its [MCP server](https://v2.dataos.info/~gitbook/mcp).

# Lakehouse on GCS

Create a Lakehouse Resource on a Google Cloud Storage (GCS) data source.

This page contains the GCS-specific configuration for a Lakehouse. Refer to [Create a Lakehouse](https://v2.dataos.info/references/resources/lakehouse/create-a-lakehouse.md) for prerequisites, deployment, and verification steps.

### GCS storage Secret

{% tabs %}
{% tab title="Inline key value" %}

```yaml
name: ${storage-secret-name}
version: v2alpha
type: secret
description: GCS storage secret for Lakehouse
secret:
  type: key-value
  data:
    gcp_json_key: ${gcp-service-account-key-json}
    storage_type: gcs
```

{% endtab %}

{% tab title="File reference (alternative)" %}

```yaml
name: ${storage-secret-name}
version: v2alpha
type: secret
description: GCS storage secret for Lakehouse
secret:
  type: key-value
  files:
    gcp_json_key: ${path-to-gcp-credentials-file}
  data:
    storage_type: gcs
```

{% endtab %}
{% endtabs %}

### Lakehouse manifest

```yaml
name: ${lakehouse-name}
version: v1alpha
type: lakehouse
description: Lakehouse on GCS storage
tags:
  - lakehouse
  - gcs
spec:
  compute: ${compute-name}
  runAsUser: ${user-id}
  logLevel: INFO
  iceberg:
    metastore:
      type: iceberg-jdbc-catalog
      replicas: 1
      secret: ${tenant}:${metastore-secret-name}
      postgresql:
        host: ${postgres-host}
        port: "5432"
        database: ${database-name}
        schema: public
        sslmode: require
      resources:
        requests:
          cpu: "1"
          memory: 1000Mi
        limits:
          cpu: "1"
          memory: 2000Mi
    storage:
      type: gcs # Storage backend
      gcs:
        bucket: ${gcs-bucket-name} # GCS bucket name
        relativePath: ${relative-path} # Directory for Lakehouse data
        format: ICEBERG # Table format
        endpoint: storage.googleapis.com # Custom or standard GCS endpoint
      secret: ${tenant}:${storage-secret-name} # Secret containing GCS credentials
    sherpa:
      replicas: 1
      resources:
        requests:
          cpu: 200m
          memory: 512Mi
        limits:
          cpu: 500m
          memory: 1000Mi
    sparkCluster:
      resources:
        requests:
          cpu: 200m
          memory: 512Mi
        limits:
          cpu: 500m
          memory: 1000Mi
      driver:
        coreLimit: "2048m"
        cores: 1
        memory: "2048m"
      executor:
        coreLimit: "2048m"
        cores: 1
        memory: "2048m"
        instances: 1
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://v2.dataos.info/references/resources/lakehouse/supported-sources/lakehouse-on-gcs-1.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
