Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 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
572e0c2
[Helm] Add lifecycle and terminationGracePeriodSeconds for the server…
shba24 Oct 27, 2026
2b2a2af
[Helm] Keep an explicit terminationGracePeriodSeconds of 0
shba24 Oct 27, 2026
0725318
[Docs] Clarify the shutdown timeout and when a preStop sleep avoids d…
shba24 Oct 27, 2026
34160b1
[Docs] Leave headroom in the grace period beyond the sleep and shutdo…
shba24 Oct 27, 2026
0fdde72
[Docs] Say that passing any values drops the earlier install's values…
shba24 Oct 29, 2026
0727b85
Merge stack/ep3-helm-docs (#2021): helm upgrade wording into stack/ep…
shba24 Oct 29, 2026
b202f65
Merge main into stack/ep3-helm-graceful-shutdown
shba24 Oct 29, 2026
b35dce9
[Helm] Render the graceful shutdown values in chart lint and point th…
shba24 Oct 30, 2026
28ff8b0
[Helm] Keep the default-values chart lint next to the graceful shutdo…
shba24 Oct 30, 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
26 changes: 26 additions & 0 deletions docs/server/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,32 @@ each time.
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.

## Graceful shutdown

During an upgrade or scale-down, Kubernetes sends the server SIGTERM, and the server finishes requests in flight
for up to the [`server.shutdown-timeout`](configuration.md) server property, which you can set under
`server.config.extraProperties`. Kubernetes can keep routing requests to the pod for a few seconds after it starts
terminating. To cover that, set a `preStop` sleep with `server.deployment.lifecycle`, and a
`server.deployment.terminationGracePeriodSeconds` longer than the sleep plus the whole shutdown time that the
`server.shutdown-timeout` entry describes. Both are unset by default.

The following example fits with the default timeout: a 10 second sleep, the 5 second timeout and up to 7 seconds
more for storage cleanup and stopping the HTTP server take 22 seconds, within 30.

```yaml
server:
deployment:
lifecycle:
preStop:
exec:
command: ["sleep", "10"]
terminationGracePeriodSeconds: 30
```

This avoids downtime only with a rolling update, which the chart uses with PostgreSQL or more than one replica
unless you set `server.deployment.updateStrategy`. The default single replica on the file database is recreated, so
it is briefly unavailable during an upgrade.

## Configuration

Run `helm show readme oci://registry-1.docker.io/unitycatalog/unitycatalog-chart --version X.Y.Z` for the chart README
Expand Down
3 changes: 3 additions & 0 deletions helm/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ RELEASING.md

# Helm-docs files
README.md.gotmpl

# Chart-testing values
ci/
40 changes: 40 additions & 0 deletions helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,30 @@ not set
<td>Security context for the init container

[Kubernetes docs](https://kubernetes.io/docs/concepts/policy/security-context/)
</td>
</tr>
<tr>
<td>server.deployment.lifecycle</td>
<td>object</td>
<td><pre lang="">
not set
</pre>
</td>
<td>Lifecycle hooks for the server container

On SIGTERM the server stops taking new requests and finishes the ones in flight, for up to
the `server.shutdown-timeout` server property (set under `server.config.extraProperties`).
Kubernetes can still route requests to the pod for a few seconds after it starts terminating,
so a `preStop` sleep keeps the server serving until they stop arriving:

```yaml
lifecycle:
preStop:
exec:
command: ["sleep", "10"]
```

[Kubernetes docs](https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/)
</td>
</tr>
<tr>
Expand Down Expand Up @@ -955,6 +979,22 @@ tcpSocket:<br> port: api<br>timeoutSeconds: 10<br>periodSeconds: 10<br>failureT
<td>Startup probe

[Kubernetes docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
</td>
</tr>
<tr>
<td>server.deployment.terminationGracePeriodSeconds</td>
<td>int</td>
<td><pre lang="">
not set (Kubernetes uses 30)
</pre>
</td>
<td>Seconds Kubernetes waits for the pod to stop before killing it

Set it to more than the `preStop` sleep plus the whole shutdown time. The `server.shutdown-timeout`
entry in the server configuration reference describes it: the timeout plus time for storage
cleanup and for stopping the HTTP server.

[Kubernetes docs](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination)
</td>
</tr>
<tr>
Expand Down
1 change: 1 addition & 0 deletions helm/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Empty on purpose: chart-testing lints with the default values only when no values file is listed in ci/, so this keeps that lint.
8 changes: 8 additions & 0 deletions helm/ci/graceful-shutdown-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Renders the optional graceful shutdown values so that chart lint covers them.
Comment thread
shba24 marked this conversation as resolved.
Resolved
server:
deployment:
lifecycle:
preStop:
exec:
command: ["sleep", "10"]
terminationGracePeriodSeconds: 30
7 changes: 7 additions & 0 deletions helm/templates/server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
{{- with .Values.server.deployment.podSecurityContext }}
securityContext: {{- toYaml . | nindent 8 }}
{{- end }}
{{- /* kindIs keeps an explicit 0, which "with" would drop. */}}
{{- if not (kindIs "invalid" .Values.server.deployment.terminationGracePeriodSeconds) }}
Comment thread
shba24 marked this conversation as resolved.
Resolved
terminationGracePeriodSeconds: {{ .Values.server.deployment.terminationGracePeriodSeconds }}
{{- end }}
initContainers:
- name: init
{{- with .Values.server.deployment.initContainer.securityContext }}
Expand Down Expand Up @@ -166,6 +170,9 @@ spec:
{{- with .Values.server.deployment.securityContext }}
securityContext: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.server.deployment.lifecycle }}
lifecycle: {{- toYaml . | nindent 12 }}
{{- end }}
image: "{{ .Values.server.deployment.image.repository }}:{{ .Values.server.deployment.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.server.deployment.image.pullPolicy | quote }}
ports:
Expand Down
32 changes: 32 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,38 @@ server:
#
resources:

# -- (object) Lifecycle hooks for the server container
# @default -- not set
# @raw
#
# On SIGTERM the server stops taking new requests and finishes the ones in flight, for up to
# the `server.shutdown-timeout` server property (set under `server.config.extraProperties`).
# Kubernetes can still route requests to the pod for a few seconds after it starts terminating,
# so a `preStop` sleep keeps the server serving until they stop arriving:
#
# ```yaml
# lifecycle:
# preStop:
# exec:
# command: ["sleep", "10"]
# ```
#
# [Kubernetes docs](https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/)
#
lifecycle:

# -- (int) Seconds Kubernetes waits for the pod to stop before killing it
# @default -- not set (Kubernetes uses 30)
# @raw
#
# Set it to more than the `preStop` sleep plus the whole shutdown time. The `server.shutdown-timeout`
# entry in the server configuration reference describes it: the timeout plus time for storage
# cleanup and for stopping the HTTP server.
#
# [Kubernetes docs](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination)
#
terminationGracePeriodSeconds:

# -- (array) List of additional volumes to be mounted in the pod
# @default -- not set
# @raw
Expand Down
Loading