2021-08-16 15:23:02 +00:00
# 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:
```shell
docker run --rm --volume "$(pwd):/helm-docs" -u $(id -u) jnorwood/helm-docs:latest
```
## Installation
```console
helm repo add argo https://argoproj.github.io/argo-helm
helm install argocd-image-updater argo/argocd-image-updater
```
2024-01-05 15:28:42 +00:00
You will also need to run through the [secret setup documentation] so Argo CD Image Updater can talk to the Argo CD API (until its automated in this chart).
2021-08-16 15:23:02 +00:00
## Prerequisites
* Helm v3.0.0+
## Configuration options
2024-01-05 15:28:42 +00:00
In order for your deployment of Argo CD Image Updater to be successful, you will need to make sure you set the correct configuration options described in detail on the [argocd-image-updater flags page].
2021-08-16 15:23:02 +00:00
2024-01-05 15:28:42 +00:00
All of the `argocd-` prefixed flags, which tell `argocd-image-updater` how your Argo CD instance is setup, are set in the `config.argocd` values block. For instance:
2021-08-16 15:23:02 +00:00
```yaml
config:
argocd:
grpcWeb: false
serverAddress: "http://argocd.argo"
insecure: true
plaintext: true
```
2024-01-05 15:28:42 +00:00
Any additional arguments mentioned on the [argocd-image-updater flags page] can be configured using the `extraArgs` value, like so.
2021-08-16 15:23:02 +00:00
2024-01-05 15:28:42 +00:00
### Argo CD API key
2022-03-01 10:26:13 +00:00
If you are unable to install Argo CD Image Updater into the same Kubernetes cluster you might configure it to use API of your Argo CD installation.
2024-01-05 15:28:42 +00:00
Please also read [Configuration of Container Registries].
2022-03-01 10:26:13 +00:00
```yaml
config:
argocd:
token: < your_secret_here >
```
If you specify a token value the secret will be created.
2021-08-16 15:23:02 +00:00
### Registries
2024-01-05 15:28:42 +00:00
Argo CD Image Updater natively supports the following registries (as mentioned in [Configuration of Container Registries]):
2021-08-16 15:23:02 +00:00
- Docker Hub
- Google Container Registry
- RedHat Quay
- GitHub Container Registry
- GitHub Docker Packages
2024-01-05 15:28:42 +00:00
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.
2021-08-16 15:23:02 +00:00
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
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | Kubernetes affinity settings for the deployment |
2021-11-15 23:19:03 +00:00
| authScripts.enabled | bool | `false` | Whether to mount the defined scripts that can be used to authenticate with a registry, the scripts will be mounted at `/scripts` |
2021-11-22 07:18:26 +00:00
| authScripts.scripts | object | `{}` | Map of key-value pairs where the key consists of the name of the script and the value the contents |
| config.applicationsAPIKind | string | `""` | API kind that is used to manage Argo CD applications (`kubernetes` or `argocd` ) |
2021-08-16 15:23:02 +00:00
| config.argocd.grpcWeb | bool | `true` | Use the gRPC-web protocol to connect to the Argo CD API |
| config.argocd.insecure | bool | `false` | If specified, the certificate of the Argo CD API server is not verified. |
2024-01-05 15:28:42 +00:00
| config.argocd.plaintext | bool | `false` | If specified, use an unencrypted HTTP connection to the Argo CD API instead of TLS. |
2021-08-16 15:23:02 +00:00
| config.argocd.serverAddress | string | `""` | Connect to the Argo CD API server at server address |
2024-01-05 15:28:42 +00:00
| config.argocd.token | string | `""` | If specified, the secret with Argo CD API key will be created. |
2021-11-22 07:18:26 +00:00
| config.disableKubeEvents | bool | `false` | Disable kubernetes events |
| config.gitCommitMail | string | `""` | E-Mail address to use for Git commits |
2024-07-09 21:31:36 +00:00
| config.gitCommitSignOff | bool | `false` | Enables sign off on commits |
| config.gitCommitSigningKey | string | `""` | Path to public SSH key mounted in container, or GPG key ID used to sign commits |
| config.gitCommitSigningMethod | string | `""` | Method used to sign Git commits. `openpgp` or `ssh` |
2021-11-22 07:18:26 +00:00
| config.gitCommitTemplate | string | `""` | Changing the Git commit message |
| config.gitCommitUser | string | `""` | Username to use for Git commits |
2024-01-05 15:28:42 +00:00
| config.logLevel | string | `"info"` | Argo CD Image Update log level |
| config.registries | list | `[]` | Argo CD Image Updater registries list configuration. More information [here ](https://argocd-image-updater.readthedocs.io/en/stable/configuration/registries/ ) |
| config.sshConfig | object | `{}` | Argo CD Image Updater ssh client parameter configuration. |
2021-11-09 21:14:17 +00:00
| extraArgs | list | `[]` | 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 |
2021-09-16 18:59:39 +00:00
| extraEnv | list | `[]` | Extra environment variables for argocd-image-updater |
2024-04-18 21:41:24 +00:00
| extraEnvFrom | list | `[]` | Extra envFrom to pass to argocd-image-updater |
2024-01-18 06:21:37 +00:00
| extraObjects | list | `[]` | Extra K8s manifests to deploy for argocd-image-updater |
2021-08-16 15:23:02 +00:00
| fullnameOverride | string | `""` | Global fullname (argocd-image-updater.fullname in _helpers.tpl) override |
| image.pullPolicy | string | `"Always"` | Default image pull policy |
2022-03-17 19:34:21 +00:00
| image.repository | string | `"quay.io/argoprojlabs/argocd-image-updater"` | Default image repository |
2021-11-17 09:50:29 +00:00
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion |
2021-08-16 15:23:02 +00:00
| imagePullSecrets | list | `[]` | ImagePullSecrets for the image updater deployment |
2022-10-11 22:19:24 +00:00
| initContainers | list | `[]` | Init containers to add to the image updater pod |
2021-11-09 21:14:17 +00:00
| metrics.enabled | bool | `false` | Deploy metrics service |
| metrics.service.annotations | object | `{}` | Metrics service annotations |
| metrics.service.labels | object | `{}` | Metrics service labels |
| metrics.service.servicePort | int | `8081` | Metrics service port |
| metrics.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
| metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
| metrics.serviceMonitor.interval | string | `"30s"` | Prometheus ServiceMonitor interval |
| metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricRelabelConfigs] to apply to samples before ingestion |
| metrics.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
| metrics.serviceMonitor.relabelings | list | `[]` | Prometheus [RelabelConfigs] to apply to samples before scraping |
| metrics.serviceMonitor.selector | object | `{}` | Prometheus ServiceMonitor selector |
2021-08-16 15:23:02 +00:00
| nameOverride | string | `""` | Global name (argocd-image-updater.name in _helpers.tpl) override |
2024-03-01 08:41:23 +00:00
| namespaceOverride | string | `""` | Global namespace (argocd-image-updater.namespace in _helpers.tpl) override |
2021-08-16 15:23:02 +00:00
| nodeSelector | object | `{}` | Kubernetes nodeSelector settings for the deployment |
| podAnnotations | object | `{}` | Pod Annotations for the deployment |
2023-04-06 13:52:19 +00:00
| podLabels | object | `{}` | Pod Labels for the deployment |
2021-08-16 15:23:02 +00:00
| podSecurityContext | object | `{}` | Pod security context settings for the deployment |
| rbac.enabled | bool | `true` | Enable RBAC creation |
| replicaCount | int | `1` | Replica count for the deployment. It is not advised to run more than one replica. |
| resources | object | `{}` | Pod memory and cpu resource settings for the deployment |
2024-05-16 11:06:49 +00:00
| securityContext | object | See [values.yaml] | Security context settings for the deployment |
2021-08-16 15:23:02 +00:00
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
2024-02-18 18:44:25 +00:00
| serviceAccount.labels | object | `{}` | Labels to add to the service account |
2021-08-16 15:23:02 +00:00
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| tolerations | list | `[]` | Kubernetes toleration settings for the deployment |
2022-03-17 19:34:21 +00:00
| updateStrategy | object | `{"type":"Recreate"}` | The deployment strategy to use to replace existing pods with new ones |
2022-10-11 22:19:24 +00:00
| volumeMounts | list | `[]` | Additional volumeMounts to the image updater main container |
| volumes | list | `[]` | Additional volumes to the image updater pod |
2021-11-09 21:14:17 +00:00
----------------------------------------------
2022-01-24 19:18:51 +00:00
Autogenerated from chart metadata using [helm-docs ](https://github.com/norwoodj/helm-docs )
2021-11-09 21:14:17 +00:00
[MetricRelabelConfigs]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
[RelabelConfigs]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
2024-01-05 15:28:42 +00:00
[secret setup documentation]: https://argocd-image-updater.readthedocs.io/en/stable/install/installation/#method-2-connect-using-argo-cd-api-server
[argocd-image-updater flags page]: https://argocd-image-updater.readthedocs.io/en/stable/install/reference/#flags
[Configuration of Container Registries]: https://argocd-image-updater.readthedocs.io/en/stable/configuration/registries/
[Support ECR authentication]: https://github.com/argoproj-labs/argocd-image-updater/issues/112