Install on Kubernetes

Install the controller from an OCI chart and configure a workflow on an existing Argo cluster.

This is the common Helm-based installation for Kind and any compatible existing Kubernetes cluster. Argo Workflows is required; install it in step 1 if it is missing. The IaC Stack Controller chart installs the controller, its configuration, the IaCStack CRD, and namespace-scoped permissions. WorkflowTemplates, runner images, and workflow ServiceAccounts are selected and managed separately.

The commands below use the alpha release v0.1.0-alpha.2 and its corresponding OCI chart. The release images target Linux/amd64. Use Helm 3 or later, kubectl, curl and a Bash-compatible shell. For a complete disposable-cluster walkthrough, follow Quickstart with Kind. For local builds, see the Kind test suite.

Kubernetes cluster requirements

The installation is distribution-independent and works conceptually in managed or self-managed Kubernetes environments. No Kind commands or AWS credentials are required to install the controller. Use an authorized sandbox context, compatible Kubernetes/Argo versions, Linux/amd64 schedulable nodes, registry access and permissions to install CRDs, RBAC and workloads. The example also needs access to its source repository and IaC provider registry.

Use isolated namespaces and a separate release if another controller or stack already owns these resources. For multi-step PVC examples, provision an appropriate StorageClass. For actual cloud resources, configure identity, backend and network access in the workflow, not in the controller. See EKS lab setup.

1. Check your Argo installation

Select the intended Kubernetes context. Confirm that the Argo controller watches the namespace where the workflow will run. The quickstart values use argo-workflows.

kubectl config current-context
kubectl get namespace argo-workflows
kubectl get crd workflows.argoproj.io workflowtemplates.argoproj.io

If Argo is missing, install it in the selected sandbox cluster (do not run the Kind creation or context-selection commands):

helm upgrade --install argo-workflows argo-workflows \
  --repo https://argoproj.github.io/argo-helm --version 2.0.20 \
  --namespace argo-workflows --create-namespace --wait --timeout 5m
kubectl wait --for=condition=Established \
  crd/workflows.argoproj.io crd/workflowtemplates.argoproj.io --timeout=120s

The command installs Argo Workflows v4.1.7 using Helm chart 2.0.20.

2. Install the chart with the direct workflow values

CHART=oci://ghcr.io/iacstack/charts/iacstack-controller
CHART_VERSION=0.1.0-alpha.2
APP_VERSION=v0.1.0-alpha.2

curl -fsSL "https://10199cf5.iac-stack-controller.pages.dev/examples/download-quickstart.sh" -o download-quickstart.sh && bash download-quickstart.sh || exit 1
cd quickstart

helm upgrade --install iacstack-controller "$CHART" --version "$CHART_VERSION" \
  --namespace platform-system --create-namespace --values controller-config.yaml \
  --wait --timeout 4m
kubectl wait --for=condition=Established crd/iacstacks.iacstack.io --timeout=120s

For your own workflow, declare each alias in workflows, with its Argo namespace, template, ServiceAccount and contract outputs. Create the target namespaces first. The chart grants the controller access to the stack namespace and each configured workflow namespace. In a multi-workflow installation, defaultWorkflow selects the alias for stacks that omit spec.workflowRef.name.

3. Run the direct workflow

kubectl kustomize . > workflow-bundle.yaml &&
  sed "s|iacstack-runner-opentofu:local|ghcr.io/iacstack/iacstack-runner-opentofu:$APP_VERSION|" \
    workflow-bundle.yaml > workflow-release.yaml || exit 1

OpenTofu is the default. If you prefer Terraform, run this command before applying:

sed "s|iacstack-runner-opentofu:$APP_VERSION|iacstack-runner-terraform:$APP_VERSION|;s|value: tofu|value: terraform|" \
  workflow-release.yaml > workflow-terraform.yaml &&
  mv workflow-terraform.yaml workflow-release.yaml
kubectl apply -f workflow-release.yaml
kubectl apply -f stack.yaml
kubectl -n platform-system wait --for=condition=Ready iacstack/hello-stack --timeout=5m

Once the stack is ready, check the Workflow and the target.

FIRST_WORKFLOW=$(kubectl -n platform-system get iacstack hello-stack \
  -o jsonpath='{.status.execution.workflow}')
kubectl -n argo-workflows get workflow "$FIRST_WORKFLOW" -o jsonpath='{.status.phase}{"\n"}'
kubectl -n iacstack-quickstart get configmap hello-stack \
  -o jsonpath='{.data.message}{"\n"}'

The output should be Hello from IaCStack.

The example automatically applies changes in its lab namespace. If you created a Kind cluster, return to Quickstart with Kind for cleanup. In an existing cluster, follow the upgrade and uninstall guide and remove only resources you own.

Continue with the workflow guides using the same authorized sandbox context; do not delete an existing Kubernetes cluster to clean up a lab.