Kubernetes¶
The Helm chart oci://ghcr.io/open-lakehouse/charts/uc-server runs the server and the web UI, with
the catalog in PostgreSQL. It needs Helm 3.8 or later.
# values.yaml
server:
db:
type: postgresql
postgresqlConfig:
host: postgres.example.com
dbName: ucdb
username: uc
passwordSecretName: uc-db # a Secret with the key `password`
ssl:
enabled: true
rootCertConfigMapName: postgres-ca # a ConfigMap with ca.crt
deployment:
replicaCount: 2
kubectl create namespace uc
kubectl -n uc create secret generic uc-db --from-literal=password='<password>'
helm install uc oci://ghcr.io/open-lakehouse/charts/uc-server \
--version 0.0.2 --namespace uc -f values.yaml
kubectl -n uc port-forward svc/uc-uc-server-server 8080:8080
Open http://localhost:8080 for the web UI. The sections below add values for each task; Helm chart values lists them all.
Sign-in¶
auth:
enabled: true
users: # made at each start when missing
- email: alice@example.com
name: Alice
publicUrl: https://uc.example.com
oidc: # the web UI's sign-in
issuer: https://accounts.google.com
clientSecretName: uc-oauth # a Secret with clientId and clientSecret
issuers: # the providers whose tokens the API takes
- name: google # for `uc auth login`; with direct, on every request
issuer: https://accounts.google.com
audiences: [<client id>]
server:
deployment:
env:
UC_AUTH_ADMIN_PRINCIPALS: alice@example.com
- In the identity provider, allow the redirect URI
https://uc.example.com/auth/callback. - For an auth proxy instead of OpenID Connect, set
auth.forward. - At install, the chart makes a Secret with the server's keys, and keeps it:
private_key.pemsigns its tokens, andsecrets_key.pemseals the secrets of credentials. To change a key, see A new signing key and A new secrets key: replicas need the two steps. - Before an admin can sign in, get a token of the server's
adminuser:kubectl -n uc exec deploy/uc-uc-server-server -- uc-server token.
Sign-in and authorization tells how this works.
Cloud storage¶
storage:
tableStorageRoot: s3://analytics/managed
locations:
- url: s3://analytics
region: us-east-1
awsIamRoleArn: arn:aws:iam::123456789012:role/uc
The server's identity assumes the role. Without storage.identity.aws.credentialsSecretName, it
comes from the environment, such as the role of the pod's service account
(serviceAccount.create and annotations). See Cloud storage.
Expose the server¶
Or httpRoute, for the Gateway API.
Other settings¶
For a setting without a value in the chart, use server.deployment.env, or a uc.toml in
server.config.toml:
Operations¶
- The probes and the metrics are on the port
obs(8081). See Operations. - The pod runs as a non-root user, with a read-only root filesystem and no capabilities.