Skip to main content
CetiRun

Publish images and charts

Use official MCR releases, or build and publish CetiRun images and charts for a custom installation.

Official CetiRun images and charts are on Microsoft Container Registry (MCR). For a custom build or private registry, see Publish the images and charts.

Use official MCR artifacts

Choose a release and use one version for all CetiRun images and charts:

  • Images: mcr.microsoft.com/aks/ai-runtime/cetirun/<image>:<version>
  • Charts: oci://mcr.microsoft.com/aks/ai-runtime/cetirun/helm/<chart>, with --version <version>

Pulls need no login, but the workstation, the Operator, and the nodes need network access. These commands check two artifacts of 0.2.2 after publication:

helm show chart oci://mcr.microsoft.com/aks/ai-runtime/cetirun/helm/cetirun-platform --version 0.2.2
docker buildx imagetools inspect mcr.microsoft.com/aks/ai-runtime/cetirun/cetirun-operator:0.2.2

scripts/release-artifacts.json lists all artifacts. make deploy checks the selected inventory before it writes. make deploy-plan does not check registry availability.

Registry access

Check each artifact path, for MCR or a custom registry:

  • The Helm client of the workstation must be able to read all charts of the release in the registry. make deploy checks them before it writes, but it installs the charts of your clone. The standalone helpers can use their local charts instead, with LOCAL_CHART=1.
  • The operator must have access to the agent chart in the registry when it runs. For a private registry, acrDockerSecret mounts a kubernetes.io/dockerconfigjson Secret from the operator namespace into its Helm client.
  • Nodes must have pull access to the platform images and to the selected agent and desktop images. They also need the images of other projects that Private registries and restricted networks lists. Node registry permissions do not supply credentials to the operator’s Helm client. For operator-managed Agents, Portal accepts per-Agent credentials, and Operator creates the namespace-local pull Secret. Refer to private registries. For Standalone Agent Helm releases, any referenced imagePullSecrets must still exist in their release namespace.
  • The imagePullSecrets of the Operator chart apply to the admission server and the CetiAdmin hook Jobs, not to the Operator Deployment. For the Operator image, use a node pull path that works.

Publish the images and charts

Use this optional procedure for a custom build or private registry. MCR is not a push destination. Use a writable registry and an unused version; 0.2.2 below is an example.

Use a machine with Docker Buildx, Helm, Python 3, and Bash. On this machine, sign in to the registry with docker login and helm registry login. Then run this command from a clone of the repository:

make publish REGISTRY=registry.example.com VERSION=0.2.2 \
  GIT_SHA="$(git rev-parse HEAD)"

The command builds and pushes all images and charts in scripts/release-artifacts.json. These include the operator, Portal, AI Gateway, Agent Identity Broker, OpenClaw, Hermes, VS Code Server, and native Copilot, Claude Code, and Codex example images, and the platform, Istio, and agent (helm/cetirun) charts. Then the command pulls each chart back to examine it. Refer to the unified release inventory.

ACCEPT_VSCODE_SERVER_LICENSE_TERMS defaults to true, so builds accept the VS Code Server license without a separate flag or prompt. An explicit false stops builds that include VS Code Server. The command also stops if a tag already exists.

If you do not accept that license yet, publish the remaining artifacts with the release CLI and exclude the declared optional VS Code image explicitly:

python3 -B scripts/cetirun-release.py publish \
  --registry registry.example.com --version 0.2.2 \
  --git-sha "$(git rev-parse HEAD)" \
  --exclude-image cetirun-vscode

This selection publishes 12 images and all 9 charts. The normal make publish path always selects the complete inventory. Use the same selection in the environment file:

release:
  excludeImages:
    - cetirun-vscode

The deployment helper rejects unknown, duplicate, or required image exclusions. It also rejects any configuration that still references an excluded image, including an approvedImages digest for Custom Agents. Remove that reference and do not create or retain a VS Code Server Agent for this deployment. When the Agent CRD exists, the helper also stops before a Helm write if a retained Custom Agent still references that image. This does not bypass the VS Code builder’s own license check.

Select the version

For a new official release, maintainers first run make set-version VERSION=<version>. This command changes the version in the charts and in the other source files. Commit the change, so that GIT_SHA names the source of the build.

For a test build, for example of a branch, set another VERSION without a change to the source. The release CLI copies the working tree to a temporary directory, and it sets the version only in that copy. GIT_SHA names the commit of the working tree. If the working tree has changes that are not committed, the build includes them, and GIT_SHA does not fully identify the source.

The OpenClaw builder

The build of the OpenClaw image runs an installer. The openat2 system call is necessary for this installer. The Dockerfile checks the actual builder before the plugin downloads, and stops with guidance if that builder blocks the call. Use a Linux Docker Buildx builder that permits openat2; remote builders that block the syscall, including Azure Container Registry Tasks, are unsupported.

Use the artifacts with make deploy

For an official release, set release as the installation example shows. For a custom build, use its registry, version, commit, and image selection. Before it writes, make deploy makes sure that every selected image and every chart of this version is in the registry. It sets the registry and the version of the platform images and of the agent chart. As a result, image tags are not necessary in the environment file.

Run make deploy from the same commit that built the artifacts. make deploy renders and installs the charts of your clone and sets only their version to release.version. It does not compare the clone with the artifacts in the registry. release.gitSHA must be a full 40-character commit ID. make deploy records it in the plan, but it does not compare it with the clone. Before each run, compare it yourself:

git rev-parse HEAD
git status --short

The first command must print release.gitSHA. The second command must print nothing.

Read the digests of the Custom images that you approve, for example Pi and VS Code Server:

docker buildx imagetools inspect mcr.microsoft.com/aks/ai-runtime/cetirun/cetirun-pi-agent:0.2.2
docker buildx imagetools inspect mcr.microsoft.com/aks/ai-runtime/cetirun/cetirun-vscode:0.2.2

For a custom build, use your registry and version. Put the full references, <registry>/<image>@sha256:<digest>, in platform.values.cetirun-operator.customRuntime.approvedImages. Read the digests again after each release change. make deploy checks only that each digest exists, so an old digest also passes. Publication does not qualify an image’s UID, HOME, or model access.

Example: Azure Container Registry

When the artifacts are in an Azure Container Registry, these steps cover the nodes’ image pulls and the operator’s chart pulls. In these steps, the agent chart is helm/cetirun in the registry. First, replace the example values. CHART_VERSION is the version that you published:

ACR_NAME=exampleregistry
CLUSTER_RESOURCE_GROUP=example-rg
CLUSTER_NAME=example-aks
CHART_VERSION=0.2.2

The registry’s host is its login server. This is <registry>.azurecr.io, or a name with a hash when the registry has domain name label protection. Read the login server rather than build it. Use it wherever the registry’s host appears, as in cetirun.chart.repoURL (oci://<login server>/helm/cetirun):

ACR_LOGIN_SERVER=$(az acr show --name "$ACR_NAME" --query loginServer -o tsv)
  1. To let the nodes pull images, give the cluster’s kubelet identity a role on the registry. You must have permission to assign roles on the registry. The role depends on the registry’s role assignment permissions mode:

    az acr show --name "$ACR_NAME" --query roleAssignmentMode -o tsv
    

    With LegacyRegistryPermissions (RBAC registry permissions), attach the registry, which assigns AcrPull:

    az aks update --resource-group "$CLUSTER_RESOURCE_GROUP" \
      --name "$CLUSTER_NAME" --attach-acr "$ACR_NAME"
    

    With AbacRepositoryPermissions (RBAC registry and ABAC repository permissions), the registry does not honor AcrPull. Also, AKS does not support the attachment of the registry. Assign Container Registry Repository Reader instead:

    KUBELET_OBJECT_ID=$(az aks show --resource-group "$CLUSTER_RESOURCE_GROUP" \
      --name "$CLUSTER_NAME" --query identityProfile.kubeletidentity.objectId -o tsv)
    az role assignment create --role "Container Registry Repository Reader" \
      --assignee-object-id "$KUBELET_OBJECT_ID" --assignee-principal-type ServicePrincipal \
      --scope "$(az acr show --name "$ACR_NAME" --query id -o tsv)"
    

    Without a condition, the assignment covers every repository in the registry, as AcrPull does. Refer to AKS and Azure Container Registry.

  2. Give the operator’s Helm client a token that can only read the agent chart. The commands create the token without passwords and generate one separately. As a result, no command prints the password. The commands also write the registry configuration without the password on a command line. The Secret goes in the operator namespace, which is cetirun-system by default. If necessary, create the namespace first:

    az acr scope-map create --registry "$ACR_NAME" --name cetirun-chart-read \
      --repository helm/cetirun content/read metadata/read
    az acr token create --registry "$ACR_NAME" --name cetirun-operator \
      --scope-map cetirun-chart-read --no-passwords
    password=$(az acr token credential generate --registry "$ACR_NAME" \
      --name cetirun-operator --password1 --expiration-in-days 90 \
      --query 'passwords[0].value' -o tsv)
    auth=$(printf '%s:%s' cetirun-operator "$password" | base64 | tr -d '\n')
    (umask 077 && printf '{"auths":{"%s":{"auth":"%s"}}}\n' \
      "$ACR_LOGIN_SERVER" "$auth" > registry-config.json)
    unset password auth
    kubectl create secret generic acr-helm-pull --namespace cetirun-system \
      --type=kubernetes.io/dockerconfigjson \
      --from-file=.dockerconfigjson=registry-config.json
    

    Use kubectl create, not kubectl apply. The apply command also copies the credential into the last-applied-configuration annotation. Set acrDockerSecret: acr-helm-pull (cetirun-operator.acrDockerSecret in the platform chart). In the environment file of make deploy, the field is platform.values.cetirun-operator.acrDockerSecret. Before the current one expires, generate a new password and replace the Secret. Refer to Certificates and credentials.

  3. Fetch the chart with the same file, as the operator does. Then delete the file:

    helm show chart "oci://$ACR_LOGIN_SERVER/helm/cetirun" \
      --version "$CHART_VERSION" --registry-config registry-config.json
    rm registry-config.json
    

The push of the images and charts into the registry also depends on the role assignment permissions mode that step 1 reads. With LegacyRegistryPermissions, AcrPush lets an identity push. Owner and Contributor on the registry also let an identity push. With AbacRepositoryPermissions, the registry honors neither AcrPush nor the repository access of Owner and Contributor. In this mode, these roles manage only the registry itself.

The identity that pushes must have Container Registry Repository Writer, assigned on the registry like the role in step 1. A new assignment can take a few minutes to apply. If you copy the artifacts in from another registry with az acr import, this is an operation on the registry itself. Owner and Contributor still allow this operation. As a result, a repository role on the registry is not necessary for the copy. Refer to ABAC repository permissions.

Private registries and restricted networks

make publish pushes only the artifacts of scripts/release-artifacts.json. An installation also pulls the images of other projects in this table. To pull them from a private registry, copy each image to that registry. Then set its repository, tag, and digest fields under the value in the table. Set a digest for each image, so that the reference does not change.

ImageDefault repositoryValue
OAuth2 Proxyquay.io/oauth2-proxy/oauth2-proxyistio.values.oauth2Proxy.image
Session store of OAuth2 Proxymcr.microsoft.com/azurelinux/base/valkeyistio.values.oauth2Proxy.sessionStore.redis.bundled.image
Entra auth sidecar of the Brokermcr.microsoft.com/entra-sdk/auth-sidecarbroker.values.authSDK
AI Gateway PostgreSQLmcr.microsoft.com/azurelinux/base/postgresplatform.values.cetirun-ai-gateway.postgresql.bundled.image
AI Gateway Valkeymcr.microsoft.com/azurelinux/base/valkeyplatform.values.cetirun-ai-gateway.redis.bundled.image
ADX-Mon collector of the ADX-Mon collectionmcr.microsoft.com/aks/ai-runtime/adx-mon/collectorplatform.values.cetirun-observability.collector.image
ADX-Mon ingestormcr.microsoft.com/aks/ai-runtime/adx-mon/ingestorplatform.values.cetirun-observability.ingestor.image
ADX-Mon alerter, with an alert receivermcr.microsoft.com/aks/ai-runtime/adx-mon/alerterplatform.values.cetirun-observability.alerter.image
kube-state-metrics of the ADX-Mon collectionmcr.microsoft.com/oss/v2/kubernetes/kube-state-metricsplatform.values.cetirun-observability.kubeStateMetrics.image
cert-manager, with publicTLS install modequay.io/jetstack/cert-manager-*None

global.registry does not change these images. The cert-manager images always come from quay.io, because the deployment accepts no other registry for them. Custom Agents use only the images in customRuntime.approvedImages.

You can lock the OpenClaw and Hermes image defaults of the agent chart to digests in a new private registry prefix. To do this, set OPENCLAW_IMAGE_DIGEST and HERMES_IMAGE_DIGEST when you publish. Refer to the scripts README.

These components connect to services outside the cluster:

EndpointComponentChange it with
The release registrymake deploy reads the images and charts. Nodes pull the images. The Operator pulls the agent chartrelease.registry
The provider endpoints of the modelsAI Gatewayapi_base of each model
LiteLLM’s price table on GitHubEach start of an AI Gateway Pod. If the download fails, the AI Gateway uses the table in its imageplatform.values.cetirun-ai-gateway.priceTable: bundled
https://registry.npmjs.org/Agents that request npm skillssharedSkills.npmRegistry for all Agents
login.microsoftonline.comOAuth2 Proxy sign-in and the BrokerNo setting
graph.microsoft.com and management.azure.comThe Operator for Agent Identity, and Agent toolsNo setting
The Key Vault of identity.keyVaultKeyUrlThe Broker, to encrypt connection recordsidentity.keyVaultKeyUrl
github.com, api.github.com, and *.githubcopilot.comGitHub Copilot sign-in and modelsNo setting
The Kusto clusterThe ADX-Mon collection. With content.enabled, also the AI Gateway, at the query endpoint and at its ingest- endpointobservability.adx.endpoint, and platform.values.cetirun-ai-gateway.content.adx.endpoint for the AI Gateway
The alert receiverThe ADX-Mon alerter, at <endpoint>/alertsobservability.alerter.endpoint
Let’s Encrypt and two public DNS resolverspublicTLSNo setting. Refer to Public DNS and TLS