Helm deployment with archi install
Archi can render and install a Helm chart from the same configuration and secrets that drive its container-based deployments. The archi install command prepares a chart in the directory you provide with --templates-dir and then installs it with Helm.
Prerequisites
Before using Helm deployments, make sure you have:
- Helm v3 installed and available on your
PATH - Access to a Kubernetes cluster with a working
kubectlcontext - The Archi CLI installed in your environment
- One Archi configuration file and, if needed, an environment file with secrets
Basic workflow
- Prepare your Archi config and secrets.
- Render and validate the chart in a temporary directory:
mkdir -p /tmp/archi-helm
archi install \
--name my-archi \
--config configs/config.yaml \
--templates-dir /tmp/archi-helm \
--env-file .secrets.env \
--services chatbot \
--dry-run
- Install the chart for real:
archi install \
--name my-archi \
--config configs/config.yaml \
--templates-dir /tmp/archi-helm \
--env-file .secrets.env \
--services chatbot
- Inspect the release:
helm status my-archi
kubectl get pods
The Helm release name is derived from
--name, with underscores replaced by hyphens so it remains valid for Helm.
Common options
The archi install command supports the same core inputs as the container workflow:
--configor--config-dir: provide the Archi configuration. The CLI currently expects exactly one config file.--templates-dir: directory where the generated chart files will be written.--env-file: file containing deployment secrets.--services: comma-separated list of services to include.--gpu-ids: pass GPU settings for supported deployments.--hostmode: use host networking for the rendered resources.--dry-run: render and validate the chart without installing it.--reinstall: force Helm to reinstall or upgrade the existing release.
What gets generated
The install command writes a Helm chart with files such as:
Chart.yamlandvalues.yaml- Kubernetes manifests under the chart
templates/directory - Secret and PVC resources derived from your Archi config
- Service-specific resources for the enabled services
This makes it easy to inspect the rendered manifests before applying them or to keep a versioned copy of a deployment chart.
Upgrading and removing a deployment
To replace an existing Helm release:
archi install \
--name my-archi \
--config configs/config.yaml \
--templates-dir /tmp/archi-helm \
--env-file .secrets.env \
--services chatbot \
--reinstall
To remove a deployment:
helm uninstall my-archi
Troubleshooting
If the deployment fails, check the following:
- Helm is installed and available in your shell:
helm version - Your Kubernetes context is correct:
kubectl config current-context - The config file is valid and only one file is provided to
--config - The secrets file contains the values required for the selected services
- The selected services are supported by your current Archi configuration
For more detail about the CLI options, see the CLI reference.