argo-workflows

by Argo Project

Helm chartv2.0.19App v4.1.7Verified publisher

A Helm chart for Argo Workflows

About this chart

Argo Workflows Chart

This is a community maintained chart. It is used to set up argo and its needed dependencies through one command. This is used in conjunction with helm.

If you want your deployment of this helm chart to most closely match the argo CLI, you should deploy it in the argo namespace.

Pre-Requisites

Custom resource definitions

Full vs Minified CRDs

This chart supports two CRD variants:

  • Full CRDs (default): Include complete OpenAPI schemas for better validation and type safety. These are approximately 11MB total uncompressed.
  • Minified CRDs: Use x-kubernetes-preserve-unknown-fields to accept any fields. Smaller but provide almost no validation.

As of Argo Workflows version 4, full CRDs are the default, matching upstream.

To use minified CRDs instead:

helm install my-release argo/argo-workflows --set crds.full=false

How the full CRDs are installed

Full CRDs are too large to include directly in Helm templates (they would exceed the Kubernetes Secret size limit that Helm uses to store releases). Instead, this chart uses a pre-install/pre-upgrade hook Job that runs the upstream CRD installer image, quay.io/argoproj/argo-workflows-crdinstaller. That image bundles kubectl together with the full CRDs for its own version and applies them with kubectl apply --server-side --force-conflicts.

This means helm install works out of the box with full CRDs — no manual steps required. The hook Job requires:

  • Access to the CRD installer image, tagged with the chart's app version (overridable via crds.upgradeJob.image)
  • ClusterRole permissions to create/update CRDs (created automatically as hook resources)

Because the CRDs travel inside the image, the Job needs no network access beyond your registry, so it works in air-gapped clusters. You can customize the image, image pull secrets, and the rest of the pod spec via crds.upgradeJob values (see values table below).

Using Argo CD

Argo CD supports Helm hooks natively by converting them to Argo CD PreSync hooks. The CRD install hook Job will run automatically during Argo CD sync — no special configuration is required.

Installing CRDs Outside the Chart

Some users would prefer to install the CRDs outside of the chart. You can disable the CRD installation of this chart by using --set crds.install=false when installing the chart.

Helm cannot upgrade custom resource definitions in the <chart>/crds folder by design. Starting with 3.4.0 (chart version 0.19.0), the CRDs have been moved to <chart>/templates to address this design decision.

If you are managing CRDs outside the chart, apply them manually:

# For full CRDs (requires Server Side Apply due to size)
kubectl apply --server-side --force-conflicts -k "https://github.com/argoproj/argo-workflows/manifests/base/crds/full?ref=<appVersion>"

# Eg. version v4.0.2
kubectl apply --server-side --force-conflicts -k "https://github.com/argoproj/argo-workflows/manifests/base/crds/full?ref=v4.0.2"

# For minified CRDs (standard apply works fine)
kubectl apply -k "https://github.com/argoproj/argo-workflows/manifests/base/crds/minimal?ref=<appVersion>"

ServiceAccount for Workflow Spec

The workflow executor needs RBAC to report status back to the controller (creating and patching workflowtaskresults.argoproj.io). The default ServiceAccount in a namespace does not have this permission, so submitting a workflow without any setup fails with:

workflowtaskresults.argoproj.io is forbidden: User "system:serviceaccount:<namespace>:default" cannot create resource "workflowtaskresults"

To have the chart create a workflow ServiceAccount with the required RBAC in the release namespace (and any controller.workflowNamespaces), configure values.yaml like below, and submit workflows with that ServiceAccount (argo submit --serviceaccount argo-workflow ... or spec.serviceAccountName).

workflow:
  serviceAccount:
    create: true
    name: "argo-workflow"
  rbac:
    create: true
controller:
  workflowNamespaces:
    - default
    - foo
    - bar

Set ServiceAccount on Workflow.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: hello-world-
spec:
  entrypoint: whalesay
  serviceAccountName: argo-workflow # Set ServiceAccount
  templates:
    - name: whalesay
      container:
        image: docker/whalesay
        command: [ cowsay ]
        args: [ "hello world" ]

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add argo https://argoproj.github.io/argo-helm
"argo" has been added to your repositories

$ helm install my-release argo/argo-workflows
NAME: my-release
...

Changelog

For full list of changes, please check ArtifactHub [changelog].

Usage Notes

High Availability

This chart installs the non-HA version of Argo Workflows by default. If you want to run in HA mode, you can use these example values as a starting point. Please see the upstream Operator Manual's High Availability page to understand how to scale Argo Workflows in depth.

Workflow controller

This chart defaults to setting the controller.instanceID.enabled to false now, which means the deployed controller will act upon any workflow deployed to the cluster. If you would like to limit the behavior and deploy multiple workflow controllers, please use the controller.instanceID.enabled attribute along with one of its configuration options to set the instanceID of the workflow controller to be properly scoped for your needs.

Init-less pod layout (beta)

Argo Workflows v4.1+ supports an opt-in [init-less pod layout], where the executor is provided to workflow pods through an [image volume] instead of an init container copying the binary. Enable it with controller.initlessPod.enabled: true.

Requirements and caveats:

  • Requires the ImageVolume feature gate to be enabled on the kube-apiserver and all kubelets running workflow pods. Image volumes are beta in Kubernetes v1.33-1.35 and enabled by default from v1.36. If the cluster does not support them, workflow pod creation will fail.
  • A custom executor.image must provide a manifest list covering every node architecture in the cluster.
  • Workflows whose main container sets securityContext.readOnlyRootFilesystem: true may fail to load input artifacts placed on the read-only root filesystem in this mode.

OpenTelemetry tracing (beta)

Argo Workflows v4.1+ can emit [OpenTelemetry traces] from the workflow controller and the executor. Tracing is configured entirely through standard OTEL_* environment variables and is enabled by setting an OTLP endpoint; the chart already provides the necessary hooks:

controller:
  # Traces from the workflow controller
  extraEnv:
    - name: OTEL_EXPORTER_OTLP_ENDPOINT
      value: http://otel-collector:4318
    - name: OTEL_EXPORTER_OTLP_PROTOCOL
      value: http/protobuf

# Traces from the executor in workflow pods
executor:
  env:
    - name: OTEL_EXPORTER_OTLP_ENDPOINT
      value: http://otel-collector:4318
    - name: OTEL_EXPORTER_OTLP_PROTOCOL
      value: http/protobuf

# Optional: expose the OTEL configuration to your own code in main containers
mainContainer:
  env:
    - name: OTEL_EXPORTER_OTLP_ENDPOINT
      value: http://otel-collector:4318
    - name: OTEL_EXPORTER_OTLP_PROTOCOL
      value: http/protobuf

The Argo Server is not instrumented for tracing.

Argo Workflows server authentication

Argo Workflows server provides some choices for authentication mechanism and you can configure .Values.server.authModes. By default, authentication mode is [server], for local development purposes or cases where your gateway authentication is covered by some other means. Please refer to [Argo Server Auth Mode] for more details.

Argo Workflows server also supports SSO and you can enable it to configure .Values.server.sso and .Values.server.authModes. In order to manage access levels, you can optionally add RBAC to SSO. Please refer to [SSO RBAC] for more details.

Ingress Configuration

Argo Workflows server can be exposed using Kubernetes Ingress or Gateway API HTTPRoute.

Traditional Kubernetes Ingress

See the server.ingress section in values.yaml for standard Ingress configuration.

Gateway API HTTPRoute

The Gateway API provides a modern, extensible way to configure ingress traffic routing. This chart supports HTTPRoute resources as an alternative to traditional Ingress.

Note: Gateway API support is EXPERIMENTAL. Support depends on your Gateway controller implementation. Some controllers may require additional configuration (e.g., BackendTLSPolicy for HTTPS backends). Refer to Gateway API implementations for controller-specific details.

server:
  httproute:
    enabled: true
    parentRefs:
      - name: example-gateway
        namespace: gateway-system
        sectionName: https
    hostnames:
      - argoworkflows.example.com

Gateway API with TLS backend

For HTTPS backends with Gateway API (when server.secure: true), you may need to configure BackendTLSPolicy (experimental, v1alpha3):

Warning: BackendTLSPolicy is in EXPERIMENTAL status. Not all Gateway controllers support this resource (e.g., Cilium does not yet support it).

server:
  secure: true

  httproute:
    enabled: true
    parentRefs:
      - name: example-gateway
        namespace: gateway-system

  backendTLSPolicy:
    enabled: true
    targetRefs:
      - group: ""
        kind: Service
        name: argo-workflows-server
    validation:
      hostname: argo-workflows-server.argo.svc.cluster.local
      wellKnownCACertificates: System

Values

The values.yaml contains items used to tweak a deployment of this chart. Fields to note:

  • controller.instanceID.enabled: If set to true, the Argo Controller will ONLY monitor Workflow submissions with a --instanceid attribute
  • controller.instanceID.useReleaseName: If set to true then chart set controller instance id to release name
  • controller.instanceID.explicitID: Allows customization of an instance id for the workflow controller to monitor
  • singleNamespace: When true, restricts the workflow controller to operate in just the single namespace (that one of the Helm release).
  • controller.workflowNamespaces: This is a list of namespaces where the workflow controller will manage workflows. Only valid when singleNamespace is false.

General parameters

KeyTypeDefaultDescription
apiVersionOverrides.autoscalingstring""String to override apiVersion of autoscaling rendered by this helm chart
apiVersionOverrides.cloudgooglestring""String to override apiVersion of GKE resources rendered by this helm chart
apiVersionOverrides.monitoringstring""String to override apiVersion of monitoring CRDs (ServiceMonitor) rendered by this helm chart
commonLabelsobject{}Labels to set on all resources
crds.annotationsobject{}Annotations to be added to all CRDs (only applies when crds.full=false)
crds.fullbooltrueUse full CRDs with complete OpenAPI schemas. When false, uses minified CRDs with x-kubernetes-preserve-unknown-fields. Full CRDs are very large and are installed via a pre-install/pre-upgrade hook Job that uses server-side apply.
crds.installbooltrueInstall and upgrade CRDs
crds.keepbooltrueKeep CRDs on chart uninstall
crds.upgradeJob.extraEnvlist[]Extra environment variables to provide to the CRD install Job container
crds.upgradeJob.imageobject{"registry":"quay.io","repository":"argoproj/argo-workflows-crdinstaller","tag":""}Image for the container that applies the full CRDs. It bundles the CRDs for its own tag, so keep it in step with the app version.
crds.upgradeJob.image.registrystring"quay.io"Registry to use for the CRD installer
crds.upgradeJob.image.repositorystring"argoproj/argo-workflows-crdinstaller"Repository to use for the CRD installer
crds.upgradeJob.image.tagstring""Image tag for the CRD installer. Defaults to .Values.images.tag.
crds.upgradeJob.imagePullSecretslist.Values.images.pullSecretsImage pull secrets for the CRD install Job
crds.upgradeJob.nodeSelectorobject{}Node selector for the CRD install Job
crds.upgradeJob.podLabelsobject{}Optional labels to add to the CRD install Job pod
crds.upgradeJob.podSecurityContextobject{}Pod security context for the CRD install Job pod
crds.upgradeJob.resourcesobject{}Resources for the CRD install Job containers
crds.upgradeJob.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":8737,"runAsNonRoot":true,"runAsUser":8737,"seccompProfile":{"type":"RuntimeDefault"}}Security context for the CRD install Job container
crds.upgradeJob.tolerationslist[]Tolerations for the CRD install Job
createAggregateRolesbooltrueCreate ClusterRoles that extend existing ClusterRoles to interact with Argo Workflows CRDs.
emissary.imageslist[]The command/args for each image on workflow, needed when the command is not specified and the emissary executor is used.
extraObjectslist[]Array of extra K8s manifests to deploy

|

Deploy argo-workflows with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has argo-workflows on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartargo-workflows is pinned at v2.0.19 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply