diagrid region deploy
Deploy a Diagrid region to a Kubernetes cluster
Description
Deploy a Diagrid region to a Kubernetes cluster and register it.
This command installs the region Helm chart on the target cluster, configures the region's gateway, and registers the region so it is ready to serve apps. Re-running it against the same cluster performs an in-place upgrade.
It works with any Kubernetes cluster — a local Kind cluster for development or a managed cluster on EKS, AKS, or GKE. The provider is auto-detected and the gateway configured accordingly; on cloud providers with LoadBalancer support the public ingress address is resolved automatically after install.
When run in an interactive terminal, you will be prompted to pick a cluster if no targeting flags are supplied. The generated defaults are opinionated toward testing and POCs (managed domains, self-hosted Postgres and Kafka) — use --values-file to layer your own Helm values on top for custom setups. See the region chart reference for the full set of customization options: https://github.com/diagridio/charts/blob/main/charts/catalyst/README.md
diagrid region deploy [regionid] [flags]
Examples
# Deploy to the current kubectl context (interactive cluster selection if TTY)
diagrid region deploy my-region
# Deploy to a specific kubecontext
diagrid region deploy my-region --context my-eks-cluster
# Deploy using a specific kubeconfig file
diagrid region deploy my-region --kubeconfig /path/to/kubeconfig
# Create a local Kind cluster and deploy
diagrid region deploy my-region --create-cluster
# Create a Kind cluster with a custom name
diagrid region deploy my-region --create-cluster --cluster-name my-cluster
# Override auto-detected provider
diagrid region deploy my-region --provider eks
# Deploy a specific chart version
diagrid region deploy my-region --version v1.2.3
# Deploy with additional custom Helm values
diagrid region deploy my-region --values-file ./custom-values.yaml
# Bring your own domain, served on one hostname with no wildcard DNS record or certificate
diagrid region deploy my-region --managed-domain=false --shared-project-endpoint --ingress https://catalyst-api.company.com
Options
--version string Region chart version to install (e.g., v1.2.3). Defaults to the latest release from https://gallery.ecr.aws/diagrid/catalyst.
--helm-chart string OCI reference of the region Helm chart to install from. (default "oci://public.ecr.aws/diagrid/catalyst")
--wait-timeout duration How long to wait for the region to become ready before giving up. (default 10m0s)
--kubeconfig string Path to the kubeconfig file to use when targeting an existing cluster.
--context string Name of the kubecontext to deploy to. Defaults to your current context.
--create-cluster Spin up a new local Kind cluster for this deployment — ideal for a quick local trial.
--cluster-name string Name for the Kind cluster being created. Auto-generated from the region name when omitted. Requires --create-cluster.
--provider string Force a specific cluster provider instead of auto-detecting (kind, eks, aks, gke, generic).
--values-file string Additional Helm values file to merge on top of the generated defaults. See https://github.com/diagridio/charts/blob/main/charts/catalyst/README.md for available options.
--enable-public-management-api Enable an authenticated public endpoint for accessing the region's management API. You can use this if you do not have direct network access to your region from your local machine. Only applied when creating a new region; ignored on upgrade.
--enable-cert-manager-pki Install cert-manager + trust-manager and configure Dapr Sentry to use a self-signed cluster PKI as its issuer instead of the default Sentry-generated CA. See charts/guides/dapr-pki for the manual equivalent.
--managed-domain Run the region with a Diagrid-managed domain (DNS + TLS provisioned automatically from the gateway LoadBalancer address). Set --managed-domain=false to bring your own domain — you will be responsible for configuring DNS and TLS certificates yourself. (default true)
--shared-project-endpoint Serve the whole region on one hostname, given as --ingress (for example https://catalyst-api.mycompany.com), instead of a wildcard domain. Every project's HTTP and gRPC API, region management, OIDC discovery, the trust bundle and app tunnels are served on it, and the App ID's API token selects the project. Only for self-hosted regions without a managed domain: the region needs one DNS record and one TLS certificate for that hostname, and no wildcard. Use it with --managed-domain=false when you cannot create a wildcard DNS record or certificate. Only applied when creating a new region; ignored on upgrade.
--ingress string The URL the region's gateway is reached at: a wildcard domain (example: https://*.mydomain.com:443), or, with --shared-project-endpoint, one full hostname with no "*." (example: https://catalyst-api.mydomain.com). The port is optional. http:// is accepted but not advised for production. Required when --managed-domain=false on a cloud cluster; ignored otherwise (the control plane derives the URL from the agent's reported address for managed-domain regions, and a local URL is auto-generated for kind clusters).
-h, --help help for deploy
Options inherited from parent commands
--api-key string Diagrid Cloud API key
SEE ALSO
- diagrid region - Manage regions