argo-events

by Argo Project

Helm chartv2.4.28App v1.9.11Verified publisher

A Helm chart for Argo Events, the event-driven workflow automation framework

About this chart

Argo-Events Chart

This is a community maintained chart. It installs the argo-events application. This application comes packaged with:

  • Sensor Custom Resource Definition (See CRD Notes)
  • EventSource Custom Resource Definition (See CRD Notes)
  • EventBus Custom Resource Definition (See CRD Notes)
  • Controller Deployment
  • Validation Webhook Deployment
  • Service Accounts
  • Roles / Cluster Roles
  • Role Bindings / Cluster Role Bindings

To regenerate this document, please run:

./scripts/helm-docs.sh

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-events
NAME: my-release
...

EventBus

This chart does not create an EventBus, matching the upstream argo-events install manifests. Event sources and sensors will not connect until an EventBus exists in the namespace. The bus type (native NATS, JetStream, or Kafka) is an environment decision, so the chart leaves it to you.

You can create one from the same values file using extraObjects:

extraObjects:
  - apiVersion: argoproj.io/v1alpha1
    kind: EventBus
    metadata:
      name: default
    spec:
      jetstream:
        version: latest

latest resolves to the newest JetStream version this chart supports. To pin a specific version instead, use one of the entries listed under configs.jetstream.versions in values.yaml; the controller matches the version string exactly, so values outside that list will prevent the bus from starting.

or, for the native NATS bus:

extraObjects:
  - apiVersion: argoproj.io/v1alpha1
    kind: EventBus
    metadata:
      name: default
    spec:
      nats:
        native: {}

See the EventBus documentation for the full spec.

Upgrading

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.

You can install the CRDs manually from templates/crds folder.

2.0.*

Custom resource definitions were moved to templates folder so they can be managed by Helm.

To adopt already created CRDs please use following command:

for crd in "eventbus.argoproj.io" "eventsources.argoproj.io" "sensors.argoproj.io"; do
  kubectl label --overwrite crd $crd app.kubernetes.io/managed-by=Helm
  kubectl annotate --overwrite crd $crd meta.helm.sh/release-namespace=<YOUR_NAMESPACE>
  kubectl annotate --overwrite crd $crd meta.helm.sh/release-name=<YOUR_HELM_RELEASE>
done

Values

General parameters

KeyTypeDefaultDescription
configs.jetstream.settings.maxFileStoreint-1Maximum size of the file storage (e.g. 20G)
configs.jetstream.settings.maxMemoryStoreint-1Maximum size of the memory storage (e.g. 1G)
configs.jetstream.streamConfig.discardint00: DiscardOld, 1: DiscardNew
configs.jetstream.streamConfig.duplicatesstring"300s"Not documented at the moment
configs.jetstream.streamConfig.maxAgestring"72h"Maximum age of existing messages, i.e. “72h”, “4h35m”
configs.jetstream.streamConfig.maxBytesstring"1GB"
configs.jetstream.streamConfig.maxMsgsint1000000Maximum number of messages before expiring oldest message
configs.jetstream.streamConfig.replicasint3Number of replicas, defaults to 3 and requires minimal 3
configs.jetstream.streamConfig.retentionint00: Limits, 1: Interest, 2: WorkQueue
configs.jetstream.versions[0].configReloaderImagestring"natsio/nats-server-config-reloader:0.14.0"
configs.jetstream.versions[0].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.14.0"
configs.jetstream.versions[0].natsImagestring"nats:2.10.29"
configs.jetstream.versions[0].startCommandstring"/nats-server"
configs.jetstream.versions[0].versionstring"latest"
configs.jetstream.versions[1].configReloaderImagestring"natsio/nats-server-config-reloader:0.14.0"
configs.jetstream.versions[1].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.14.0"
configs.jetstream.versions[1].natsImagestring"nats:2.10.10"
configs.jetstream.versions[1].startCommandstring"/nats-server"
configs.jetstream.versions[1].versionstring"2.10.10"
configs.jetstream.versions[2].configReloaderImagestring"natsio/nats-server-config-reloader:0.7.0"
configs.jetstream.versions[2].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.9.1"
configs.jetstream.versions[2].natsImagestring"nats:2.8.1"
configs.jetstream.versions[2].startCommandstring"/nats-server"
configs.jetstream.versions[2].versionstring"2.8.1"
configs.jetstream.versions[3].configReloaderImagestring"natsio/nats-server-config-reloader:0.7.0"
configs.jetstream.versions[3].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.9.1"
configs.jetstream.versions[3].natsImagestring"nats:2.8.1-alpine"
configs.jetstream.versions[3].startCommandstring"nats-server"
configs.jetstream.versions[3].versionstring"2.8.1-alpine"
configs.jetstream.versions[4].configReloaderImagestring"natsio/nats-server-config-reloader:0.7.0"
configs.jetstream.versions[4].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.9.1"
configs.jetstream.versions[4].natsImagestring"nats:2.8.2"
configs.jetstream.versions[4].startCommandstring"/nats-server"
configs.jetstream.versions[4].versionstring"2.8.2"
configs.jetstream.versions[5].configReloaderImagestring"natsio/nats-server-config-reloader:0.7.0"
configs.jetstream.versions[5].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.9.1"
configs.jetstream.versions[5].natsImagestring"nats:2.8.2-alpine"
configs.jetstream.versions[5].startCommandstring"nats-server"
configs.jetstream.versions[5].versionstring"2.8.2-alpine"
configs.jetstream.versions[6].configReloaderImagestring"natsio/nats-server-config-reloader:0.7.0"
configs.jetstream.versions[6].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.9.1"
configs.jetstream.versions[6].natsImagestring"nats:2.9.1"
configs.jetstream.versions[6].startCommandstring"/nats-server"
configs.jetstream.versions[6].versionstring"2.9.1"
configs.jetstream.versions[7].configReloaderImagestring"natsio/nats-server-config-reloader:0.7.0"
configs.jetstream.versions[7].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.9.1"
configs.jetstream.versions[7].natsImagestring"nats:2.9.12"
configs.jetstream.versions[7].startCommandstring"/nats-server"
configs.jetstream.versions[7].versionstring"2.9.12"
configs.jetstream.versions[8].configReloaderImagestring"natsio/nats-server-config-reloader:0.7.0"
configs.jetstream.versions[8].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.9.1"
configs.jetstream.versions[8].natsImagestring"nats:2.9.16"
configs.jetstream.versions[8].startCommandstring"/nats-server"
configs.jetstream.versions[8].versionstring"2.9.16"
configs.jetstream.versions[9].configReloaderImagestring"natsio/nats-server-config-reloader:0.14.0"
configs.jetstream.versions[9].metricsExporterImagestring"natsio/prometheus-nats-exporter:0.14.0"
configs.jetstream.versions[9].natsImagestring"nats:2.10.29"
configs.jetstream.versions[9].startCommandstring"/nats-server"
configs.jetstream.versions[9].versionstring"2.10.29"
configs.nats.versionslistSee [values.yaml]Supported versions of NATS event bus
crds.annotationsobject{}Annotations to be added to all CRDs
crds.installbooltrueInstall and upgrade CRDs
crds.keepbooltrueKeep CRDs on chart uninstall
createAggregateRolesboolfalseCreate clusterroles that extend existing clusterroles to interact with argo-events crds Only applies for cluster-wide installation (controller.rbac.namespaced: false)
extraObjectslist[]Array of extra K8s manifests to deploy
fullnameOverridestring""String to fully override "argo-events.fullname" template
global.additionalLabelsobject{}Additional labels to add to all resources
global.hostAliaseslist[]Mapping between IP and hostnames that will be injected as entries in the pod's hosts files
global.image.imagePullPolicystring"IfNotPresent"If defined, a imagePullPolicy applied to all Argo Events deployments
global.image.repositorystring"quay.io/argoproj/argo-events"If defined, a repository applied to all Argo Events deployments
global.image.tagstring""Overrides the global Argo Events image tag whose default is the chart appVersion
global.imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository
global.podAnnotationsobject{}Annotations for the all deployed pods
global.podLabelsobject{}Labels for the all deployed pods
global.securityContextobject{}Toggle and define securityContext. See [values.yaml]
nameOverridestring"argo-events"Provide a name in place of argo-events
namespaceOverridestring.Release.NamespaceOverride the namespace
openshiftboolfalseDeploy on OpenShift

Controller

KeyTypeDefaultDescription
controller.affinityobject{}Assign custom [affinity] rules to the deployment
controller.containerSecurityContextobject{}Events controller container-level security context
controller.deploymentAnnotationsobject{}Annotations to be added to events controller Deployment
controller.envlist[]Environment variables to pass to events controller
controller.envFromlist[] (See [values.yaml])envFrom to pass to events controller
controller.extraContainerslist[]Additional containers to be added to the events controller pods
controller.image.imagePullPolicystring"" (defaults to global.image.imagePullPolicy)Image pull policy for the events controller
controller.image.repositorystring"" (defaults to global.image.repository)Repository to use for the events controller
controller.image.tagstring"" (defaults to global.image.tag)Tag to use for the events controller
controller.initContainerslist[]Init containers to add to the events controller pods
controller.livenessProbe.failureThresholdint3Minimum consecutive failures for the [probe] to be considered failed after having succeeded
controller.livenessProbe.initialDelaySecondsint10Number of seconds after the container has started before [probe] is initiated
controller.livenessProbe.periodSecondsint10How often (in seconds) to perform the [probe]
controller.livenessProbe.successThresholdint1Minimum consecutive successes for the [probe] to be considered successful after having failed
controller.livenessProbe.timeoutSecondsint1Number of seconds after which the [probe] times out
controller.metrics.enabledboolfalseDeploy metrics service
controller.metrics.service.annotationsobject{}Metrics service annotations
controller.metrics.service.labelsobject{}Metrics service labels
controller.metrics.service.servicePortint8082Metrics service port
controller.metrics.serviceMonitor.additionalLabelsobject{}Prometheus ServiceMonitor labels
controller.metrics.serviceMonitor.enabledboolfalseEnable a prometheus ServiceMonitor
controller.metrics.serviceMonitor.intervalstring"30s"Prometheus ServiceMonitor interval
controller.metrics.serviceMonitor.metricRelabelingslist[]Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
controller.metrics.serviceMonitor.namespacestring""Prometheus ServiceMonitor namespace
controller.metrics.serviceMonitor.relabelingslist[]Prometheus [RelabelConfigs] to apply to samples before scraping
controller.metrics.serviceMonitor.selectorobject{}Prometheus ServiceMonitor selector
controller.namestring"controller-manager"Argo Events controller name string
controller.nodeSelectorobject{}[Node selector]
controller.pdb.annotationsobject{}Annotations to be added to events controller pdb
controller.pdb.enabledboolfalseDeploy a PodDisruptionBudget for the events controller
controller.pdb.labelsobject{}Labels to be added to events controller pdb
controller.podAnnotationsobject{}Annotations to be added to events controller pods
controller.podLabelsobject{}Labels to be added to events controller pods
controller.priorityClassNamestring""Priority class for the events controller pods
controller.rbac.enabledbooltrueCreate events controller RBAC
controller.rbac.managedNamespacestring

Deploy argo-events with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has argo-events 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-events is pinned at v2.4.28 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