> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agens.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# ストレージ

> アップロードと成果物保存用のオブジェクトストレージを設定します。

Agens は S3 互換のオブジェクトストレージを使います。

標準 chart では、embedded object storage として RustFS を起動できます。

## Embedded RustFS

```yaml theme={null}
rustfs:
  enabled: true
  accessKey: "replace-with-random-secret"
  secretKey: "replace-with-random-secret"
  persistence:
    enabled: true
  storage: 20Gi
  ingress:
    host: "storage.example.com"

storage:
  s3:
    enabled: true
    publicEndpoint: "https://storage.example.com"
    bucket: agens-storage
    forcePathStyle: true
```

## Existing secret

```yaml theme={null}
rustfs:
  existingSecret: agens-rustfs
  existingSecretAccessKeyKey: access-key
  existingSecretSecretKeyKey: secret-key
```

## アップロード確認

インストール後に次を確認します。

1. Agens アプリを開きます。
2. ファイルをアップロードするか、ナレッジベースを作成します。
3. ブラウザから `storage.s3.publicEndpoint` に到達できることを確認します。

アップロードに失敗する場合は、DNS、CORS、Ingress、public endpoint の値を先に確認してください。
