> ## 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.

# ドメインと TLS

> Agens の DNS、Ingress、TLS を設定します。

Agens では、アプリ、API、オブジェクトストレージ用に別々の公開エンドポイントを使います。

## DNS

Ingress のロードバランサーに向けて DNS レコードを作成します。

```text theme={null}
app.example.com      -> ingress address
api.example.com      -> ingress address
storage.example.com  -> ingress address
```

## Helm values

```yaml theme={null}
web:
  publicUrl: "https://app.example.com"
  ingress:
    host: "app.example.com"

server:
  publicUrl: "https://api.example.com"
  ingress:
    host: "api.example.com"

rustfs:
  ingress:
    host: "storage.example.com"

storage:
  s3:
    publicEndpoint: "https://storage.example.com"
```

## TLS

Kubernetes の Ingress またはロードバランサーで TLS 証明書を設定します。

マネージド証明書を使う場合は、DNS がロードバランサーを指していることを確認し、証明書が有効になるまで待ってから動作確認してください。

## 確認

```bash theme={null}
kubectl -n agens get ingress
kubectl -n agens get managedcertificate
dig +short app.example.com
```
