argo-workflows
by apecloud
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--instanceidattributecontroller.instanceID.useReleaseName: If set to true then chart set controller instance id to release namecontroller.instanceID.explicitID: Allows customization of an instance id for the workflow controller to monitorsingleNamespace: 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 whensingleNamespaceis false.
General parameters
| Key | Type | Default | Description |
|---|---|---|---|
| apiVersionOverrides.autoscaling | string | "" | String to override apiVersion of autoscaling rendered by this helm chart |
| apiVersionOverrides.cloudgoogle | string | "" | String to override apiVersion of GKE resources rendered by this helm chart |
| commonLabels | object | {} | Labels to set on all resources |
| crds.annotations | object | {} | Annotations to be added to all CRDs |
| crds.install | bool | true | Install and upgrade CRDs |
| crds.keep | bool | true | Keep CRDs on chart uninstall |
| createAggregateRoles | bool | true | Create clusterroles that extend existing clusterroles to interact with argo-cd crds |
| emissary.images | list | [] | The command/args for each image on workflow, needed when the command is not specified and the emissary executor is used. |
| extraObjects | list | [] | Array of extra K8s manifests to deploy |
| fullnameOverride | string | nil | String to fully override "argo-workflows.fullname" template |
| images.pullPolicy | string | "Always" | imagePullPolicy to apply to all containers |
| images.pullSecrets | list | [] | Secrets with credentials to pull images from a private registry |
| images.tag | string | "" | Common tag for Argo Workflows images. Defaults to .Chart.AppVersion. |
| kubeVersionOverride | string | "" | Override the Kubernetes version, which is used to evaluate certain manifests |
| nameOverride | string | nil | String to partially override "argo-workflows.fullname" template |
| namespaceOverride | string | .Release.Namespace | Override the namespace |
| singleNamespace | bool | false | Restrict 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
| Key | Type | Default | Description |
|---|---|---|---|
| workflow.namespace | string | nil | Deprecated; use controller.workflowNamespaces instead. |
| workflow.rbac.create | bool | true | Adds 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.annotations | object | {} | Annotations applied to created service account |
| workflow.serviceAccount.create | bool | false | Specifies whether a service account should be created |
| workflow.serviceAccount.labels | object | {} | Labels applied to created service account |
| workflow.serviceAccount.name | string | "argo-workflow" | Service account which is used to run workflows |
| workflow.serviceAccount.pullSecrets | list | [] | Secrets with credentials to pull images from a private registry. Same format as .Values.images.pullSecrets |
Workflow Controller
| Key | Type | Default | Description |
|---|---|---|---|
| controller.affinity | object | {} | Assign custom [affinity] rules |
| controller.clusterWorkflowTemplates.enabled | bool | true | Create a ClusterRole and CRB for the controller to access ClusterWorkflowTemplates. |
| controller.columns | list | [] | Configure Argo Server to show custom [columns] |
| controller.configMap.create | bool | true | Create a ConfigMap for the controller |
| controller.configMap.name | string | "" | ConfigMap name |
| controller.cronWorkflowWorkers | string | nil | Number of cron workflow workers Only valid for 3.5+ |
| controller.deploymentAnnotations | object | {} | deploymentAnnotations is an optional map of annotations to be applied to the controller Deployment |
| controller.extraArgs | list | [] | Extra arguments to be added to the controller |
| controller.extraContainers | list | [] | Extra containers to be added to the controller deployment |
| controller.extraEnv | list | [] | Extra environment variables to provide to the controller container |
| controller.extraInitContainers | list | [] | Enables init containers to be added to the controller deployment |
| controller.image.registry | string | "quay.io" | Registry to use for the controller |
| controller.image.repository | string | "argoproj/workflow-controller" | Registry to use for the controller |
| controller.image.tag | string | "" | Image tag for the workflow controller. Defaults to .Values.images.tag. |
| controller.initialDelay | string | nil | Resolves ongoing, uncommon AWS EKS bug: https://github.com/argoproj/argo-workflows/pull/4224 |
| controller.instanceID.enabled | bool | false | Configures the controller to filter workflow submissions to only those which have a matching instanceID attribute. |
| controller.instanceID.explicitID | string | "" | Use a custom instanceID |
| controller.instanceID.useReleaseName | bool | false | Use ReleaseName as instanceID |
| controller.kubeConfig | object | {} (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.links | list | [] | Configure Argo Server to show custom [links] |
| controller.livenessProbe | object | See [values.yaml] | Configure liveness [probe] for the controller |
| controller.loadBalancerSourceRanges | list | [] | Source ranges to allow access to service from. Only applies to service type LoadBalancer |
| controller.logging.format | string | "text" | Set the logging format (one of: text, json) |
| controller.logging.globallevel | string | "0" | Set the glog logging level |
| controller.logging.level | string | "info" | Set the logging level (one of: debug, info, warn, error) |
| controller.metricsConfig.enabled | bool | false | Enables prometheus metrics server |
| controller.metricsConfig.ignoreErrors | bool | false | Flag that instructs prometheus to ignore metric emission errors. |
| controller.metricsConfig.metricRelabelings | list | [] | ServiceMonitor metric relabel configs to apply to samples before ingestion |
| controller.metricsConfig.metricsTTL | string | "" | How often custom metrics are cleared from memory |
| controller.metricsConfig.path | string | "/metrics" | Path is the path where metrics are emitted. Must start with a "/". |
| controller.metricsConfig.port | int | 9090 | Port is the port where metrics are emitted |
| controller.metricsConfig.portName | string | "metrics" | Container metrics port name |
| controller.metricsConfig.relabelings | list | [] | ServiceMonitor relabel configs to apply to samples before scraping |
| controller.metricsConfig.secure | bool | false | Flag that use a self-signed cert for TLS |
| controller.metricsConfig.servicePort | int | 8080 | Service metrics port |
| controller.metricsConfig.servicePortName | string | "metrics" | Service metrics port name |
| controller.metricsConfig.targetLabels | list | [] | ServiceMonitor will add labels from the service to the Prometheus metric |
| controller.name | string | "workflow-controller" | Workflow controller name string |
| controller.namespaceParallelism | string | nil | Limits the maximum number of incomplete workflows in a namespace |
| controller.navColor | string | "" | Set ui navigation bar background color |
| controller.nodeEvents.enabled | bool | true | Enable to emit events on node completion. |
| controller.nodeSelector | object | {"kubernetes.io/os":"linux"} | [Node selector] |
| controller.parallelism | string | nil | parallelism dictates how many workflows can be running at the same time |
| controller.pdb.enabled | bool | false | Configure [Pod Disruption Budget] for the controller pods |
| controller.persistence | object | {} | enable Workflow Archive to store the status of workflows. Postgres and MySQL (>= 5.7.8) are available. |
| controller.podAnnotations | object | {} | podAnnotations is an optional map of annotations to be applied to the controller Pods |
| controller.podCleanupWorkers | string | nil | Number of pod cleanup workers |
| controller.podGCDeleteDelayDuration | string | 5s (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.podGCGracePeriodSeconds | string | 30 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.podLabels | object | {} | Optional labels to add to the controller pods |
| controller.podSecurityContext | object | {} | SecurityContext to set on the controller pods |
| controller.priorityClassName | string | "" | Leverage a PriorityClass to ensure your pods survive resource shortages. |
| controller.rbac.accessAllSecrets | bool | false | Allows 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartargo-workflows is pinned at v0.40.14 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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