Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
ed09cf5
[Docs] Add a Helm deployment guide and the chart release steps
shba24 Oct 19, 2026
4711033
[Docs] Check the UI image at release and keep resource names on upgrade
shba24 Oct 20, 2026
123fb59
[Docs] Run the release check logged out, use X.Y.Z, and note policy r…
shba24 Oct 20, 2026
68b723b
[Docs] Say policy refresh applies to PostgreSQL, and state the push rule
shba24 Oct 20, 2026
c6d6c76
[Docs] Drop the UI-off notes now that the chart keeps the UI on
shba24 Oct 26, 2026
2088e2f
[Docs] Use the kept resource names and add a step to bump the pinned …
shba24 Oct 27, 2026
7f20aa3
[Docs] Update the pinned helper images to latest stable each release
shba24 Oct 27, 2026
358ad22
[Docs] Address review: reorder the release steps, name the image requ…
shba24 Oct 28, 2026
f619b57
[Docs] Run the release check fully logged out and tidy the helm guide…
shba24 Oct 28, 2026
9e9ab2d
[Docs] Scope the release image check to default values and trim repeats
shba24 Oct 28, 2026
44f3f9c
[Docs] Point to the Docker Hub organization's owners for the release …
shba24 Oct 28, 2026
1e16afe
[Docs] Name only the Docker Hub organization's owners as the release …
shba24 Oct 28, 2026
bc28200
[Docs] Link the release managers to the Docker Hub organization's Own…
shba24 Oct 28, 2026
c4ca1cd
[Docs] Point to the /helm/ owners in CODEOWNERS for the release managers
shba24 Oct 28, 2026
847c39b
[Docs] Address review: log out only for the chart fetch, and clarify …
shba24 Oct 29, 2026
0fdde72
[Docs] Say that passing any values drops the earlier install's values…
shba24 Oct 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/server/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This guide outlines how to deploy the Unity Catalog server.

To deploy on Kubernetes, see [Deploy with Helm](helm.md).

## Deploying using tarball

### Prerequisites
Expand Down
105 changes: 105 additions & 0 deletions docs/server/helm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Deploy with Helm

Starting with 0.8.0, each Unity Catalog release publishes a Helm chart to Docker Hub with the same version as the
release. Chart version X.Y.Z runs the server image `unitycatalog/unitycatalog:vX.Y.Z` and the UI image
`unitycatalog/unitycatalog-ui:vX.Y.Z`.

## Prerequisites

- A Kubernetes 1.20 or later cluster
- Helm 3.8 or later, which can install charts from OCI registries

## Install the chart

```sh
helm install unitycatalog oci://registry-1.docker.io/unitycatalog/unitycatalog-chart \
--version X.Y.Z --namespace unitycatalog --create-namespace
```

Replace `X.Y.Z` with the Unity Catalog release to install.

With the default values, the chart runs one server, which keeps its H2 database on a persistent volume. Run
`helm test unitycatalog --namespace unitycatalog` to check that the server and the UI respond. With authentication on,
it checks only the UI.

## Open the API and the UI

```sh
kubectl port-forward --namespace unitycatalog svc/unitycatalog-server 8080:8080
```

The API is then at `http://localhost:8080/api/2.1/unity-catalog`. With authentication on, API calls need a bearer
token; see [Authentication](auth.md).

By default, the UI forwards API requests to the server, and in this mode you open it through `kubectl port-forward`:

```sh
kubectl port-forward --namespace unitycatalog svc/unitycatalog-ui 3000:3000
```

The UI is then at `http://localhost:3000`.

To serve the API and the UI on a hostname, enable `ingress` or `httpRoute`. They send `/api` requests to the server and everything
else to the UI. Both need a `host`, and with either one the UI no longer forwards API requests itself. See
[values.httproute.yaml](https://github.com/unitycatalog/unitycatalog/blob/main/helm/values.httproute.yaml) for an
example.

## Use PostgreSQL

The H2 database supports a single server. To run more than one server replica, use PostgreSQL. The server then starts
with an empty database; the chart leaves H2 data on its volume. Store the password in a Secret:

```sh
kubectl create secret generic db-password --namespace unitycatalog --from-literal=password='<password>'
```

Then point the chart at the database, for example in a `values.yaml` file:

```yaml
server:
deployment:
replicaCount: 2
db:
type: postgresql
postgresqlConfig:
host: my-postgres.example.com
port: 5432
dbName: ucdb
username: uc
passwordSecretName: db-password
passwordSecretKey: password
```

With authentication on (`auth.enabled: true`), PostgreSQL also needs `server.authorization.policy-refresh: "true"` under
`server.config.extraProperties`. Replicas share the database, and even a single replica runs next to its replacement
during an upgrade, so a grant or revoke made through one server must reach the others. See
[Multiple server instances](auth.md#multiple-server-instances).

```yaml
server:
config:
extraProperties:
server.authorization.policy-refresh: "true"
```

```sh
helm upgrade --install unitycatalog oci://registry-1.docker.io/unitycatalog/unitycatalog-chart \
--version X.Y.Z --namespace unitycatalog --values values.yaml
```

## Upgrade and uninstall

To upgrade, read the release notes, then run `helm upgrade` with the new `--version` and the same `--values` file.
If you pass any `--values` or `--set`, Helm doesn't keep the values from your earlier install, so pass the full file
each time.

`helm uninstall unitycatalog --namespace unitycatalog` removes the release. It keeps the chart-created H2 database
PersistentVolumeClaim and token signing key Secret, and a later install with the same release name and
namespace reuses them. Delete both to remove the data.

## Configuration

Run `helm show readme oci://registry-1.docker.io/unitycatalog/unitycatalog-chart --version X.Y.Z` for the chart README
of the version you install, and `helm show values` with the same arguments for every value. They cover
authentication (`auth.*`), cloud storage credentials, and resources. See [Auth](auth.md) for how
authentication works.
3 changes: 3 additions & 0 deletions helm/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
# Maintainer scripts
*.sh

# Maintainer docs
RELEASING.md

# Helm-docs files
README.md.gotmpl
61 changes: 61 additions & 0 deletions helm/RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Releasing the Helm chart

Every Unity Catalog release X.Y.Z, patch releases included, publishes the chart with the same version. The chart runs
the server image `unitycatalog/unitycatalog:vX.Y.Z` and the UI image `unitycatalog/unitycatalog-ui:vX.Y.Z`, so both
images must be on Docker Hub before the chart is pushed.

Only the release managers push to the `unitycatalog` Docker Hub organization, and only they should have write access to
its repositories. The release managers are the owners of `/helm/` in
[`.github/CODEOWNERS`](../.github/CODEOWNERS).

## Bump the pinned helper images

The chart's helper images are pinned by digest in `helm/values.yaml`, so a release always runs the same images: Alpine
for the config init container and the create-users job, and busybox for the UI init container and the `helm test` pod.
Before each release, update both to their latest stable release in a pull request, and merge it before you create the
release tag so the tagged chart carries the new digests. Inspect the exact tags you pin, for example
`docker buildx imagetools inspect alpine:3.24.2` and `docker buildx imagetools inspect busybox:1.37.0`, not floating
tags such as `alpine:3`, which can move to a newer release than the tag you write in `values.yaml`.

## Publish the images

The chart needs the server image `unitycatalog/unitycatalog:vX.Y.Z` for both `linux/amd64` and `linux/arm64`, pushed
before the chart. From the release tag, also publish the UI image with the same version, even when `ui/` didn't change:

```sh
docker buildx build --platform linux/amd64,linux/arm64 -t unitycatalog/unitycatalog-ui:vX.Y.Z --push ui
```

If the build reports that multi-platform builds aren't supported, run `docker buildx create --use` first.

## Publish the chart

From the release tag, after the images are on Docker Hub:

```sh
helm/package-chart.sh X.Y.Z
helm registry login registry-1.docker.io
helm push unitycatalog-chart-X.Y.Z.tgz oci://registry-1.docker.io/unitycatalog
```

`package-chart.sh` sets the chart version to X.Y.Z and the app version to vX.Y.Z. Don't edit `Chart.yaml` for a
release.

## Verify

Check that every image the published chart runs with default values exists, including the UI. The check, written for
bash or zsh, runs Helm with empty credential files, so it fetches the chart logged out and also confirms that the chart
is public. Helm also uses the credentials from `docker login`, so `helm registry logout` alone isn't enough. The images
are inspected with your usual Docker setup, so `docker buildx` is found wherever it is installed.

```bash
images=$(HELM_REGISTRY_CONFIG="$(mktemp -d)/config.json" DOCKER_CONFIG="$(mktemp -d)" \
helm template uc oci://registry-1.docker.io/unitycatalog/unitycatalog-chart --version X.Y.Z \
| sed -n 's/^ *image: "\{0,1\}\([^"]*\)"\{0,1\}$/\1/p' | sort -u)
missing=0
while read -r image; do
[ -n "$image" ] || continue
docker buildx imagetools inspect "$image" > /dev/null || { echo "Missing: $image"; missing=1; }
done <<< "$images"
[ -n "$images" ] && [ "$missing" = 0 ] && echo "All images exist"
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ nav:
- Auth: server/auth.md
- Users and Privileges: server/users-privileges.md
- Deployment: server/deployment.md
- Deploy with Helm: server/helm.md
- Deploy for AWS: server/aws.md
- Observability: server/observability.md
- Integrations:
Expand Down
Loading