Image Updater
The Akuity Platform can easily enable and configure the Argo CD Image Updater. The Image Updater settings are located in Argo CD → your instance → Settings → Image Updater.
To enable the Image Updater, go to its setting tab mentioned above, toggle Enable and click on Save.
If Image Updater is Enabled, you will get an option below to select a cluster in which you want to run the Image Updater. You can select All Managed Clusters or Single Managed Cluster of your choice.
Once the Image Updater is configured on the Akuity Platform, all the operational configurations can be done in the Argo CD instance itself, such as the git
write-back method or update strategies.
Logs
The Argo CD Image Updater runs in your connected cluster, so the logs can be viewed using below command on the cluster.
# namespace is 'akuity' unless you configure different in cluster settings.
kubectl logs deployment.apps/argocd-image-updater -n <namespace-of-installed-agent>`
In the settings, you can configure the log level from the Log Level dropdown.
Git
Git Access for Write-Back Method
Before you choose git
as a write back method, you would need to give an access of the relevant git repository to let Image Updater commit changes.
Git Commit Options
Configure the git
commit username, email, and message used by the Image Updater. This configuration is optional.
- Fill the User field.
- Fill the Email field.
- Fill the Commit Message Template input. The template is a Go
text/template
string. Therefore, metadata can be accessed using variables. two common top-level variables are:AppName
- the name of the Application.AppChanges
- the list of the changes, which contains:Image
- the image name.OldTag
- the previous tag or SHA digest before the update.NewTag
- the update's new tag or SHA digest.
- Click Save.
Container Registries
To configure custom private container registries:
-
Click the Add Container Registry button.
-
Fill the relevant fields Prefix, Name, API URL, Default Namespace, Credentials, Credential Expire Time and Rate Limit. Hover over the help icon to see more information about a field.
-
Move to the Secrets tab to define private container registry credentials and use it from the dropdown of the Credentials field mentioned in the above step.
-
Click Save.
SSH Client Configuration
The Image Updater supports setting the SSH Client Configuration (i.e., modifying the ~/.ssh/config
). This is used in edge cases when, for example, you need to use the deprecated ssh-rsa
algorithm. See further explanation in this pull request on the upstream project.
Host *
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa