argocd-image-updater

by Argo Project

Helm chartv1.5.0App v1.5.0Verified publisher

A Helm chart for Argo CD Image Updater, a tool to automatically update the container images of Kubernetes workloads which are managed by Argo CD

About this chart

argocd-image-updater

A Helm chart for Argo CD Image Updater, a tool to automatically update the container images of Kubernetes workloads which are managed by Argo CD

To regenerate this document, from the root of this chart directory run:

docker run --rm --volume "$(pwd):/helm-docs" -u $(id -u) jnorwood/helm-docs:latest

Installation

helm install oci://ghcr.io/argoproj/argo-helm/argocd-image-updater --namespace <desired installation namespace>

If you still use the classic approach of installing Helm charts (non-OCI), you can do so by adding the Argo Helm repository and installing the chart with the following commands:

helm repo add argo https://argoproj.github.io/argo-helm
helm install argocd-image-updater argo/argocd-image-updater --namespace <desired installation namespace>

The Argo CD Image Updater controller must be run in the same Kubernetes cluster where your Argo CD Application resources are managed. The current controller architecture (v1.0+) does not support connecting to a remote Kubernetes cluster to manage applications.

Choosing the installation namespace

You have two options for where to install the Argo CD Image Updater:

Option 1: Install into the Argo CD namespace (Recommended)

The simplest approach is to install the image updater into the same namespace as your Argo CD installation. This requires minimal configuration. (..)

Option 2: Install into a separate namespace

For better workload isolation, you can install the image updater into its own namespace. This use case requires several manual configuration steps. (..)

For the full details, please read Installation methods in the upstream docs.

Prerequisites

  • Helm v3.0.0+

Changelog

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

Highlighted versions provide information about additional steps that should be performed by user when upgrading to newer version.

1.2.0 (app version 1.2.0)

Starting with this release, the webhook server runs with TLS enabled by default. If you previously relied on plain HTTP, you must explicitly opt out by setting the --disable-tls flag or the DISABLE_TLS environment variable like below.

extraEnv:
  - name: DISABLE_TLS
    value: "false"

For details, see TLS Configuration.

1.0.3 (app version 1.0.2)

The upstream project changed the recommended installation namespace from argocd-image-updater-system to the same namespace as Argo CD is installed in.

Please read Installation methods and/or PR #1356 for more information.

1.0.0

This chart release includes the upstream breaking changes introduced in Argo CD Image Updater 1.0.0. Please read the migration docs carefully: https://argocd-image-updater.readthedocs.io/en/stable/configuration/migration/

Registries

Argo CD Image Updater natively supports the following registries (as mentioned in Configuration of Container Registries):

  • Docker Hub
  • Google Container Registry
  • RedHat Quay
  • GitHub Container Registry
  • GitHub Docker Packages

If you need support for ECR, you can reference this issue, Support ECR authentication, for configuration. You can use the authScripts values to configure the scripts that are needed to authenticate with ECR.

The config.registries value can be used exactly as it looks in the documentation as it gets dumped directly into a configmap in this chart.

Values

KeyTypeDefaultDescription
affinityobject{}Kubernetes affinity settings for the deployment
authScripts.enabledboolfalseWhether to mount the defined scripts that can be used to authenticate with a registry, the scripts will be mounted at /scripts
authScripts.namestring"argocd-image-updater-authscripts"Name of the authentication scripts ConfigMap
authScripts.scriptsobject{}Map of key-value pairs where the key consists of the name of the script and the value the contents.
certificateSecret.annotationsobject{}Annotations to be added to the webhook TLS secret
certificateSecret.crtstring""Certificate data. Must contain the hostnames webhook senders use to reach the webhook Service or Ingress
certificateSecret.enabledboolfalseCreate the <fullname>-tls secret with the webhook TLS keypair and mount it instead of argocd-image-updater-tls
certificateSecret.keystring""Certificate private key
certificateSecret.labelsobject{}Labels to be added to the webhook TLS secret
config."git.commit-message-template"string""Changing the Git commit message
config."git.commit-sign-off"boolfalseEnables sign off on commits
config."git.commit-signing-key"string""Path to public SSH key mounted in container, or GPG key ID used to sign commits
config."git.commit-signing-method"string""Method used to sign Git commits. openpgp or ssh
config."git.email"string""E-Mail address to use for Git commits
config."git.user"string""Username to use for Git commits
config."kube.events"boolfalseDisable kubernetes events
config."log.level"string"info"Argo CD Image Update log level
config.namestring"argocd-image-updater-config"Name of the ConfigMap
config.registrieslist[]Argo CD Image Updater registries list configuration. More information here.
config.sshConfig.configstring""Argo CD Image Updater ssh client parameter configuration
config.sshConfig.namestring"argocd-image-updater-ssh-config"Name of the sshConfig ConfigMap
containerPorts.healthint8081Port for the probe endpoint
containerPorts.metricsint8443Port for the metrics
containerPorts.webhookint8082Port for the webhook events
crds.additionalLabelsobject{}Additional labels to be added to all CRDs
crds.annotationsobject{}Annotations to be added to all CRDs
crds.installbooltrueInstall and upgrade CRDs
crds.keepbooltrueKeep CRDs on chart uninstall
createClusterRolesbooltrueCreate cluster roles for cluster-wide installation.
dualStack.ipFamilieslist[]IP families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6.
dualStack.ipFamilyPolicystring""IP family policy to configure dual-stack see Configure dual-stack
extraArgslist[]Extra arguments for argocd-image-updater not defined in config.argocd. If a flag contains both key and value, they need to be split to a new entry.
extraEnvlist[]Extra environment variables for argocd-image-updater.
extraEnvFromlist[]Extra envFrom to pass to argocd-image-updater
extraObjectslist[]Extra K8s manifests to deploy for argocd-image-updater.
fullnameOverridestring""Global fullname (argocd-image-updater.fullname in _helpers.tpl) override
image.pullPolicystring"Always"Default image pull policy
image.repositorystring"quay.io/argoprojlabs/argocd-image-updater"Default image repository
image.tagstring""Overrides the image tag whose default is the chart appVersion
imagePullSecretslist[]ImagePullSecrets for the image updater deployment
ingress.annotationsobject{}Additional ingress annotations
ingress.enabledboolfalseEnable an ingress resource for the deployment
ingress.extraHostslist[] (See [values.yaml])The list of additional hostnames to be covered by ingress record
ingress.extraPathslist[] (See [values.yaml])Additional ingress paths
ingress.hostnamestring"" (defaults to global.domain)deployment hostname
ingress.ingressClassNamestring""Defines which ingress controller will implement the resource
ingress.labelsobject{}Additional ingress labels
ingress.pathstring"/webhook"The path to deployment
ingress.pathTypestring"Prefix"Ingress path type. One of Exact, Prefix or ImplementationSpecific
ingress.tlslist[]Ingress TLS configuration
initContainerslist[]Init containers to add to the image updater pod
metrics.enabledboolfalseDeploy metrics service
metrics.service.annotationsobject{}Metrics service annotations
metrics.service.labelsobject{}Metrics service labels
metrics.service.servicePortint8443Metrics service port
metrics.serviceMonitor.additionalLabelsobject{}Prometheus ServiceMonitor labels
metrics.serviceMonitor.authorizationobject{}Prometheus ServiceMonitor authorization
metrics.serviceMonitor.enabledboolfalseEnable a prometheus ServiceMonitor
metrics.serviceMonitor.intervalstring"30s"Prometheus ServiceMonitor interval
metrics.serviceMonitor.metricRelabelingslist[]Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
metrics.serviceMonitor.namespacestring""Prometheus ServiceMonitor namespace
metrics.serviceMonitor.relabelingslist[]Prometheus [RelabelConfigs] to apply to samples before scraping
metrics.serviceMonitor.schemestring"https"Prometheus ServiceMonitor scheme
metrics.serviceMonitor.selectorobject{}Prometheus ServiceMonitor selector
metrics.serviceMonitor.tlsConfigobject{"insecureSkipVerify":true}Prometheus ServiceMonitor tlsConfig
nameOverridestring""Global name (argocd-image-updater.name in _helpers.tpl) override
namespaceOverridestring""Global namespace (argocd-image-updater.namespace in _helpers.tpl) override
nodeSelectorobject{}Kubernetes nodeSelector settings for the deployment
podAnnotationsobject{}Pod Annotations for the deployment
podLabelsobject{}Pod Labels for the deployment
podSecurityContextobjectSee [values.yaml]Pod security context settings for the deployment
priorityClassNamestring""Priority class for the deployment
rbac.enabledbooltrueEnable RBAC creation
replicaCountint1Replica count for the deployment. It is not advised to run more than one replica.
resourcesobject{}Pod memory and cpu resource settings for the deployment
securityContextobjectSee [values.yaml]Security context settings for the deployment
service.annotationsobject{}Service annotations
service.enabledboolfalseEnable a Service for the webhook endpoint. A Service is created when this is set to true or when ingress.enabled is true
service.externalIPslist[]Service external IPs
service.externalTrafficPolicystring"Cluster"Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
service.labelsobject{}Service labels
service.loadBalancerClassstring""The class of the load balancer implementation
service.loadBalancerIPstring""LoadBalancer will get created with the IP specified in this field
service.loadBalancerSourceRangeslist[]Source IP ranges to allow access to service from
service.nodePortHttpint30080Service http port for NodePort service type (only if service.type is set to "NodePort")
service.portint8080Service http port
service.servicePortHttpNamestring"server-port"Service http port name, can be used to route traffic via istio
service.sessionAffinitystring"None"Used to maintain session affinity. Supports ClientIP and None
service.typestring"ClusterIP"Service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.labelsobject{}Labels to add to the service account
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template.
tolerationslist[]Kubernetes toleration settings for the deployment
updateStrategyobject{"type":"Recreate"}The deployment strategy to use to replace existing pods with new ones
volumeMountslist[]Additional volumeMounts to the image updater main container
volumeslist[]Additional volumes to the image updater pod

Autogenerated from chart metadata using helm-docs

Deploy argocd-image-updater with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has argocd-image-updater 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 chartargocd-image-updater is pinned at v1.5.0 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