Description |
ArgoCD can fail to deploy agent when using a custom Helm release name.
The error seen may refer to invalid or missing lacework-agent.image, such as:
|
Scope | ArgoCD deploying Lacework agents to Kubernetes via the Agent Helm chart. |
Solution |
The error seen above is not a relevant pointer to the actual cause in this case. It is, however, possible to observe this error from other root causes.
Determination of whether the error message is caused by the issue documented here should be based on the result of testing the helm chart without ArgoCD:
This error is seen where the ArgoCD configuration includes the definition of a custom “helm release name” for the lacework agent (the default is “lacework-agent”).
Because the Lacework agent sets the app.kubernetes.io/instance label in the helm chart to the default value of “lacework-agent” (example below), the use of a custom release name results in ArgoCD being unable to correctly load the helm chart, as it refers to this label to track the application.
The resolution is either to not define a custom release name, allowing it to use the default (“lacework-agent”), or to follow the ArgoCD documentation regarding setting of an alternative application label to track via the application.instanceLabelKey property that does align with the custom release name.
Related Documentationhttps://argo-cd.readthedocs.io/en/stable/user-guide/helm/#helm-release-name
|