argo-workflows

by apecloud

Helm chartv0.40.14App v3.5.5Verified 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 kube-system namespace.

Pre-Requisites

Custom resource definitions

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 using Argo Workflows chart version prior to 3.4.0 (chart version 0.19.0) or have elected to manage the Argo Workflows CRDs outside of the chart, please use kubectl to upgrade CRDs manually from templates/crds folder or via the manifests from the upstream project repo:

kubectl apply -k "https://github.com/argoproj/argo-workflows/manifests/base/crds/full?ref=<appVersion>"

# Eg. version v3.3.9
kubectl apply -k "https://github.com/argoproj/argo-workflows/manifests/base/crds/full?ref=v3.3.9"

ServiceAccount for Workflow Spec

In order for each Workflow run, you create ServiceAccount via values.yaml like below.

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.

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.

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
commonLabelsobject{}Labels to set on all resources
crds.annotationsobject{}Annotations to be added to all CRDs
crds.installbooltrueInstall and upgrade CRDs
crds.keepbooltrueKeep CRDs on chart uninstall
createAggregateRolesbooltrueCreate clusterroles that extend existing clusterroles to interact with argo-cd 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
fullnameOverridestringnilString to fully override "argo-workflows.fullname" template
images.pullPolicystring"Always"imagePullPolicy to apply to all containers
images.pullSecretslist[]Secrets with credentials to pull images from a private registry
images.tagstring""Common tag for Argo Workflows images. Defaults to .Chart.AppVersion.
kubeVersionOverridestring""Override the Kubernetes version, which is used to evaluate certain manifests
nameOverridestringnilString to partially override "argo-workflows.fullname" template
namespaceOverridestring.Release.NamespaceOverride the namespace
singleNamespaceboolfalseRestrict Argo to operate only in a single namespace (the namespace of the Helm release) by apply Roles and RoleBindings instead of the Cluster equivalents, and start workflow-controller with the --namespaced flag. Use it in clusters with strict access policy.

Workflow

KeyTypeDefaultDescription
workflow.namespacestringnilDeprecated; use controller.workflowNamespaces instead.
workflow.rbac.createbooltrueAdds Role and RoleBinding for the above specified service account to be able to run workflows. A Role and Rolebinding pair is also created for each namespace in controller.workflowNamespaces (see below)
workflow.serviceAccount.annotationsobject{}Annotations applied to created service account
workflow.serviceAccount.createboolfalseSpecifies whether a service account should be created
workflow.serviceAccount.labelsobject{}Labels applied to created service account
workflow.serviceAccount.namestring"argo-workflow"Service account which is used to run workflows
workflow.serviceAccount.pullSecretslist[]Secrets with credentials to pull images from a private registry. Same format as .Values.images.pullSecrets

Workflow Controller

KeyTypeDefaultDescription
controller.affinityobject{}Assign custom [affinity] rules
controller.clusterWorkflowTemplates.enabledbooltrueCreate a ClusterRole and CRB for the controller to access ClusterWorkflowTemplates.
controller.columnslist[]Configure Argo Server to show custom [columns]
controller.configMap.createbooltrueCreate a ConfigMap for the controller
controller.configMap.namestring""ConfigMap name
controller.cronWorkflowWorkersstringnilNumber of cron workflow workers Only valid for 3.5+
controller.deploymentAnnotationsobject{}deploymentAnnotations is an optional map of annotations to be applied to the controller Deployment
controller.extraArgslist[]Extra arguments to be added to the controller
controller.extraContainerslist[]Extra containers to be added to the controller deployment
controller.extraEnvlist[]Extra environment variables to provide to the controller container
controller.extraInitContainerslist[]Enables init containers to be added to the controller deployment
controller.image.registrystring"quay.io"Registry to use for the controller
controller.image.repositorystring"argoproj/workflow-controller"Registry to use for the controller
controller.image.tagstring""Image tag for the workflow controller. Defaults to .Values.images.tag.
controller.initialDelaystringnilResolves ongoing, uncommon AWS EKS bug: https://github.com/argoproj/argo-workflows/pull/4224
controller.instanceID.enabledboolfalseConfigures the controller to filter workflow submissions to only those which have a matching instanceID attribute.
controller.instanceID.explicitIDstring""Use a custom instanceID
controller.instanceID.useReleaseNameboolfalseUse ReleaseName as instanceID
controller.kubeConfigobject{} (See [values.yaml])Configure when workflow controller runs in a different k8s cluster with the workflow workloads, or needs to communicate with the k8s apiserver using an out-of-cluster kubeconfig secret.
controller.linkslist[]Configure Argo Server to show custom [links]
controller.livenessProbeobjectSee [values.yaml]Configure liveness [probe] for the controller
controller.loadBalancerSourceRangeslist[]Source ranges to allow access to service from. Only applies to service type LoadBalancer
controller.logging.formatstring"text"Set the logging format (one of: text, json)
controller.logging.globallevelstring"0"Set the glog logging level
controller.logging.levelstring"info"Set the logging level (one of: debug, info, warn, error)
controller.metricsConfig.enabledboolfalseEnables prometheus metrics server
controller.metricsConfig.ignoreErrorsboolfalseFlag that instructs prometheus to ignore metric emission errors.
controller.metricsConfig.metricRelabelingslist[]ServiceMonitor metric relabel configs to apply to samples before ingestion
controller.metricsConfig.metricsTTLstring""How often custom metrics are cleared from memory
controller.metricsConfig.pathstring"/metrics"Path is the path where metrics are emitted. Must start with a "/".
controller.metricsConfig.portint9090Port is the port where metrics are emitted
controller.metricsConfig.portNamestring"metrics"Container metrics port name
controller.metricsConfig.relabelingslist[]ServiceMonitor relabel configs to apply to samples before scraping
controller.metricsConfig.secureboolfalseFlag that use a self-signed cert for TLS
controller.metricsConfig.servicePortint8080Service metrics port
controller.metricsConfig.servicePortNamestring"metrics"Service metrics port name
controller.metricsConfig.targetLabelslist[]ServiceMonitor will add labels from the service to the Prometheus metric
controller.namestring"workflow-controller"Workflow controller name string
controller.namespaceParallelismstringnilLimits the maximum number of incomplete workflows in a namespace
controller.navColorstring""Set ui navigation bar background color
controller.nodeEvents.enabledbooltrueEnable to emit events on node completion.
controller.nodeSelectorobject{"kubernetes.io/os":"linux"}[Node selector]
controller.parallelismstringnilparallelism dictates how many workflows can be running at the same time
controller.pdb.enabledboolfalseConfigure [Pod Disruption Budget] for the controller pods
controller.persistenceobject{}enable Workflow Archive to store the status of workflows. Postgres and MySQL (>= 5.7.8) are available.
controller.podAnnotationsobject{}podAnnotations is an optional map of annotations to be applied to the controller Pods
controller.podCleanupWorkersstringnilNumber of pod cleanup workers
controller.podGCDeleteDelayDurationstring5s (Argo Workflows default)The duration in seconds before the pods in the GC queue get deleted. A zero value indicates that the pods will be deleted immediately.
controller.podGCGracePeriodSecondsstring30 seconds (Kubernetes default)Specifies the duration in seconds before a terminating pod is forcefully killed. A zero value indicates that the pod will be forcefully terminated immediately.
controller.podLabelsobject{}Optional labels to add to the controller pods
controller.podSecurityContextobject{}SecurityContext to set on the controller pods
controller.priorityClassNamestring""Leverage a PriorityClass to ensure your pods survive resource shortages.
controller.rbac.accessAllSecretsboolfalseAllows controller to get, list and watch all k8s secrets. Can only be used if secretWhitelist is empty.
controller.rbac.crea

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 v0.40.14 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