Charmed Temporal K8s Tutorial - Deploy Temporal Admin

Deploy Temporal Admin

This is part of the Charmed Temporal Tutorial. Please refer to this page for more information and the overview of the content.

The Temporal Admin Tools are a set of command-line utilities used to configure and support the Temporal server.

Requirements

Deploy

To deploy Charmed Temporal Admin, you need to run the following command, which will fetch the charm from Charmhub and deploy it to your model:

juju deploy temporal-admin-k8s --channel 1.31/stable --base ubuntu@26.04

Check status:

juju status

Wait until the application is ready, when it is ready, juju status will show admin:temporal relation: database connections info not available at the admin app and admin:temporal relation: schema is not ready on the server app.

Relate Admin to Server

The admin charm in 1.31/stable requires two relations to reach active:

  • admin - schema management bridge between admin and server.
  • temporal-host-info - supplies the Temporal frontend’s gRPC host and port to the admin charm so that its cli action can reach the server.

Add both:

juju integrate temporal-k8s:admin              temporal-admin-k8s:admin
juju integrate temporal-k8s:temporal-host-info  temporal-admin-k8s:temporal-host-info

Deprecation notice: server-name is removed. The temporal-host-info relation must be used.

Admin on a different Kubernetes cluster

temporal-k8s provides two endpoints that implement the temporal-host-info interface:

  • temporal-host-info publishes the Temporal frontend’s Kubernetes cluster-internal DNS hostname (for example temporal-k8s.<model>.svc.cluster.local). Use it when the admin charm runs on the same Kubernetes cluster as the server, whether in the same model or a different one.
  • temporal-external-host-info publishes the hostname configured for the server’s ingress relation, along with the ingress listener port and whether it serves TLS. Use it when the admin charm runs on a different Kubernetes cluster from the server, where the cluster-internal hostname cannot be resolved.

The external endpoint requires the server to be exposed through ingress (see Configure ingress). It publishes nothing until ingress is ready, and withdraws its data when ingress is removed. Offer it from the server model and integrate it with the admin charm’s temporal-host-info endpoint:

# In the server model
juju offer temporal-k8s:temporal-external-host-info temporal-k8s-external

# In the admin model
juju consume <controller>:admin/<server-model>.temporal-k8s-external
juju integrate temporal-admin-k8s:temporal-host-info temporal-k8s-external

When the ingress serves TLS, also integrate temporal-admin-k8s:receive-ca-cert with the provider of the CA that signed the ingress certificate; the host-info relation does not carry a CA.

Monitor relations until they settle:

juju status --relations

After a short while, all applications should be active.

Create the initial namespace

You can run the following command to create the initial Temporal namespace:

# Create default namespace:
juju run temporal-admin-k8s/0 cli args="operator namespace create --namespace default --retention 3d" --wait 1m

# Output:
Running operation 19 with 1 task
  - task 20 on unit-temporal-admin-k8s-0

Waiting for task 20...
output: |
  Namespace default successfully registered.
result: command succeeded

The command above uses the cli action with the modern temporal CLI grammar. In 1.23/stable, the legacy tctl action was renamed to cli and the underlying binary changed from the older tctl to the newer temporal CLI. Operator scripts that previously called juju run temporal-admin-k8s/0 tctl args="..." (with the old grammar like --namespace X namespace register --retention 72h) must be updated.

If you are upgrading an existing deployment, see the latest/stable → 1.23/stable upgrade guide.

See next: Deploy Temporal Web UI