I had to spend some time to figure out how to set server.extraArgs while deploying argo-cd with terraform

extraArgs: []  #  - --insecure

Finally, I managed to find the right syntax for it. Check the value of server.extraArgs in the following terraform resource.

resource "helm_release" "argocd" {
name = "argocd"
create_namespace = "true"
chart = "argo-cd"
namespace = "argocd"
version = "4.2.2"
repository = "https://argoproj.github.io/argo-helm"
set {
name = "server.service.type"
value = "NodePort"
}
set {
name = "server.extraArgs"
value = "{--insecure,--request-timeout=\"5m\"}"}
}

Alternative solution is to render values.yml and use it withvalues parameter in helm_release terraform resource.

Ismail YENIGUL

DevOps Engineer

--

--