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

# Networking

> The load balancers, DNS records and certificates Tembo on Kubernetes uses, and how to keep it on your network.

The chart creates the Kubernetes resources that expose Tembo. Your cluster's controllers turn them into load balancers, DNS records and certificates.

## What the chart creates

With `ingress.host: tembo.example.com`:

| Resource | Name | Serves | Who connects |
| - | - | - | - |
| Ingress `tembo` | `tembo.example.com` | The web app and API | Users and webhooks |
| Ingress `tembo-previews` | `*.previews.tembo.example.com` | Computer previews and `tembo service` URLs | Users' browsers |
| Ingress `tembo-public`, with [`ingress.public`](#public-api-host) | `api.tembo.example.com` | Webhooks and other provider calls | Providers |
| Service `tembo-sandbar-hosts` (internal load balancer) | `sandbar.tembo.example.com` | Preview tunnels | Agent hosts |
| Services `tembo-postgresql-hosts` and `tembo-redis-hosts` (internal load balancers) | `postgres.tembo.example.com`, `redis.tembo.example.com` | The bundled Postgres and Redis | Agent hosts |

* The internal Services carry their DNS name in an `external-dns.kubernetes.io/hostname` annotation.
* The Postgres and Redis Services exist only with the bundled data stores.
* To turn previews off, set `sandbar.enabled: false`.

Internal load balancers are billed even while agent hosts are scaled to zero.

## Ingress and certificates

Tembo is served over HTTPS. You need certificates for `tembo.example.com` and `*.previews.tembo.example.com` (a `*.example.com` certificate doesn't cover it), and for the public host if you use one. If the previews certificate is missing, only previews fail.

> [tab] AWS
>
> We use the AWS Load Balancer Controller (or EKS Auto Mode), external-dns and ACM.
>
> ```yaml theme={null}
> ingress:
>   className: alb # Your IngressClass
>   host: tembo.example.com
>   aws:
>     enabled: true
> ```
>
> * `ingress.aws` makes each Ingress an internet-facing ALB with an HTTPS redirect, and sets its health checks.
> * Request ACM certificates for both names in the cluster's region. The ALB finds them by name, or list their ARNs in `ingress.aws.certificates`. With `ingress.public`, list its certificate in `ingress.public.certificates` if needed.
> * ALBs can't use Kubernetes Secrets, so cert-manager doesn't apply.
> * On EKS Auto Mode, internal load balancers need the `eks.amazonaws.com/nlb` class. The module's Helm values set it for Postgres and Redis, and Sandbar uses the same one.

> [tab] GCP
>
> We use GKE's built-in Ingress, external-dns and cert-manager, with a Let's Encrypt ClusterIssuer that solves [DNS-01 in Cloud DNS](https://cert-manager.io/docs/configuration/acme/dns01/google/).
>
> ```yaml theme={null}
> ingress:
>   host: tembo.example.com
>   annotations:
>     cert-manager.io/cluster-issuer: letsencrypt-prod
>   gcp:
>     enabled: true
> ```
>
> * `ingress.gcp` sets up both Ingresses for GKE, with health checks and the HTTPS redirect. To serve on a reserved IP, add a `kubernetes.io/ingress.global-static-ip-name` annotation.
> * GKE gives `tembo.example.com` a Google-managed certificate once the name resolves to the Ingress, and one for `ingress.public.host` if you enable it.
> * Google-managed certificates can't be wildcards, so cert-manager issues `*.previews.tembo.example.com` into `tembo-previews-tls`.

> [tab] Other controllers
>
> Set `ingress.className` and any `ingress.annotations` your controller needs. The previews' Ingress gets the same ones.
>
> With Kubernetes TLS Secrets, [cert-manager](https://cert-manager.io) can issue them:
>
> * Name the app's Secret in `ingress.tls.secretName`. The previews' Secret is `tembo-previews-tls`; override it with `ingress.previews.tlsSecretName`.
> * With `ingress.public`, name its Secret in `ingress.public.tlsSecretName`.
> * Add a `cert-manager.io/cluster-issuer` annotation to `ingress.annotations`. Wildcards need a ClusterIssuer that uses DNS-01.

`ingress.aws` and `ingress.gcp` share these settings (chart 1.0.0 and later):

| Setting | What it does |
| - | - |
| `internal` | Serves the main Ingress only on your network. The public Ingress stays internet-facing. |
| `redirectToHttps` | Redirects HTTP to HTTPS (on by default). |
| `timeoutSeconds` | How long requests and websockets can stay open (default `3600`). |
| `certificates` | ACM ARNs on AWS, or pre-shared certificate names on GKE. Empty uses the cloud's defaults. |

## DNS

Every name in the table above must resolve to its load balancer: browsers find Tembo by name, and agent hosts find Sandbar, Postgres and Redis by name.

* **Public records** for `tembo.example.com`, `*.previews.tembo.example.com` and the public host stay in your public DNS provider.
* **Private records** for `postgres.`, `redis.` and `sandbar.` only need to resolve from the network where agent hosts run. Use a private zone for each internal hostname, so they don't shadow the public names.

We recommend [external-dns](https://github.com/kubernetes-sigs/external-dns): it reads the Ingresses' hosts and the Services' annotations and keeps the records up to date. Keep its public and private zone filters separate, so internal records go only to private zones. Without it, create the records from `kubectl -n tembo get ingress,svc` once the load balancers exist.

> [tab] AWS
>
> Use Route 53 private hosted zones associated with the hosts' VPC, and configure [external-dns for Route 53](https://kubernetes-sigs.github.io/external-dns/latest/docs/tutorials/aws/) to watch Services and manage them.

> [tab] GCP
>
> Use Cloud DNS private zones attached to the hosts' VPC, and configure [external-dns for Google Cloud DNS](https://kubernetes-sigs.github.io/external-dns/latest/docs/tutorials/gke/) to watch Services and manage them. With Shared VPC, attach the zones to the shared network and grant the DNS administrator access in the zone's project. The Terraform module doesn't create these zones or external-dns.

Check name resolution from the hosts' network before starting sessions.

## Internal installs

The load balancer is internet-facing by default, so GitHub and other providers can deliver webhooks. To keep Tembo on your network:

> [tab] AWS
>
> ```yaml theme={null}
> ingress:
>   aws:
>     internal: true
> ```
>
> On EKS Auto Mode, set `scheme: internal` in the IngressClassParams instead.

> [tab] GCP
>
> An internal GKE Ingress can't use a Google-managed certificate or the HTTPS redirect, so give it a TLS Secret for your hostname:
>
> ```yaml theme={null}
> ingress:
>   tls:
>     secretName: tembo-tls
>   gcp:
>     enabled: true
>     internal: true
>   annotations:
>     # Optional: a reserved regional internal IP, by name.
>     kubernetes.io/ingress.regional-static-ip-name: tembo-internal
> ```
>
> It also needs a proxy-only subnet in the cluster's region (purpose `REGIONAL_MANAGED_PROXY`) and a firewall rule letting that subnet reach the cluster's pods.

### Public API host

A second, internet-facing Ingress can serve only the routes providers call, so the rest of Tembo stays on your network:

```yaml theme={null}
ingress:
  host: tembo.example.com
  aws:
    enabled: true
    internal: true
  public:
    enabled: true
    host: api.tembo.example.com
```

It serves webhooks, Slack interactivity, OIDC discovery for AWS integrations, MCP client metadata and the images in pull request comments, and returns 404 for anything else. Give its host DNS and a certificate.

* **Provider settings:** Tembo registers webhooks at the public host. Where a provider asks for a webhook or event URL (the GitHub App, Slack, Linear, Sentry, Teams), use `https://api.tembo.example.com/api/...`. OAuth callback URLs stay on `ingress.host`. For an existing GitHub App, change its webhook URL and check **Active**.
* **EKS Auto Mode:** the IngressClassParams decide the scheme, so set `ingress.public.className` to an internet-facing class.
* **GKE:** the public Ingress is external, with a Google-managed certificate for its host.
* **API and MCP from outside your network:** for CI or hosted MCP clients, add `/api/public-api/` and `/mcp` to `ingress.public.paths`.
* **AWS integrations with OIDC:** the token issuer moves to the public host. Recreate the IAM OIDC provider, and the roles' trust policies, for it.

Without a public host on an internal network, uncheck **Active** under **Webhook** in the GitHub App. Comments that mention Tembo, issue and pull request triggers, and pull request status updates then don't work.

***

## Need Help?

If you run into any issues, contact [support@tembo.io](mailto:support@tembo.io).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.